Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
875 views
in Technique[技术] by (71.8m points)

magento - Fatal error: Uncaught Error: Function name must be a string in C:xampphtdocsem0126appcodecoreMageCoreModelLayout.php:555 Stack trace: #0

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:xampphtdocsem0126appcodecoreMageCoreModelLayout.php:555 Stack trace: #0 C:xampphtdocsem0126appcodecoreMageCoreControllerVarienAction.php(390): Mage_Core_Model_Layout->getOutput() #1 C:xampphtdocsem0126appcodecoreMageInstallcontrollersWizardController.php(120): Mage_Core_Controller_Varien_Action->renderLayout() #2 C:xampphtdocsem0126appcodecoreMageCoreControllerVarienAction.php(418): Mage_Install_WizardController->beginAction() #3 C:xampphtdocsem0126appcodecoreMageCoreControllerVarienRouterStandard.php(250): Mage_Core_Controller_Varien_Action->dispatch('begin') #4 C:xampphtdocsem0126appcodecoreMageCoreControllerVarienFront.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #5 > C:xampphtdocsem0126appcodecoreMageCoreModelApp.php(354): Mage_Core_Controller_Varien_Front->dispatch() #6 C:xampphtdocsem0126appMage.php(683): Mage_Core_Mo in C:xampphtdocsem0126appcodecoreMageCoreModelLayout.php on line 555

question from:https://stackoverflow.com/questions/35611696/fatal-error-uncaught-error-function-name-must-be-a-string-in-c-xampp-htdocs-e

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Your solution

Fatal error: Uncaught Error: Function name must be a string in ... appcodecoreMageCoreModelLayout.php:555 ...

This error was easy to fix because the problem was in the following line:

$out .= $this->getBlock($callback[0])->$callback[1]();

Instead it should be:

$out .= $this->getBlock($callback[0])->{$callback[1]}();

find your detail solution here on below given link http://www.code007.ro/making-work-magento-with-php-7-rc1/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...