Fixing Common Magento Upgrade Issues

Magento is one of the most powerful open source e-commerce platforms in use today. According to some reports it has the greatest market share of any Ecommerce system. Like any open source platform, Magento should be kept up to date for both security and performance reasons. However, the complex nature of Magento makes upgrading it to the latest version quite a chore. While this article won’t go into detail as to how to upgrade from Magento 1.x to Magento 2.x (there are lots of Magento 1 to Magento 2 upgrade resources out there to review), it will offer solutions for the most common bugs that occur after upgrading to the latest version (version 1.9.2.1 as of the publish date for this article).

Please note, this blog post is quite technical in nature and is for demonstration purposes only.  We do not recommend having anyone but a skilled and experienced Magento development team (like us!) maintain and update your Magento site.

Nothing but Error Messages

Probably the most frustrating issue is a freshly-upgraded site that is showing ambiguous Magento error messages. It may reference some core files that will lead you down the rabbit hole of tracing down an error that doesn’t quite make sense. When this happens, it is a good practice to do the following:

  • Manually clear the /var/cache/ directory
  • Manually clear the /var/session/ directory
  • Truncate all log_ tables
  • Truncate report_event, report_compared_product_index, and report_viewed_product_index tables
  • Run the following query:
    SET FOREIGN_KEY_CHECKS=0;
    UPDATE core_store SET store_id = 0 WHERE code=’admin’;
    UPDATE core_store_group SET group_id = 0 WHERE name=’Default’;
    UPDATE core_website SET website_id = 0 WHERE code=’admin’;
    UPDATE customer_group SET customer_group_id = 0 WHERE customer_group_code=’NOT LOGGED IN’;
    SET FOREIGN_KEY_CHECKS=1;

This may or may not work, but from personal experience this often solves the issue.

URLs suddenly have -1 or -2 appended to them

This is another bizarre phenomenon that has been observed after an upgrade. To fix this, truncate the core_url_rewrite table and then reindex the URLs.

“Class ‘Mage_Googlecheckout_Helper_Data’ not found”

This is observed very often in the Magento admin upon upgrading to 1.9. Fortunately it is a straightforward fix. Simply go to the directory magento-install-dir/app/code/core/Mage/GoogleCheckout/etc/ and remove all files except for config.xml. At this point you should be able to log back into the admin without any issues.

Checkout Process is Stuck at Review Step

If the site is seemingly functioning perfectly except for the final stage in the checkout process where the Place Order button simply does not work. This is usually a relatively quick fix. In the file /app/design/frontend/your_theme/template_checkout/onepage/review/info.php and replace

<script type="text/javascript"> //<![CDATA[ review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements')); //]]> </script>

with

<script type="text/javascript"> //<![CDATA[ review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements')); //]]> </script>

Returning Customers Cannot Login

If returning customers cannot login, the problem is usually related to the form_key hidden field not present in the login form. To correct this, add the following to all login forms on the site:

<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />

Customers are not Receiving Order Confirmation Emails

Unlike some earlier versions of Magento version 1.9 sends out emails via the native Magento cron process as opposed to sending them out “real time” when an order is placed. If it seems like emails have suddenly stopped working, verify the cron settings to make sure it is running properly.

While this is by no means a comprehensive guide to upgrading Magento to the latest version, it should help those who are dealing with the more common post-upgrade issues.  To reiterate, the information contained above is for demonstration purposes, or to assist a skilled Magento web developer, and is not intended as a guide for our clients or other non-professional web developers.  Please contact us if you are interested in our services to help build or maintain a Magento website for you.

Work With Us

We've been building websites for over twenty years, and have learned a thing or two about how to make web projects go smoothly.

What Our Clients Say

Watermelon Web Works, LLC place picture
4.7
Based on 19 reviews
powered by Google
OMS Anita profile picture
OMS Anita
22:20 29 Nov 24
Watermelon Web Works has been incredible to work with. They are patient, understanding, and quick to answer any questions (or emergencies) you might have. After switching over to them to help re-vamp our online retail store, we hired them to build our wholesale website as well. I can't recommend them enough - Thank you team!
Garrett Lister profile picture
Garrett Lister
19:55 10 Jul 24
Jared and the watermelon team were great - they quickly interpreted our website needs and designed a wonderful site. The project management site worked great to keep track of project.
N B profile picture
N B
21:23 14 Nov 23
My previous web developer who I was very happy with retired and I was pretty sad about it because it seems now days it is hard to hire a web developer close by with a good set of skills who is interested in helping small business at reasonable prices. Then I found Watermelon and I have been very happy. They are responsive, are able to solve problems, and work at reasonable prices.
Dark Star Magick profile picture
Dark Star Magick
18:05 03 May 23
We hired Watermelon to help us with our website. They were very thorough and took the time to explain in layman's terms what they were doing and how we could improve SEO and site functionality. We will definitely be back for future website needs!
Astoria Column profile picture
Astoria Column
18:42 24 Apr 23
Great work and amazing service! We're a non-profit, and our priorities are always focused on maintaining the Astoria Column. We had a website built by someone else a few years ago, but without regular updating and maintenance, sections of our site were no longer functional. Joanna and the rest of the team came in and had everything working within a week and it's been smooth sailing since then!
Ben Harris profile picture
Ben Harris
19:25 26 Aug 19
Watermelon has been a fantastic web development partner. Through every phase of our project they have always been 100% responsive to our requests and have always provided highly knowledgeable, creative, prompt, and personable team members to work with. As a financial institution we’re always concerned about the security and maintenance or our website and Watermelon has always provided the appropriate resources in order to meet and/or exceed our compliance and security requirements. We would surely refer them to any business associates looking for a qualified WordPress web designer in the future. – Denali Federal Credit Union
Mohr IP Law Attorneys profile picture
Mohr IP Law Attorneys
00:33 11 Apr 19
Watermelon Web Works did a great job creating a custom shopping cart page for our firm. Gavynn in particular was especially helpful and responsive. We appreciated the upfront costs and the technical competency of Watermelon Web Works and would not hesitate to work with the people there again.
Kim Markle profile picture
Kim Markle
23:36 08 Feb 19
Our company has been working with the Watermelon team for more than 10 years to help build and grow our website and customer portal. They are not only extremely talented and responsive, but are continuously looking for ways for us to enhance our current website. They are consistent, provide excellent customer service and really know what they are doing. Highly recommend!
Rick Brodner profile picture
Rick Brodner
23:23 12 May 17
I cannot say enough good things about Watermelon. They are terrific communicators, highly competent coders, and really, really nice people. They were instrumental in helping us to assemble a very usable, easily maintainable website for our organization. They' have demonstrated great flexibility in accommodating our evolving needs. They have been highly responsive to any technical issues, typically resolving them in less than 4 hours. Watermelon Web Works will make your organization better, and your CFO/Treasurer will be happy when they see the bill - what more can you ask for?
CLOSE