[Solar-talk] fatal error on no view
Paul M Jones
pmjones at ciaweb.net
Tue Jul 17 07:32:56 CDT 2007
On Jul 17, 2007, at 6:44 AM, Antti Holvikari wrote:
> On 7/17/07, Jeff Surgeson <solar at 3hex.com> wrote:
>> Accidentally ran a controller action which did not have an
>> associated view and
>> got the following notice and fatal error, is this me or Solar, the
>> chances in
>> a live environment of there not being an associated view is
>> unlikely but
>> thought that it should do something other than throw a fatal error?
>>
>> Notice: Array to string conversion
>> in /var/www/localhost/htdocs/libsvn/Solar/Locale.php on line 262
>>
>> Fatal error: Method Solar_Http_Response::__toString() must not
>> throw an
>> exception in /var/www/localhost/htdocs/libsvn/Solar/Controller/
>> Front.php on
>> line 192
>
> Paul, is this the third time? ;-)
>
> Jeff, fatal error is because headers have been sent because of the
> Notice and there is an exception thrown in __toString(). Which sucks.
Yeah that's the 3rd time and the last straw. Will commit a fix later
that removes the "headers already sent" exception. And it seemed
like such a good idea at the time.
> Don't know about the view/error behavior, though.
Guess we'll see once that stupid exception is out of the way.
--
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