A-A+

How to upgrade from Magento 1.5.1 to Magento 1.6.0

2011年09月18日 灵犀一指 How to upgrade from Magento 1.5.1 to Magento 1.6.0已关闭评论 阅读 842 人 次

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 1.5.1.0 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

Note:

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-1.5.9.9-1.6.0.0.php” – 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-1.5.9.9-1.6.0.0.php” – 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> 

 

To

 

<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 1.6.0.0 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
标签:

评论已关闭!