2011-11-30 107 views
0

我试图找出如何让我的Magento从1.5.1升级到1.6.1Magento的升级,从1.5.1到1.6.1

在Magento的连接管理器,我有几个包是包括几个现在在1.6.1(Mage_Locale_en_US,Mage_Downloader和Lib_Mage),

但网站和管理员仍然显示(版本1.5.1.0)。我如何完全升级到1.6.1?我试过刷新浏览器和Magento的缓存。

我做错了什么或失踪?

回答

2

Magento 1.6稳定版已经发布。在这个主要版本中已经完成了很多修复。那么现在是您需要将Magento网站升级到最新版本的时候了。

在本教程中,我将向您展示如何通过命令行将Magento从1.5.1.0升级到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 Mage_All_Latest –force 

chmod 700 ./mage 

./mage config-set preferred_state beta 
./mage list-installed 
./mage list-upgrades 

注:

在任何步骤,如果你得到错误消息“bash下./mage:权限被拒绝”,请尝试重新从命令行使用这个命令:

chmod 700 ./mage 

做所有上述步骤后,记得要清除所有缓存:

rm -rf /var/cache session 

,并重新索引所有表:

./shell php indexer.php reindexall 

清除所有的缓存和重新索引所有表,如果你得到像表中有关数据集成的一些错误消息后:

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: …’) 

请打开/app/etc/config.xml文件和变化在initStatements注意从

<initStatements>SET NAMES utf8</initStatements> 

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

试试这个,你会得到结果。

+0

看来你只是复制和粘贴expertmagentodevelopers网站。 不幸的是,我认为这篇文章有点过时,因为我有多个错误,包括: 错误:频道添加:频道'社区'已经存在! 错误:安装:程序包社区/ Mage_Downloader失败:未检测到'Mage_Downloader'的版本 – Keefer