致命错误:未捕获错误:函数名称必须是C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Model \ Layout.php:555中的字符串:堆栈跟踪:#0 [英] Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\Layout.php:555 Stack trace: #0
问题描述
从XAMPP(localhost/magento)访问Magento文件夹时遇到这些错误:
I am facing these errors while accessing Magento folder from XAMPP (localhost/magento):
严重错误:未捕获的错误:函数名称必须为字符串 C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Model \ Layout.php:555 堆栈跟踪:#0 C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Controller \ Varien \ Action.php(390): Mage_Core_Model_Layout-> getOutput()#1 C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Install \ controllers \ WizardController.php(120): Mage_Core_Controller_Varien_Action-> renderLayout()#2 C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Controller \ Varien \ Action.php(418): Mage_Install_WizardController-> beginAction()#3 C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Controller \ Varien \ Router \ Standard.php(250): Mage_Core_Controller_Varien_Action-> dispatch('开始')#4 C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Controller \ Varien \ Front.php(172): Mage_Core_Controller_Varien_Router_Standard-> match(Object(Mage_Core_Controller_Request_Http))#5> C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Model \ App.php(354):Mage_Core_Controller_Varien_Front-> dispatch()#6 C:\ xampp \ htdocs \ em0126 \ app \ Mage.php(683):Mage_Core_Mo在 C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Model \ Layout.php在 555行
Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\Layout.php:555 Stack trace: #0 C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Controller\Varien\Action.php(390): Mage_Core_Model_Layout->getOutput() #1 C:\xampp\htdocs\em0126\app\code\core\Mage\Install\controllers\WizardController.php(120): Mage_Core_Controller_Varien_Action->renderLayout() #2 C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Controller\Varien\Action.php(418): Mage_Install_WizardController->beginAction() #3 C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('begin') #4 C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #5 > C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch() #6 C:\xampp\htdocs\em0126\app\Mage.php(683): Mage_Core_Mo in C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\Layout.php on line 555
推荐答案
您的解决方案
致命错误:未捕获错误:函数名称必须是...中的字符串 app \ code \ core \ Mage \ Core \ Model \ Layout.php:555 ...
Fatal error: Uncaught Error: Function name must be a string in ... app\code\core\Mage\Core\Model\Layout.php:555 ...
此错误易于修复,因为问题出在以下几行:
This error was easy to fix because the problem was in the following line:
$out .= $this->getBlock($callback[0])->$callback[1]();
应该是:
$out .= $this->getBlock($callback[0])->{$callback[1]}();
在给定链接的下方找到您的详细解决方案 http://www.code007.ro/making-work-magento-with-php-7-rc1/
find your detail solution here on below given link http://www.code007.ro/making-work-magento-with-php-7-rc1/
这篇关于致命错误:未捕获错误:函数名称必须是C:\ xampp \ htdocs \ em0126 \ app \ code \ core \ Mage \ Core \ Model \ Layout.php:555中的字符串:堆栈跟踪:#0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!