我的工作场所决定将所有项目迁移到新服务器。大多数项目基于Magento1.3& 1.2,现有服务器是PHP5.2。新服务器将是PHP5.3。我如何在不改变主题和数据的情况下将所有这些Magento项目迁移到新的平台上?
编辑:我还将它们迁移到PHP5.5版本(另一个测试服务器)
发布于 2015-02-19 09:37:31
现在我想在高速公路上开古董古旧车。
启动项目文件和数据库迁移:
哦,有个错误:
按引用重置admin,或者您只需在DB中更改管理员的电子邮件&通过管理面板恢复密码
参考文献:http://www.geekieblog.com/2011/03/magento-1-3-x-environment-won%E2%80%99t-run-on-php-5-3/
参考文献:What changes do I need to make Magento work with PHP 5.3?
File: lib/Varien/Object.php, and do the following change: L: 484
public function ___toString(array $arrAttributes = array(), $valueSeparator=’,’)
>>>
public function __invoke(array $arrAttributes = array(), $valueSeparator=’,’)
File: app\code\core\Mage\Core\Controller\Request\Http.php and change: L:199
$host = split(‘:’, $_SERVER['HTTP_HOST']);
>>>
$host = explode(‘:’, $_SERVER['HTTP_HOST']);
File: app\code\core\Mage\Catalog\Model\Category\Attribute\Backend\Sortby.php and change: L:54, 88
$object->setData($attributeCode, split(‘,’, $data));
>>>
$object->setData($attributeCode, explode(‘,’, $data));
File: app\code\core\Mage\Admin\Model\User.php and change: L:360
$nodePath = ‘adminhtml/menu/’ . join(‘/children/’, split(‘/’, $startupPage)) . ‘/action’;
>>>
$nodePath = ‘adminhtml/menu/’ . join(‘/children/’, explode(‘/’, $startupPage)) . ‘/action’;
File: app\code\core\Mage\Catalog\Model\Layer\Filter\Price.php
__toString >>> __invoke
File: lib/Varien/Pear.php
error_reporting(E_ALL & ~E_NOTICE);
>>>
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
File: downloader/Maged/Pear.php
error_reporting(E_ALL & ~E_NOTICE);
>>>
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);在Magentov1.2中,为了纠正返回错误的问题:“不能将项添加到购物车”函数拆分()在
File: \app\code\core\Mage\Catalog\Model\Product\Type\Abstract.php on line 478
$optionIds = split(',', $optionIds->getValue());
>>>
$optionIds = explode(',', $optionIds->getValue());
And
foreach(split(',', $optionValue) as $value) {
>>>
foreach(explode(',', $optionValue) as $value) {您可以使用主题本身。站点将按原样运行。享受你的动力:-)
https://stackoverflow.com/questions/28566436
复制相似问题