共计 2971 个字符,预计需要花费 8 分钟才能阅读完成。
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:
- Download Magento CE Version 1.6.0.0 Stable.
- Upload the files to your hosting Via FTP
- Change the permission to 777 (app/etc, media, var)
- 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 1.6.0.0 Stable
You have shed a ray of snusnhie into the forum. Thanks!