2011年2月4日星期五

[fw-mvc] Cannot send headers

Running ZF 1.11.13 and getting the following execption on a
$this->_redirect();

I've checked for trash output and closing ?> tags but I find none.
Anyone have any ideas as to why this might happen. I can render the
pages just find on my local Zend CE server but not on my hosted solution.

Also the pages render just fine if I call them directly. Get the below
error on _redirect();


Thanks
Lionel Morrison


*
Fatal error*: Uncaught exception 'Zend_Controller_Response_Exception'
with message 'Cannot send headers; headers already sent in
/home/deadfish/public_html/gamebooks/application/controllers/AccountController.php,
line 1' in
/home/deadfish/public_html/gamebooks/library/Zend/Controller/Response/Abstract.php:321
Stack trace: #0
/home/deadfish/public_html/gamebooks/library/Zend/Controller/Response/Abstract.php(339):
Zend_Controller_Response_Abstract->canSendHeaders(true) #1
/home/deadfish/public_html/gamebooks/library/Zend/Controller/Response/Abstract.php(766):
Zend_Controller_Response_Abstract->sendHeaders() #2
/home/deadfish/public_html/gamebooks/library/Zend/Controller/Front.php(992):
Zend_Controller_Response_Abstract->sendResponse() #3
/home/deadfish/public_html/gamebooks/library/Zend/Application/Bootstrap/Bootstrap.php(97):
Zend_Controller_Front->dispatch() #4
/home/deadfish/public_html/gamebooks/library/Zend/Application.php(366):
Zend_Application_Bootstrap_Bootstrap->run() #5
/home/deadfish/public_html/gamebooks/public/i in
*/home/deadfish/public_html/gamebooks/library/Zend/Controller/Response/Abstract.php*
on line *321*

没有评论: