0

我通过 ssh 升级到 Magento 1.7 失败了。有谁知道解决方案?

这是输出:

谢谢!

root@****:/var/www/vhosts/****.nl/httpdocs# ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 17158657 bytes) in /var/www/vhosts/****.nl/httpdocs/downloader/lib/Mage/Archive/Abstract.php on line 45
Checking dependencies of packages
Package community/Mage_Core_Adminhtml failed: Detected Mage_Core_Adminhtml conflict of versions: 1.6.0.0-1.6.1.0 and 1.6.1.0-1.7.0.0
Package community/Mage_Core_Modules failed: Detected Mage_Core_Modules conflict of versions: 1.6.0.0-1.6.1.0 and 1.5.0.1-1.6.0.0
Installing package community/Mage_All_Latest 1.6.0.0
Package community/Mage_All_Latest 1.6.0.0 installed successfully
Installing package community/Lib_Varien 1.7.0.0
Package community/Lib_Varien 1.7.0.0 installed successfully
Installing package community/Lib_Google_Checkout 1.5.0.0
Package community/Lib_Google_Checkout 1.5.0.0 installed successfully
Installing package community/Lib_Js_Mage 1.7.0.0
Package community/Lib_Js_Mage 1.7.0.0 installed successfully
Installing package community/Lib_Phpseclib 1.5.0.0
Package community/Lib_Phpseclib 1.5.0.0 installed successfully
Installing package community/Mage_Locale_en_US 1.7.0.0
Package community/Mage_Locale_en_US 1.7.0.0 installed successfully
Installing package community/Lib_Mage 1.7.0.0
Package community/Lib_Mage 1.7.0.0 installed successfully

//////// 更新 /////////

我增加了 php.ini 中的 memory_limit 并再次尝试。结果现在更好了,只有一个冲突在顶部。

该网站仍然无法正常工作。它向我展示了安装向导。我试图以这种方式下载它。但是,当我继续时,它会将我重定向到相同的下载页面..

我有备份。;)

PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
Checking dependencies of packages
Package community/Lib_ZF failed: couldn't connect to host
Package community/Mage_Core_Modules failed: Detected Mage_Core_Modules conflict of versions: 1.6.0.0-1.6.1.0 and 1.5.0.1-1.6.0.0
Installing package community/Mage_All_Latest 1.6.0.0
Package community/Mage_All_Latest 1.6.0.0 installed successfully
Installing package community/Lib_Varien 1.7.0.0
Package community/Lib_Varien 1.7.0.0 installed successfully
Installing package community/Lib_Google_Checkout 1.5.0.0
Package community/Lib_Google_Checkout 1.5.0.0 installed successfully
Installing package community/Lib_Js_Mage 1.7.0.0
Package community/Lib_Js_Mage 1.7.0.0 installed successfully
Installing package community/Lib_Phpseclib 1.5.0.0
Package community/Lib_Phpseclib 1.5.0.0 installed successfully
Installing package community/Mage_Locale_en_US 1.7.0.0
Package community/Mage_Locale_en_US 1.7.0.0 installed successfully
Installing package community/Lib_Mage 1.7.0.0
Package community/Lib_Mage 1.7.0.0 installed successfully
Installing package community/Lib_Js_Prototype 1.7.0.0.3
Package community/Lib_Js_Prototype 1.7.0.0.3 installed successfully
Installing package community/Interface_Adminhtml_Default 1.6.0.0
Package community/Interface_Adminhtml_Default 1.6.0.0 installed successfully
Installing package community/Interface_Frontend_Default 1.6.0.0
Package community/Interface_Frontend_Default 1.6.0.0 installed successfully
Installing package community/Interface_Install_Default 1.6.0.0
Package community/Interface_Install_Default 1.6.0.0 installed successfully
Installing package community/Mage_Downloader 1.6.0.0
Package community/Mage_Downloader 1.6.0.0 installed successfully
Installing package community/Mage_Centinel 1.6.0.0
Package community/Mage_Centinel 1.6.0.0 installed successfully
Installing package community/Interface_Frontend_Base_Default 1.6.0.0
Package community/Interface_Frontend_Base_Default 1.6.0.0 installed successfully
Installing package community/Phoenix_Moneybookers 1.3.0
Package community/Phoenix_Moneybookers 1.3.0 installed successfully
Installing package community/Find_Feed 1.1.0
Package community/Find_Feed 1.1.0 installed successfully
Installing package community/Mage_Compiler 1.6.0.0
Package community/Mage_Compiler 1.6.0.0 installed successfully
Installing package community/Magento_Mobile 1.5.0.0.21.0
Package community/Magento_Mobile 1.5.0.0.21.0 installed successfully
Installing package community/Mage_Core_Adminhtml 1.6.0.0
Package community/Mage_Core_Adminhtml 1.6.0.0 installed successfully
Starting to download Lib_Js_Calendar-1.51.1.tgz ...
...done: 24,627 bytes
Installing package community/Lib_Js_Calendar 1.51.1
Package community/Lib_Js_Calendar 1.51.1 installed successfully
Starting to download Lib_Js_Ext-1.6.0.0.tgz ...
...done: 267,847 bytes
Installing package community/Lib_Js_Ext 1.6.0.0
Package community/Lib_Js_Ext 1.6.0.0 installed successfully
Starting to download Lib_LinLibertineFont-2.8.14.0.tgz ...
...done: 1,430,498 bytes
Installing package community/Lib_LinLibertineFont 2.8.14.0
Package community/Lib_LinLibertineFont 2.8.14.0 installed successfully
Starting to download Lib_Js_TinyMCE-3.3.7.0.tgz ...
...done: 909,906 bytes
Installing package community/Lib_Js_TinyMCE 3.3.7.0
Package community/Lib_Js_TinyMCE 3.3.7.0 installed successfully
Package installed: community/Mage_All_Latest 1.6.0.0
Package installed: community/Lib_Varien 1.7.0.0
Package installed: community/Lib_Google_Checkout 1.5.0.0
Package installed: community/Lib_Js_Mage 1.7.0.0
Package installed: community/Lib_Phpseclib 1.5.0.0
Package installed: community/Mage_Locale_en_US 1.7.0.0
Package installed: community/Lib_Mage 1.7.0.0
Package installed: community/Lib_Js_Prototype 1.7.0.0.3
Package installed: community/Interface_Adminhtml_Default 1.6.0.0
Package installed: community/Interface_Frontend_Default 1.6.0.0
Package installed: community/Interface_Install_Default 1.6.0.0
Package installed: community/Mage_Downloader 1.6.0.0
Package installed: community/Mage_Centinel 1.6.0.0
Package installed: community/Interface_Frontend_Base_Default 1.6.0.0
Package installed: community/Phoenix_Moneybookers 1.3.0
Package installed: community/Find_Feed 1.1.0
Package installed: community/Mage_Compiler 1.6.0.0
Package installed: community/Magento_Mobile 1.5.0.0.21.0
Package installed: community/Mage_Core_Adminhtml 1.6.0.0
Package installed: community/Lib_Js_Calendar 1.51.1
Package installed: community/Lib_Js_Ext 1.6.0.0
Package installed: community/Lib_LinLibertineFont 2.8.14.0
Package installed: community/Lib_Js_TinyMCE 3.3.7.0
4

2 回答 2

0

您的 php cli php.ini 文件可以通过一些注意来消除这些警告并超过 32MB?的记忆。

至于手头的问题,为什么不使用 gui 安装一个新的 Magento 构建超过 1.6 db?它将自我更新,向表中添加列等等。

然后,您可以针对 vanilla 1.7 安装运行数据库检查,并修补多年来收集的数据库的任何问题。

最后,您可以将模块和主题放回原处。

这是一条升级路径,而不是您希望的简单点击几下!只需确保您已备份所有内容。

于 2012-09-20T18:42:33.327 回答
0

找到了解决方案!Mage 是一个由 phpcli 运行的 PHP 脚本,而不是普通的 php。phpcli 的 memory_limit 默认为 32MB。所以 phpcli 处理另一个 php 配置。(不知道,我和服务器不太相似)

增加 /etc/php5/cli/php.ini 中的 memory_limit 后升级工作

于 2012-10-02T11:30:01.983 回答