Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k 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 Answer

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/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...