0

我无法在 Magento 中解决此错误:

“控制器文件已加载,但类不存在”。(底部全栈)。

我基本上是在尝试遵循本教程: magento 中的http://phpshiner.blogspot.in/2012/09/simple-custom-payment-module-part-1.html

一般来说,我很难找到关于 Magento 的良好文档,而且我对此很陌生......

谁能提供一些常见的原因、建议或见解?我被淹没了,用谷歌搜索了几个小时,检查权限和文件结构。你给它命名。

Trace:
    #0 C:\Apache24\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(326): Mage::exception('Mage_Core', 'Controller file...')
    #1 C:\Apache24\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(293): Mage_Core_Controller_Varien_Router_Standard->_includeControllerClass('C:\Apache24\htd...', 'Mage_Checkout_O...')
    #2 C:\Apache24\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(196): Mage_Core_Controller_Varien_Router_Standard->_validateControllerClassName('Mage_Checkout', 'onepage')
    #3 C:\Apache24\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #4 C:\Apache24\htdocs\magento\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
    #5 C:\Apache24\htdocs\magento\app\Mage.php(683): Mage_Core_Model_App->run(Array)
    #6 C:\Apache24\htdocs\magento\index.php(87): Mage::run('', 'store')
    #7 {main}
4

3 回答 3

0

检查您的控制器类名称是否正确?

于 2013-10-01T17:47:40.897 回答
0

I also got that error when I was using WinSCP. Problem is that my file was not saved correctly.

When I have saved it again and then reload my page and error was gone.

Maybe this will help you.

于 2016-12-26T10:51:19.370 回答
0

如果无法定位问题。

请去那里(Standard.php) Mage_Core_Controller_Varien_Router_Standard

在这个函数中,请像这样添加并执行页面。

protected function _includeControllerClass($controllerFileName, $controllerClassName)
{
        echo $controllerFileName."#############".$controllerClassName;
        echo "<br/>";

您将获得问题模块和位置

谢谢安纳杜赖

于 2020-04-13T15:49:27.500 回答