当我在新php版本(7.0.4)上运行Magento 1.9 CE网站时,它开始给我错误
第555行/var/www/bigliving.local/public_html/app/code/core/Mage/core/Model/Layout.php中数组到字符串的转换
找到了这个问题的解决方案,我遵循以下步骤,它适用于我。
- 转到该文件的第555行/var/www/bigliving.local/public_html/app/code/core/Mage/core/Model/Layout.php,将代码更改为
$out .= $this->getBlock($callback[0])->{$callback[1]}();
- 修改magento根目录和index.php权限为755
尝试Magento 1的PHP 7兼容性扩展
Edit:如下所述,PHP 7兼容性扩展已弃用,PHP 7.2支持补丁已发布:https://inchoo.net/magento/magento-1-official-php-7-2-patches/