繁体   English   中英

将Magento从1.5.1升级到1.6.1

[英]Upgrading Magento from 1.5.1 to 1.6.1

我想弄清楚如何让我的Magento从1.5.1升级到1.6.1

在Magento Connect Manager中,我有几个已升级的软件包,其中包括几个现在为1.6.1的软件包(Mage_Locale_en_US,Mage_Downloader和Lib_Mage),

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

我做错了什么,或者错过了什么?

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:./ image:Permission denied”,请尝试再次从命令行使用此命令:

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>

试试这个你会得到结果。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM