2011-11-30 108 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