Fix these 10 Magento issues that can ruin your web store

Magento October 12, 2015 0 Comments
98 Flares 98 Flares ×

When starting out on Magento, a developer comes across many common errors that are easy to tackle if you are aware of the right processes. Some are a bit complicated to solve, however, if you have solutions documented, you can easily solve the most common problems that almost every Magento developer encounters. I am going to share the 10 most common Magento problems that a developer can face and how to solve them.

10 Magento Problems and Their Fixes

Problem 1: Configuring Magento with a new domain

Let’s assume that your Magento is configured with and you want to change the domain to

There are two ways to configure your Magento store with a new domain:

First, go to MySQL Manager (for many, it is PHPMyAdmin). Select your Database and find the table called core_config_data and click on it.

In core_config_data table, you can see web/unsecure/base_url and web/secure/base_url entries.

Magento Admin Issues

Change your old domain name with your new domain and click the Go button to save the changes.

Clear Magento Cache

By deleting or clearing your cache, can solve many issues in Magento.

The cache folder is located in your Magento root directory  /var/cache. To clear the cache, simply delete the folder and go to your Magento admin System > Cache Management and clear all Cache.

Problem 2: Reset Magento Admin Password

If you don’t remember your admin password and you are Magento developer who wants a quick and easy way to reset your admin password then just go to your phpMyAdmin or MySQL Manager, select your Magento database and find admin_user table.

Magento Admin Server

Replace your old password with your new password. Make sure you insert the password in MD5 function.

Problem 3: Enable Search Engine Friendly URLs in Magento

Enabling Search Engine Friendly URL in Magento is easy. You just have to login into your Magento admin and go to System > Configuration click on Webin left panel.

Magento Admin Issue

Click on Search Engines Optimization and turn on the Use Web Server Rewrites (mark as Yes). Click on the Save Config button and your Magento SEF URLs will be enabled.

Problem 4: Speed up Magento

To speed up your Magento, it is recommended to enable Magento Compilation function. The performance increase is between 25%-50% on page loads. You can enable Magento Compilation from your Magento admin just go to System > Tools > Compilation. And click on Run Compilation Process.

Magento Admin Issue

You should also remember that your hosting solution provider plays a strong part in deciding the speed of your magento store. You should choose a provider which is optimized to run a Magento store with seamless performance. Consider a solution provider like Cloudways, which is not only built to withstand the most toughest of hosting problems, but can also be relied upon in times of sudden traffic increases as it gives you the option to scale your server whenever you feel the need. You can sign up for a free trial of 14 days and test out the platform for yourself.

Problem 5: Redirect Magento to open through www

For SEO and usability purposes you need to redirect your visitor to open your Magento store only through www (

This is easy to do in Magento. Open your .htaccess file located in your Magento root. In this file search theRewriteEngine and right after this add following code.

  1. RewriteCond %{HTTP_HOST} ^$ [NC]
  2. RewriteRule ^(.*)$$1 [R=301,L]

Magento Riderect

After this save your .htaccess file and login to your Magento admin and go to System > Configuration > Web

Magento Admin Issue

Click on Unsecure tab  and change the Base URL option from  to After this click on Save Config button and your Magento store will start working through

Problem 6: Disable the Compare products functionality

In Magento, you can disable Compare products functionality easily with these steps.

For compare products functionality, go to your Magento root folder and then app/code/core/Mage/Catalog/Helper/Product/Compare.php and replace following code:

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



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


After this go to your /app/design/frontend/base/default/layout/ and open yourcatalog.xml file. If you are using a Magento theme, enter your theme name instead of default E.G : /app/design/frontend/base/yourtheme/layout/ and replace the following code.

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



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


After this clear your Magento cache.

Problem 7: Set up a blog in Magento

It is not much difficult to set up a blog in Magento. But you would have to do this with the help of a custom extension, as it is not a default function in Magento. I would suggest you add a blog to your business as they help you connect with your customers on a more personal level. You can use the blog to tell the story behind your Magento store.

You can search in Magento Connect for an extension that will completely suit your needs. You can learn more about integration of blog on Magento in this blog post.

Problem 8: Add a Contact Us form in Magento

In Magento, contact form functionality is included by default. Link of contact Page is usually shown in the footer of Magento store. You can add a contact form on any page.

Login to your Magento admin and go to CMS > Pages and click on new page button.


Use the following code in your new page content field show in right side:

Save changes and your contact form will look something like the one in this image.


Problem 9: Solve Access Denied issue

To solve the error of access denied, you should log out from your admin panel and login again, and reset the Magento admin privileges.

After logging in, just go to System > Permissions > Roles > Administrators.


Click on the Role Resources options shown in left to make sure that Resource Access is set to All. Click on the Save Role button and your Magento permissions will be reset.

Problem 10: Set a Custom Users Group

You can easily add new group from your Magento admin just go to Customers > Customer Groups > Add New Customer Group.

When a customer is registered you can change the group ab/xy to those they belong to by going to the Magento  Customers > Manage Customers. Click on the edit link to the customer and change the group from the Account Information > Customer Group. Click Save Customer.

Now set the discount from Promotions > Catalog Price Rules > Add New Rule. In the Customer Group select the customers groups for which the promotion is Valid. Enter other details. Set rule and conditions and click on Save rule button.

Final Thoughts

Nothing is perfect. Not even google. Every application has its share of glitches and errors that can be easily solved when the right procedures are followed. I have tried my best to list down ten of the most common errors that a Magento developer comes across and how he/she can solve them. These are the most common issues that are encountered on consistent basis by a number of developers.
Before proceeding to make any changes in the core code, please make sure you are comfortable with the coding environment in Magento. It is an opensource platform, but you need to be careful when making changes to the code. If you have come across an issue that should be included here, then let me know through the comments section!

98 Flares Twitter 0 Facebook 37 Google+ 42 LinkedIn 17 Buffer 2 98 Flares ×

About Wajid Hussain

Wajid Hussain is Magento Community Expert at Cloudways. He has a vast experience in Magento and PHP related fields. He is an avid football fan. You can follow him on Twitter at @wajidstack.
Stay Connected: Follow me on Google+ or contact me at wajid.hussain(at)

« Previous
Next »

Comments are closed.

98 Flares Twitter 0 Facebook 37 Google+ 42 LinkedIn 17 Buffer 2 98 Flares ×