16 Most Common Magento Issues & Their Solutions

16 Most Common Magento Issues & Their Solutions

Magento is a powerful and sophisticated eCommerce platform. As it is a feature-rich platform, there are chances you may face an issue in some aspects.

It can also be difficult to manage sometimes. But if you know where to find solutions for Magento issues, they can be solved without any professional help. Not only that but the new version of Magento, i.e., Magento 2, also comes with its challenges

Now, you may have got an idea of where this is going. This blog is all about Magento and Magento 2 common issues.

Note that this blog covers some of the common issues only. If your problem is not listed here, reach out to an expert Magento development company.

16 Common Magento Issues & How to Fix Them:

1. Installation issues

Many people face problems in Magento 2 installation. The problem can be in either way – manual installation or through composer. The process is difficult in both cases.

Everyone should install the platform through its official website. Some sellers use FTP, but it is not secure. To avoid any such problem, users should follow the Magento installation guide.

2. Configuring Magento with a New Domain

Let us assume that the old domain is www.olddomain.com and the new domain you want is www.newdomain.com. Go to the admin panel of Magento 2 and go to Stores → Configuration. Under the General tab, click on the Web. In the Base URLs section, replace the base one with the new domain.

Next is go to the Base URLs (Secure) section and do the same. The last step is to click on the Save Config option on the page’s top right corner.

3. PHP Extension & Configuration Settings

One of the most common Magento issues is PHP extension and configuration-related ones. All you need to do is re-configure the php.ini settings.

4. Indexing Both Http & Https Versions of the Website

When you try to index both – HTTP and HTTPS versions of the website, it will consider one of them as duplicate content. To make sure this doesn’t happen, index the preferred version.

The other version of the same URL should be directed to the HTTPS version with rel canonical. For instance, HTTPS is the preferred version. So, in HTML coding, the http version must have absolute canonical pointing to HTTPS.

5. Txt Blocking Layered Navigation Parameters

This will come under the category of Magento performance issues. In terms of Search Engine Optimization, layered navigation is not good. It is important to avoid the filters, sorting, and indexing of layered navigation in a ‘raw’ state.

You can use layered navigation extensions that will filter and sort the pages into properly optimized landing pages.

6. CSS Cache

Sometimes a user faces an issue that they updated the CSS, but it did not show on the front page. This is because of cache. You need to clear the original cache by removing all the old CSS. You can also run a series of following commands on the platform:

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

7. Magento 2 Reset Admin Password

It is not new if an admin forgets the password. In such a scenario, people with a lack of knowledge tend to panic. The fastest way to get out of this situation is to change the admin password from phpMyAdmin.

Open the Magento 2 database and look for the admin_user table. Here, replace the old password with the new one. Add the new password in the MD5 function.

8. Update Magento 2

One of the common Magento errors that users face is when they update the platform version. We are not saying that one should not do that because it is necessary too.

A new database in the platform means you get better results. But you also need to make sure that the extension and theme on the website are compatible with the latest version of Magento.

Also, you need to update the Magento categories too. Last but not least, don’t forget to check if all the categories are under the ‘default category’ list or not.

9. Enable Search Engine Friendly URLs in Magento

SEO is important to make your website visible on search engines. What will happen if a website’s URLs are not SEO-friendly? All the efforts are in vain, right? As a Magento site owner, you too need to make sure that the URLs are search engine friendly.

To enable SEO-friendly URLs, go to Stores → Configuration and select Web in the General tab. The next step is to unfold the SEO section.

Choose ‘Yes’ from the ‘Use Web Server Rewrites’ drop-down menu. The last step is to click on Save Config on the top right corner of the configuration page.

10. Speed up Magento

Speed is one of the common Magento issues that developers and users face. To make sure that Magento 2 is working smoothly, you need to know the best practices.

Given that Magento is not slow by default, there are a few things you can do to improve the speed. Check out the following solutions for it:

  • Enable flat categories and product
  • JavaScript & CSS
  • Lightweight themes and extensions
  • Update the latest version

Read more about how to speed up Magento 2 eCommerce stores.

11. Setup Blog in Magento 2

Blogging is an inevitable part of SEO activities today. So, you definitely need to have a blog page. It is not difficult to set up a blog page in Magento 1 or 2. But you will need a custom extension as it is not one of the default functions in the platform.

We recommend that you always add a blog to your business site. The basic reason being it will help you connect with the target audience. What’s more? You can use your current blog post to tell the story behind your Magento store.

Search in Magento Connect to find an extension that will be a perfect fit for your needs.

12. Contact Us in Magento 2

A contact us page is again an essential part of any website. It is the point of contact for visitors/customers of the website. A great and seamless contact us page can work wonders for the conversion rates.

Setting up the ‘Contact Us’ page can sometimes be one of the major Magento issues. Usually, the link to this page should be in the Footer or the Navigation Menu.

The contact form functionality is included by default in the platform. You can add a form on any page of the site.

To do that, log in to Magento admin. Go to CMS>Pages and click on the ‘new page’ button. Add the following code in the new page content field on the right side:

<!– CONTACT FORM CODE BEGIN–>

{{block type=’core/template’ name=’contactForm’ template=’contacts/form.phtml’}}

<!– CONTACT FORM CODE END–>

Save the changes, and the contact form will show up on the desired page.

13. Redirect to Open Through www

As a Magento store owner, make sure that the website customer is redirected to access the eCommerce only through www. This is necessary as it will help get the required visibility on Google and other search engines.

Magento makes it easy for you to do so. Open the .htaccess file in your root directory. Here, search theRewriteEngine and add the following code:

RewriteCond %{HTTP_HOST} ^mywebstore.com$ [NC]

RewriteRule ^(.*)$ http://www.mywebstore.com/$1 [R=301,L]

After you add the code, save it to your .htaccess file and login to Magento admin. From there, go to System>Configuration>Web.

Click on the Usecure tab and alter the Base URL option. Make it http://www.yourdomain.com from http://yourdomain.com. Just click on the Save Config button after this, and the store will begin working from www.yourdomain.com.

14. Disable the Compare Products Functionality

It is not one of the common Magento errors. But you should disable the functionality to get the most from your store. Follow the following steps to do so:

  • Visit the Magento root folder and edit the app/code/core/Mage/Catalog/Helper/Product/Compare.php and edit the following code:

public function getAddUrl($product){return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product));}

With:

public function getAddUrl($product){//return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product)); return false;}

  • Also, edit ./app/design/frontend/base/default/layout/catalog.xml and replace the following code:

<block type=”catalog/product_compare_sidebar” before=”cart_sidebar” name=”catalog.compare.sidebar” template=”catalog/product/compare/sidebar.phtml”/>

With:

<!– <block type=”catalog/product_compare_sidebar” before=”cart_sidebar” name=”catalog.compare.sidebar” template=”catalog/product/compare/sidebar.phtml”/> –>

Now, clear Magento cache from admin area >System > Cache Management

15. Solve Access Denied Issue

It is important to resolve the “Access Denied” issue if you are not able to access the Magento store’s backend. You should log out from the admin panel and log in again.

Reset the admin privileges if this doesn’t work. For that, go to Magento admin area > System > Permissions > Roles > Administrators.

The next step is to go to the Role Resources option from the left menu and verify that Resource Access is set to All. You may save the changes made by clicking on the “Save Role” button.

16. Set a Custom Users Group

Adding new users to a custom group is one of the errors faced by beginners. You can add a custom user group with the help of the following steps:

Log in to your Magento admin area > Customers > Customer Groups > Add New Customer Group

After a customer is registered, edit the group in which he/sher belongs from Magento Customer > Manage Customers.

Next is click on the “Save Customer” button.

There is also an option to set a discount from Promotions > Catalog Price Rules > Add New Rule. In the Customer Group, choose those groups of customers for whom the discount will be valid. Define the rules and conditions and save the changes.

Business owners can create more high-end websites for maximizing their business revenue with the help of Magento Development Trends.

Conclusion

No platform is perfect. Magento is no exception. You are going to face one of the Magento issues while creating or managing your site. But the good news is that they can be solved if the right procedures are followed.

We have tried to list down some of the common issues that developers or store owners may face. We sincerely hope that the solutions stated above make it easier for you.

However, there is also a chance that you are still not able to resolve the issues. In that case, there is a huge community of Magento developers that you can approach.

They will be more than ready to help out with any of the problems. If any of these options don’t work out for you, then hire a Magento 2 development company. Here, dedicated teams usually work on your project. As a result, you have the services of experts all the time to assist you.

Do you already have a Magento eCommerce store? Do you want to add some functionalities to it or resolve some persistent issues? We are here for everything! Just contact our in-house experts at [email protected]! They will take care of the rest.

magento issues

FAQ

How to fix the most common issues in Magento 2?

There are a lot of resources available online that state the solutions to the common Magento 2 problems. If you are not technically sound, you can always approach professionals to help you.

How to set the developer mode?

Before setting the developer mode, make sure that the generated classes and Object Manager entities are clear. Otherwise, you may face unexpected errors. Once that is clear, follow the steps below: Step 1: Delete the generated/code and generated/metadata directories’ contents Step 2: Next, set the mode After the mode is set, you will see the message: “Enable developer mode.”

Magento 2 migration issues & how to solve them?

Some of the common migration issues are: Slowing of the website speed: Continuously optimize the store till you complete the migration process entirely. Adverse effect on search engine rankings: Hire a specialized agency for this as there are a lot of aspects to take care of. Extension/theme compatibility: Find the ideal extension from the official Magento marketplace to do the job. Migrating crucial product info & customer data: Take external help if you are not technically sound.

Whatsapp Logo