magento1.9在PHP7版本出现的错误:PHP Fatal error: Uncaught Error: Function name must be a string in /app/code/core/Mage/Core/Model/Layout.php, 找到 getOutput函数,把
$out .= $this->getBlock($callback[0])->$callback[1]();
改成
$fname=$callback[1];
$out.=$this->getBlock($callback[0])->$fname();
这是由于PHP7对一这旧语法的不支持。

本文介绍了解决Magento1.9在升级到PHP7时遇到的致命错误的方法。通过修改核心文件中的一段代码,使得旧版本的Magento能够兼容新的PHP版本。

2536

被折叠的 条评论
为什么被折叠?



