-- Stephan Stapel <[EMAIL PROTECTED]> wrote
(on Saturday, 21 April 2007, 07:09 PM +0200):
> I am currently writting a couple of applications with Zend Framework 
> with quite some success.
> When reading the Apache error log file, I discovered this entry:
> 
> [Sat Apr 21 19:05:35 2007] [error] [client 127.0.0.1] PHP Fatal error: 
> Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 
> 'Invalid controller specified (o)' in 

Looks like somewhere along the line, a request is coming in that has the
controller name set to 'o'. 

I'd suggest, ona d evelopment machine, using the returnResponse(true)
call on the front controller in order to trap the response; check for
exceptions, and if any are found, display the request object and
exception:

    $front->returnResponse(true);
    $response = $front->dispatch();

    if ($response->isException()) {
        echo '<h1>Exceptions Registered</h1>';
        foreach ($response->getException() as $e) {
            echo '<h2>' . $e->getmessage() . '</h2>';
            echo '<pre>' . $e->getTraceAsString() . '</pre>';
        }
        echo '<h2>Request Object</h2>';
        echo '<pre>' . var_export($front->getRequest(), 1) . '</pre>';
    } else {
        $response->sendResponse();
    }

This should help you determine what exception was thrown, as well as the
request that created it.


-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to