I have just found the problem.
Instead of redirecting the request in my code to '/' (root) I was fowarding
it, so a slash is not a valid controller name.
Thanks
fromvega wrote:
>
> Hello,
> my code was working fine running ZF 0.7 but then I changed it to ZF 0.8,
> also added some more code and it began to fail.
>
> Here is the error, it seems it isn't detecting the action but it is, after
> the error message is the result of var_dump() in the request object.
>
> Could you help-me?
> Thanks
>
> Fatal error: Uncaught exception 'Zend_Controller_Exception' with message
> 'ShopController::Action() does not exist and was not trapped in __call()'
> in C:\DEV\web\loja-workcel\library\Zend\Controller\Action.php:378
> Stack trace:
> #0 [internal function]: Zend_Controller_Action->__call('Action', Array)
> #1 C:\DEV\web\loja-workcel\library\Zend\Controller\Action.php(392):
> ShopController->Action()
> #2
> C:\DEV\web\loja-workcel\library\Zend\Controller\Dispatcher\Standard.php(211):
> Zend_Controller_Action->dispatch('Action')
> #3 C:\DEV\web\loja-workcel\library\Zend\Controller\Front.php(750):
> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
> Object(Zend_Controller_Response_Http))
> #4 C:\DEV\web\loja-workcel\htdocs\index.php(79):
> Zend_Controller_Front->dispatch()
> #5 {main}
> thrown in C:\DEV\web\loja-workcel\library\Zend\Controller\Action.php on
> line 378
>
> object(Zend_Controller_Request_Http)#20 (13) {
> ["_requestUri:protected"]=>
> string(23) "/store/shop/list"
> ["_baseUrl:protected"]=>
> string(13) "/store"
> ["_basePath:protected"]=>
> NULL
> ["_pathInfo:protected"]=>
> string(10) "/shop/list"
> ["_params:protected"]=>
> array(3) {
> ["controller"]=>
> string(4) "shop"
> ["action"]=>
> string(4) "list"
> ["module"]=>
> string(7) "default"
> }
> ["_aliases:protected"]=>
> array(0) {
> }
> ["_dispatched:protected"]=>
> bool(true)
> ["_module:protected"]=>
> string(7) "default"
> ["_moduleKey:protected"]=>
> string(6) "module"
> ["_controller:protected"]=>
> string(4) "shop"
> ["_controllerKey:protected"]=>
> string(10) "controller"
> ["_action:protected"]=>
> string(4) "list"
> ["_actionKey:protected"]=>
> string(6) "action"
> }
> object(Zend_Controller_Request_Http)#20 (13) {
> ["_requestUri:protected"]=>
> string(23) "/store/shop/list"
> ["_baseUrl:protected"]=>
> string(13) "/store"
> ["_basePath:protected"]=>
> NULL
> ["_pathInfo:protected"]=>
> string(10) "/shop/list"
> ["_params:protected"]=>
> array(3) {
> ["controller"]=>
> string(4) "shop"
> ["action"]=>
> string(4) "list"
> ["module"]=>
> string(7) "default"
> }
> ["_aliases:protected"]=>
> array(0) {
> }
> ["_dispatched:protected"]=>
> bool(true)
> ["_module:protected"]=>
> string(7) "default"
> ["_moduleKey:protected"]=>
> string(6) "module"
> ["_controller:protected"]=>
> string(4) "shop"
> ["_controllerKey:protected"]=>
> string(10) "controller"
> ["_action:protected"]=>
> string(1) "/"
> ["_actionKey:protected"]=>
> string(6) "action"
> }
>
--
View this message in context:
http://www.nabble.com/Bug-or-what--Uncaught-exception-%27Zend_Controller_Exception%27-with-message-%27ShopController%3A%3AAction%28%29-does-not-exist...-tf3350557s16154.html#a9318455
Sent from the Zend Framework mailing list archive at Nabble.com.