What’s Your Problem? Fixing Common Magento Issues, Part 1

Published May 7th, 2014 by Michael Farin

Magento’s great – we’ve written about it here and here – but sometimes it has...issues. (Hey, nobody’s perfect.) Here are a few quick fixes for Magento problems that may be bugging you.

PROBLEM #1: I can’t configure Magento for a new domain.

FIX: Do these two things, in this order. First, edit the database. Then clear your Magento cache. (A lot of Magento issues can be fixed by clearing the cache, just so you know.)

How to edit the database:

Go to cpanel -> phpMyAdmin. Find the core_config_data table under the Magento database, click Browse, and click the pen icon to edit the first two fields. Replace your old domain name with your new one, and hit “Go” to save.

How to clear the cache:

This is simple! Just delete the entire cache folder in your installation directory at /var/cache.

PROBLEM #2: I need to reset my admin password.

FIX: Go to cPanel -> phpMyAdmin and select your Magento database. Paste this query under the SQL tab (and, of course, change out ‘newpass’ and ‘AdminUsername’ with your updated info).

UPDATE admin_user SET password=CONCAT(MD5('sGnewpass'), ':sG') WHERE username='AdminUsername';

Click Go to change! You’re good!

PROBLEM #3: I need search-engine-friendly URLs.

FIX: Here’s how to enable SEF URLs. Log in to your Admin page and find the System navigation menu under the Configuration button. Now go to the sub-navigation panel on the left and switch to Web page. You’ll see some blue lines, representing closed options tablets.

Now click Search Engine Optimization and indicate “Yes” under Use Web Server Rewrites. Hit the Save Config button, and you’re good to go.

PROBLEM #4: My store is too slow!

FIX: We’ve actually written an entire post about your problem. But here’s one quick fix: Go to System -> Tools -> Compilation on your Admin page and enable the Compilation function. Your page load should increase anywhere from 25% to 50%. (Caching is also a good plan – you can read more about it here.)

PROBLEM #5: I need to redirect my store to open through www.

If you need a bit of SEO advantage or just plain convenience, your URL should probably start with www. rather than http. More coding fun! Open the .htaccess file in your Magento installation folder, and find the RewriteEngine. Add the following lines (obviously, switching out yourdomain.com with your actual domain):

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

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

Now save the .htaccess file and go back to your site’s admin panel. Follow System -> Configuration and then hit the Web button on the left panel.

Unfold the “Unsecured” menu and change your Base URL option from http://yourdomain.com to http:/www.yourdomain.com. Then save the changes. Bingo! Your Magento site is now accessible only through the www. address.

For part 2 of our Fixing Magento Problems series, check back soon!

Comments ()

Stay Connected

Contact Us

Phone: 1-855-363-5293 Email: info@endlayer.com

Endlayer.com Newsletter