Magento 1.5 to 1.6 upgrade

Last modified by fmiyata on Fri, September 16, 2011 15:03
Source|Old Revisions  

This is an old revision of the document!

THIS IS METHOD is not working.

Upgrading to version 1.6 from 1.5 via SSH

This is a short explanation on how to upgrade to version 1.6 from version 1.5. I will continue to add to this WIKI as I have time.

rm -rf var/cache/* var/session/*
chmod 550 ./mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage list-installed
./mage list-upgrades
./mage install Mage_All_Latest --force
php shell/indexer.php reindexall

Potential problems with your upgrade

I don’t know why, but there’s an error occurred by a missing file...

PHP Fatal error:  Class 'Mage_Catalog_Model_Resource_Setup' not found in /var/www/vhosts/ on line 33

Download it from SVN and upload it to “app/code/core/Mage/Catalog/Model/Resource/”:

cd app/code/core/Mage/Catalog/Model/Resource/
chown user:group Setup.php

Magento Connect shows everything is in the new version, but the admin footer shows the previous version because app/Mage.php wasn’t updated.

cd /var/www/vhosts/
mv Mage.php Mage.bkp.php
chown user:group Mage.php

If your install encounters unique constraint issues you may want to consider modifying your /app/etc/config.xml with the follow:

Original Value

<initStatements>SET NAMES utf8</initStatements>

Modified value

<initStatements>SET NAMES utf8; SET FOREIGN_KEY_CHECKS=0; SET UNIQUE_CHECKS=0;</initStatements>

- I haven’t come across the unique constraint error but completely disabling the database’s mechanism to keep itself consistent seems a too heavy-handed approach. (fooman)

- But if you are having constraint errors the above helps (brent w peterson)

- But this still not solves the base problem. Magento devs should work on improving upgrade path. (blitux)