Common Magento 2 Issues and Their Solutions // Magenticians https://magenticians.com/magento-2-issues/
Magento 2 is one of the most powerful and popular ecommerce platforms. However, many people run into Magento 2 issues. Since Magento is a fully feature-loaded platform, it may come off as difficult to handle, but if you know where to look, you can find solutions to most Magento related problems.
We have listed down the most common Magento 2 issues, and to make it easier for you, we have also provided the relevant solutions to them!
Common Issues in Magento 2
These are some common issues in Magento 2:
Installation IssuesRe-IndexPHP Extension and Configuration SettingsConfigure Magento 2 with new domainUpdate Magento 2Reset Magento 2 Admin PasswordCSS CacheEnable SEO URLs in Magento 2Speed up Magento 2Setup Blog in Magento 2Contact Us Page in Magento 2Redirect to Open Through www
Installation Issues
Many people have issues in installing Magento 2. Whether they are installing it manually or through composer, it’s a difficult process for many. However, the installation method can be really easy for you if you follow the step-by-step guides linked below:
How to Install Magento 2 on Localhost.
How to Install Magento using Composer
Re-Index
In Magento 2, most users have issues with this system message: “One or more indexes are fully invalid”. Well, you can fix it by running a cron job properly and you can also fix it by running the following command in your Magento 2’s root directory:
php bin/magento indexer:reindex
PHP Extension and Configuration Settings
One of the most common issue in Magento 2 is PHP extension and configuration settings. To resolve this issue just re-configure the php.ini settings.
Configure Magento 2 With New Domain
The solution to configuring Magento 2 with a new domain?
Assume that your old domain is www.olddomain.com and you want to change it with your new domain www.newdomain.com. Open the admin panel of your Magento 2 and go to Stores → Configuration. Click on Web under the General tab.
Now unfold the Base URLs section and replace Base URL with your new domain www.newdomain.com.
Now unfold the Base URLs (Secure) section and replace Secure Base URL with your new domain www.newdomain.com.
Now just click on Save Config from the top right corner of the configuration page.
Update Magento 2
Magento releases its new versions with improvements. It is highly recommended to use the latest version but some users find it difficult to update their Magento 2 version. Here’s the solution: Update Magento 2 using composer.
Reset Magento 2 Admin Password
If you forgot your admin password of Magento 2 and you want to resolve it as early as possible, then the quickest way is to change the password from phpMyAdmin. Open your Magento 2 database and find admin_user table. Now you can replace your old password with the new password.
Note: Insert the password in MD5 function.
CSS Cache
Some users have issues that they update the CSS but it does not affect the front page. This issue is due to cache. Just run these commands one by one in your Magento 2 root directory.
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
php bin/magento cache:flush
Enable SEO URLs in Magento 2
Go to Stores → Configuration and click on Web under the General tab.
Now unfold the Search Engine Optimization section. Select Yes from the Use Web Server Rewrites drop down.
Now just click on Save Config from the top right corner of the configuration page.
Speed up Magento 2
One of the most common problem among developers and users is that it is slow. To run Magento 2 smoothly, you must know its basic requirements and the best practices.
To improve speed and performance, here are a few easy steps required to make Magento 2 fast.
Setup Blog in Magento 2
To get the traffic on your store, blog is required. By default Magento 2 don’t have feature of blog but yes you can integrate it very easily. To learn about it check: How to setup a Blog in Magento 2.
Contact Us Page in Magento 2
There are some issues with the users in customizing and setting up the contact us page in Magento 2. Well here’s a quick guide to Setup Magento 2 Contact Us Page.
Redirect to Open Through www
Open your .htaccess file which is located in your Magento 2 root directory. Paste the following code after RewriteEngine on:
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
Now go to Store → Configuration and click on Web under the General tab.
Then unfold the Base URL section and change your domain http://domain.com to http://www.domain.com.
Now unfold the Base URLs Secure and change your domain https://domain.com to https://www.domain.com.
Now just click on Save Config from the top right corner of the configuration page.
Final Words
These are some issues which I have discussed with you, if you have any other common Magento 2 issue in mind, feel free to share by using the comment box below!
The post Common Magento 2 Issues and Their Solutions appeared first on Magenticians.