Thursday, 14 July 2011

Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in ....


14/7

If you ever get this error in Zend Framework, then you should check your class files for whitespace before your <?php tags. (Note, this doesn't apply to files with phtml extensions; only xxxx.php files.

Was almost gonna pull my hair out after my application started throwing these exceptions, hopefully this will save someone a lot of time.

David Powers wrote a nice article about it, have a look at:

http://kb2.adobe.com/community/publishing/505/cpsid_50572.html

No comments:

Post a Comment