問題描述
我在 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
謝謝安納杜賴
這篇關于控制器文件已加載但類不存在?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!