How to fix fatal error uncaught error function name must be a string in magento:
Most of the people may get this below error message while installing magento1.x .
Error: fatal error uncaught error function name must be a string in magento app\code\core\Mage\Core\Model\Layout.php:555
Reason for this issue:
- This will happen when you run Magento1.x on PHP7 version.
2. We need to clarify whether, we are using $callback[1]() is as method or variable on PHP.
Solution:
- In case if you want to run Magento1.x on PHP7 version then we want to do some code change. So that this got fix.
- To fix this issue change line into below way.File Path: app\code\core\Mage\Core\Model\Layout.php:555
$out .= $this->getBlock($callback[0])->$callback[1]();to
$out .= $this->getBlock($callback[0])->{$callback[1]}();CORNER OF BLOG:
“SAVE Agriculture !!! No Food without SOIL.“