我该如何解决错误?未捕获的Zend_Controller_Dispatcher_Exception:指定了无效的控制器

时间:2019-04-02 06:30:41

标签: zend-framework pimcore

我在本地计算机上设置了pimcore,并且克隆了一个现有项目。我连接到数据库并设置虚拟主机以在本地运行该项目。当我在本地运行项目时,我得到

Uncaught Zend_Controller_Dispatcher_Exception: Invalid controller specified in /var/www/html/pjt/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php:248
Stack trace:
#0 /var/www/html/pjt/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /var/www/html/pjt/pimcore/lib/Pimcore.php(249): Zend_Controller_Front->dispatch()
#2 /var/www/html/pjt/index.php(19): Pimcore::run()
#3 {main}

Next 
Zend_Controller_Exception: Invalid controller specified
#0 /var/www/html/pjt/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /var/www/html/pjt/pimcore/lib/Pimcore.php(249): Zend_Controller_Front->dispatch()
#2 /var/www/html/pjt/index.php(1 in /var/www/html/pjt/vendor/zendframework/zendframework1/library/Zend/Controller/Plugin/Broker.php on line 336

我尝试在index.php中包括以下内容:

$frontController = Zend_Controller_Front::getInstance();
$frontController->setParam('useDefaultControllerAlways', true);
$frontController->dispatch();

但是我得到"Uncaught Zend_Controller_Exception: No default module defined for this application"

有人可以帮助解决这个问题吗?

0 个答案:

没有答案