A-A+

PHP升级到5.3导致magento无法访问的解决方法

2011年10月06日 灵犀一指 PHP升级到5.3导致magento无法访问的解决方法已关闭评论 阅读 715 人 次

Does not the whole code, but try to change in file /lib/Varien/Object.php on line ~ 484

public function ___toString(array $arrAttributes = array(), $valueSeparator=',')

To this (change ___toString to __invoke

public function __invoke(array $arrAttributes = array(), $valueSeparator=',')

And in file /app/code/core/Mage/Core/Controller/Request/Http.php on line 274

$host = split(':', $_SERVER['HTTP_HOST']);

to

$host = explode(':', $_SERVER['HTTP_HOST']);

split to explode

And in file /app/code/core/Mage/Admin/Model/User.php on line 360

$host = split(':', $_SERVER['HTTP_HOST']);

to

$host = explode(':', $_SERVER['HTTP_HOST']);

split to explode

标签:

评论已关闭!