Troubleshooting Common Magento Problems

Troubleshooting Common Magento Problems

Andy Holland

Magento is a fantastic piece of software, but as with all digital platforms, as well as great out of the box solutions, it comes with its own set of problems. Here’s how to deal with some of the more frequent ones.

  • Lack of Speed

Many of Magento’s issues come from slow performance. A quick fix is to enable Magento’s Compilation function. This will take all the active scripts in Magento’s core structure and bring them to the front, offering between 25% and 50% performance increase.

In the top menu of Magento admin go to System > Tools > Compilation, and click Enable.

Remember if code modifications, extensions and updates are needed, Compilation needs to be disabled before hand or you will get errors.

  • You Cannot Enable SEF URLs

Log into Magento admin to enable Search Engine Friendly URLs. In System navigation switch to Web page from the sub-navigation panel on the left.

You need to click on the SEO tab and turn Use Web Server Rewrites to “Yes” and then save this configuration.

  • Magento Easy Tabs Will Not Work

If you use an Easy Tabs extension you may face this issue on IE9, where the tabs don’t work.

Go to frontend /default/default/template/easytabs/tabs.phtml and find the code:

showContent: function(a) {
var li = $(a.parentNode), ul = $(li.parentNode);
ul.select(‘li’, ‘ol’).each(function(el){
var contents = $(el.id+’_contents’);
if (el==li) {
el.addClassName(‘active’);
contents.show();
} else {
el.removeClassName(‘active’);
contents.hide();
}
});
}

 

that needs to be replaced with:

showContent: function(a) {
var li = $(a.parentNode), ul = $(li.parentNode);
ul.select(‘li’).each(function(el){
var contents = $(el.id+’_contents’);
if (el==li) {
el.addClassName(‘active’);
contents.show();
} else {
el.removeClassName(‘active’);
contents.hide();
}
});
}

 

  • You See “Access denied”

Log out from the admin area, then log in again. If this doesn’t resolve the issue, reset admin privileges. In the Magento admin area go to > System > Permissions > Roles > Administrators. Click on the Role Resources option from the left menu and make sure that Resource Access is set to All.

Click on the Save Role.

 

  • You See: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in downloader/mage.php on line 34

If you see this error whilst upgrading from SSH open the file mage. On line 4 , replace:

 

#MAGE_PHP_BIN=”php”

 

with

 

MAGE_PHP_BIN=”php5”

 

  • Magento Will Not Work With a New Domain

To make Magento work with a new domain there are two things to do:

First, edit the Magento database. Go to cPanel > phpMyAdmin. Then from the left hand menu select your Magento database. Find the core_config_data and click it. Click on the Browse tab and edit the first two fields: web/unsecure/base_urlweb/secure/base_url. Click the pen icon in front of them and replace your old domain name with the new one. Save this by clicking the Go button.

Secondly, clear the Magento cache. This folder is located in your Magento installation directory > /var/cache. To clear the cache, simply delete the folder.

Just deleting the cache can fix lots of Magento issue.

These are straightforward solutions to some of the most common problems that crop up on Magento; hopefully they will free up some of your time to get back to the real business of managing your e-commerce store.

Andy Holland

Author Andy Holland

More posts by Andy Holland