How to upgrade from Magento 1.5.1 to Magento 1.6.0

2011年09月12日 灵犀一指 评论 1 条 阅读 897 人 次

Learn how to upgrade to Magento 1.6 via SSH. Magento 1.6 version has been released. Lots of fixes has been done in this major release. So, if you want to upgrade from Magento 1.5.1 to Magento 1.6.0, this tutorial is for. This blog helps you to upgrade your Magento website to the latest version.

In this tutorial, you will be learning how to upgrade Magento from to 1.6.0:

chmod 700 ./mage
./mage mage-setup .
./mage install community Mage_Downloader –force
./mage install community Mage_All_Latest –force
chmod 700 ./mage
./mage sync-pear
./mage list-installed
./mage list-upgrades
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest –force
chmod 700 ./mage
./mage config-set preferred_state beta
./mage list-installed
./mage list-upgrades


At any step, if you get the error message “bash: ./mage: Permission denied”, please try to use this command: “chmod 700 ./mage” from command line again.

After doing all above steps, remember to clear all caches:
To clear the cache, simply delete everything from the /var/cache directory.

After clearing caches, re index all tables:

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 http://connect20.magentocommerce.com/community Mage_All_Latest --force
php shell/indexer.php reindexall
After clearing all caches and reindexing all tables, if you get some error messages about data integration among tables like:
 a:5:{i:0;s:268:”Error in file:

“/path_to_the_root_folder/app/code/core/Mage/Eav/sql/eav_setup/mysql4-upgrade-” – SQLSTATE[HY000]: General error: 1025 Error on rename of ‘./your_database/customer_entity_text’ to ‘./your_database/#sql2-5ef-3a9′ (errno: 152)”;i:1;s:1080:”#0/path_to_the_root_folder/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception(‘Mage_Core’, ‘Error in file: …’)

a:5:{i:0;s:268:”Error in file:

“/path_to_the_root_folder/app/code/core/Mage/Eav/sql/eav_setup/mysql4-upgrade-” – SQLSTATE[HY000]: General error: 1025 Error on rename of ‘./your_database/customer_entity_text’ to ‘./dev_migento/#sql2-5ef-3a9′ (errno: 152)”;i:1;s:1080:”#0 /path_to_the_root_folder /app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception(‘Mage_Core’, ‘Error in file: …’)
Please open the /app/etc/config.xml file and change the initStatements note from

<initStatements>SET NAMES utf8</initStatements> 


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

SET UNIQUE_CHECKS=0;</initStatements>

Magento Upgrade Error:

“SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry”

The solution is to modify your /app/etc/config.xml file with the following:

Original statement

<initStatements>SET NAMES utf8</initStatements>

Modified statement

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

Upgrade from Magento 1.5.1 to Magento 1.6.0 Manually:

  1. Download Magento CE Version Stable.
  2. Upload the files to your hosting Via FTP
  3. Change the permission to 777 (app/etc, media, var)
  4. Change the “mage” file to 775

Note: If you are not able to upgrade to Magento 1.6 , in that case you can hire our Magento Experts for upgrading Magento.

Download Magento CE  Version Stable


1 条留言  访客:1 条  博主:0 条

  1. Geraldine