I am facing these errors while accessing Magento folder from XAMPP (localhost/magento):
Fatal error: Uncaught Error: Function name must be a string in C
Its due to PHP7
It's not recommended to edit the core file. We will override it.
Copy this file app/code/core/Mage/Core/Model/Layout.php
into app/code/local/Mage/Core/Model/Layout.php
Change code in app/code/local/Mage/Core/Model/Layout.php
file (line # 555)
$out .= $this->getBlock($callback[0])->$callback[1]();
To:
$out .= $this->getBlock($callback[0])->{$callback[1]}();