How to solve Fatal Error Magento 1.xx on PHP 7
Error:
On upgrading PHP version , and running the Magento 1.9.x version you will get some "Fatal error: Uncaught Error: Function name must be a string" of Layout.php file on line 555.
Solution:
To solve this issue copy the Layout.php file exist in app/code/core/Mage/Core/Model/Layout.php to app/code/local/Mage/Core/Model/Layout.php and open the file. You will find the following code in line 555:
$out .= $this->getBlock($callback[0])->$callback[1]();
replace this code with :
$out .= $this->getBlock($callback[0])->{$callback[1]}();
Now you can run your 1.9.2.x version in php7.
0 Comment(s)