Upgrade from Magento 1.5 to 1.9

importexportupgrade

I actually want a clean magento 1.9, without any modules/extensions/themes, but would like to keep at least products and customers. Orders are good to keep, but not necessary.

Now I tried:

  1. A fresh install. Trying to use Magento's built-in import/export customers and products, but errors were there. Something like "field value not valid" or "field value empty." Seems Magento 1.5 and 1.9 import/export not compatible?

  2. Download Magento full package to my server and then run initial setup with the old 1.5 database, hoping that it would upgrade my database automatically. At some point there was a server 500 error. The old Magento does have some extensions/modules/custom themes.

Any advise? What would be the best way to achieve my goal? Thank you.

Best Answer

We don't know how your database looks. Modules could have put extra keys, dependencies, etc.

I would suggest using a clean install like you are doing and you are going to have to debug these errors. Magento 1.5 can be upgraded to Magento 1.9.

I would suggest the following steps.

  1. Make sure you are using version control and a staging environment.
  2. Get your Magento working on a clean version of V1.5, set the theme to base/default, and verify everything is working.
  3. Set your server memory_limit to at least 512MB and max_execution_time to 180000
  4. Delete your V1.5 code from the directory (keep the app/etc/local.xml)
  5. Push the V1.9 code into your directory (re-add the app/etc/local.xml), and hit your site once.
  6. The upgrade will take some time, depending on the power of your server

Make sure to delete the V1.5 code and then migrate the V1.9 code in as Magento did remove some files.

From Magento directly:

Do not upgrade Magento in the same directory on the same server because post-upgrade errors are likely to occur.

Source: http://www.magentocommerce.com/knowledge-base/entry/ee11302-ce18-install-upgrade

Related Topic