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

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

标签


Warning: error_log(/www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/#log/log-0313.txt): failed to open stream: No such file or directory in /www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/spider.class.php on line 2900