[Solar-talk] Missing output from a thrown exception
Robert Gonzalez
robert at everah.com
Mon Apr 28 23:37:57 CDT 2008
Just to rule out the obvious, display_errors is on, right?
Robert
On Mon, Apr 28, 2008 at 4:27 PM, Dmytro Konstantinov <umka.dk at gmail.com>
wrote:
> Guys,
>
> Can somebody give me a bit of hand with this problem I'm having.
> Exceptions thrown in any of my page controllers do not output anything to
> the browser. So, I've set up a really simple application to cut away as much
> as possible of my code and see what could be causing this. This is what I
> managed to work out so far....
>
> My config.php sets all the usual parameters:
>
> 'error_reporting' => 'E_ALL | E_STRICT',
> 'report_memleaks' => true,
> 'ignore_repeated_errors' => false,
> 'ignore_repeated_source' => false,
> 'track_errors' => false,
>
> ... plus ...
>
> 'Solar_Controller_Front' => array(
> 'classes' => array('Hub_App'),
> 'disable' => array('Base'),
> 'default' => 'Site'),
>
> My bootstrap index.php is as simple as it gets:
>
> // Initialise Solar environment
> require_once( 'Solar.php' );
> Solar::start($project[ 'etc' ].DIRECTORY_SEPARATOR.'config.php');
>
> // Instantiate and run the front controller.
> $Front = Solar::factory( 'Solar_Controller_Front' );
> $Front->display();
>
> // Terminate solar environment
> Solar::stop();
>
> And then I have two page controllers
>
> abstract class Hub_App_Base extends Solar_Controller_Page { }
>
> ... and ...
>
> class Hub_App_Site extends Hub_App_Base
> {
> protected $_action_default = 'nonExistentIndex';
> }
>
> As you can see, I'm deliberately triggering off a _notFound event when
> accessing the above index.php with no further parameters. I'm expecting to
> see a message in my browser informing me of the thrown exception. Instead I
> just get a blank page. I know that Solar_Controller_Page::_notFound() is
> triggered because I can see the output of "throw $this->_exception()" using
> var_dump() but where does it go after that?? I'm guessing
> Solar_Exception->__toString() is suppose to get triggered eventually ... but
> how?? Where??
>
> Any help / advise / ideas would be very much appreciated, 'cos I'm at my
> wits end!! :) Thanks guys!!
>
> Dima
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
>
--
Robert A. Gonzalez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20080428/21eedd35/attachment.html
More information about the Solar-talk
mailing list