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

1,844 人次阅读
没有评论

共计 571 个字符,预计需要花费 2 分钟才能阅读完成。

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

正文完
 0