[Solar-talk] Solar 0.28.0 released

Paul M Jones pmjones at ciaweb.net
Sun Jul 1 15:15:25 CDT 2007


On Jul 1, 2007, at 3:11 PM, Andreas Ravnestad wrote:

> Hi!
>
> I upgraded on my dev computer now, and I get this error when  
> running one of my apps:
>
> *Fatal error*: Method Solar_Http_Response::__toString() must not  
> throw an exception in *C:\PHP\PEAR\Solar\Controller\Front.php* on  
> line *191
>
> That's all of it, no stack traces or anything so I'm not quite sure  
> where to search for the fault. Any help appreciated :)

I'm betting it's related to the HTTP response _sendHeaders() method;  
it throws an exception if headers have already been sent.  Do you  
know if you're generating output before calling the front-controller?

This is the second case where checking if headers have been sent has  
gotten in the way, it sounds like I need to come up with something  
else when checking if headers have been sent.  Suggestions?




--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.  <http://solarphp.com>

Join the Solar community wiki!  <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP.  <http://phpsavant.com>




More information about the Solar-talk mailing list