最新消息:

magento1.9 running from php5.3 to php7

Magento admin 117浏览

old vps:
lnmp1.0/php 5.3.17/ngix1.2.7/phpMyAdmin 3.4.8
new vps:
bt.cn/php 7.2/ngix1.8/phpMyAdmin 4.7

process step:

1-Move all files to new vps.
2-Import db to new vps.
3-PHP Fatal error: Uncaught Error: Function name must be a string in /app/code/core/Mage/Core/Model/Layout.php,

$out .= $this->getBlock($callback[0])->$callback[1]();

Change to:

$fname=$callback[1];
$out.=$this->getBlock($callback[0])->$fname();

4-app/code/core/Mage/Core/functions.php on line 60 change code.

function __autoload_register($class)
{
if (defined(‘COMPILER_INCLUDE_PATH’)) {
$classFile = $class.’.php’;
}

include($classFile);
}

 

over

转载请注明:shiguanjun » magento1.9 running from php5.3 to php7