Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • "Fatal error: Uncaught Error: Function name must be a string...." in Layout.php:555 issue of magento after upgrading php version

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 680
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: