我正在运行Magento 1.6.2.0。
每次下订单时,我都会在system.log中注意到这三行:
2012-12-19T15:37:00+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Controller_Varien_Action::__construct() must be an instance of Zend_Controller_Request_Abstract, array given, called in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Model/Config.php on line 1351 and defined in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php on line 138
2012-12-19T15:37:00+00:00 ERR (3): Recoverable Error: Argument 2 passed to Mage_Core_Controller_Varien_Action::__construct() must be an instance of Zend_Controller_Response_Abstract, none given, called in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Model/Config.php on line 1351 and defined in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php on line 138
2012-12-19T15:37:00+00:00 ERR (3): Notice: Undefined variable: response in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php on line 141
显然变量“响应”没有定义。有人能帮我找到造成这个错误的来源吗?它不能出现在Config.php或Action.php中,因为我从来没有修改过它们。
谢谢。
答案 0 :(得分:1)
它在这个文件上
/chroot/home/saucench/saucencheese.com/.../Core/Controller/Varien/Action.php
on line 141
查看那里发生的事情并确保$variables
已定义。