控制器文件已加载但类不存在?

Controller file was loaded but class does not exist?(控制器文件已加载但类不存在?)
本文介绍了控制器文件已加载但类不存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Magento 中遇到这个错误:

I am having trouble getting around this error in Magento:

控制器文件已加载但类不存在".(底部全栈).

"Controller file was loaded but class does not exist". (Full stack at bottom).

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

I am essentially trying to follow this tutorial: http://phpshiner.blogspot.in/2012/09/simple-custom-payment-module-part-1.html in magento.

总的来说,我在 Magento 上找不到好的文档,而且我对此很陌生...

I am having trouble finding good documentation on Magento in general, and I am very new at it...

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

can anyone provide some common causes, advice, or insight? I am swamped, googled this for hours, check permissions and file structure. You name it.

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}

推荐答案

如果无法定位问题.

请去那里(Standard.php)Mage_Core_Controller_Varien_Router_Standard

Please go there(Standard.php) Mage_Core_Controller_Varien_Router_Standard

在这个函数中请添加这样并执行页面.

In this function please add like this and execute the page.

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

您将获得问题模块和位置

You will get the issue module and location

谢谢安纳杜赖

这篇关于控制器文件已加载但类不存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Hibernate reactive No Vert.x context active in aws rds(AWS RDS中的休眠反应性非Vert.x上下文处于活动状态)
Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
Flask + PyMySQL giving error no attribute #39;settimeout#39;(FlASK+PyMySQL给出错误,没有属性#39;setTimeout#39;)
auto_increment column for a group of rows?(一组行的AUTO_INCREMENT列?)
Sort by ID DESC(按ID代码排序)
SQL/MySQL: split a quantity value into multiple rows by date(SQL/MySQL:按日期将数量值拆分为多行)