Throw exception "Zend_Controller_Dispatcher_Exception"

I get the following error in the zend structure:

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in F: \ wamp \ www \ helloworld \ library \ Zend \ Controller \ Dispatcher \ Standard.php: 245 
Stack trace: 
# 0 F: \ wamp \ www \ helloworld \ library \ Zend \ Controller \ Front.php (946): Zend_Controller_Dispatcher_Standard-> dispatch (Object (Zend_Controller_Request_Http), Object (Zend_Controller_Response_Http))  
# 1 F: \ wamp \ www \ helloworld \ library \ Zend \ Controller \ Front.php (212): Zend_Controller_Front-> dispatch ()  
# 2 F: \ wamp \ www \ helloworld \ web_root \ index.php (10): Zend_Controller_Front :: run ('../ application / ...')  
# 3 {main} thrown in F: \ wamp \ www \ helloworld \ library \ Zend \ Controller \ Dispatcher \ Standard.php on line 245

What causes this, and how can I fix it?

+5
source share
6 answers

In the index.php file write

$frontController->setParam('useDefaultControllerAlways', true);
$frontController->dispatch();

Alternatively, you can write the following line in the [production] section of application.ini:

resources.frontController.params.useDefaultControllerAlways = 1

+10
source

You may have moved / edited the ErrorController.php file, which can be found in

/application/controllers/

Another possibility is that you configured the application to monitor for the missing error controller.

+5
source

, , .

+2

Zend script /application/views/scripts. , :

public function init()
{
    $this->_helper->viewRenderer->setNoRender();
}

, .

+2

Zend . ,

resources.frontController.defaultModule = "Default"

Default_ErrorController .

0

errorController.php. - , , Controller.php

In your action, the controller file just put die("stop execution");top to bottom after each statement

You will recognize the expression that is responsible for this error. just fix this error

0
source

All Articles