Header Information already sent by...
This is an open discussion with 6 replies, filed under Troubleshooting.
Search
Turn off PHP warnings and you should be fine.
When using a version of PHP 5.2.x with Symphony 2.3 I had to enable Allow Call Time Pass Reference to get rid of a similar error message in the back end.
Ouch, looks like you're using an old version of PHP that Symphony doesn't like.
Works ok on PHP 5.2.6 if you do enable Allow Call Time Pass Reference, thought it might be useful to note if anyone's having to use an older version.
I use 5.3.x in general and of course Symphony 2.3 works fine out-of-the-box on that.
I'm getting this error currently when trying to view ElasticSearch Mappings (on localhost, MAMP) and I have been getting it alot recently on localhost. I am currently running PHP 5.5. I seem to be getting the same errors when I change to PHP 5.4 or PHP 5.3.
Symphony Warning:
Cannot modify header information - headers already sent by (output started at /Users/jdsimcoe/Sites/atheycreek/workspace/elasticsearch/mappings/teachings.php:1)
An error occurred in /Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.page.php around line 308
303 if($key == 'status' && isset($value['response_code'])) { 304 $res_code = intval($value['response_code']); 305 self::renderStatusCode($res_code); 306 } 307 else { 308 header($value['header']); 309 } 310 } 311 } 312 }
Backtrace
[:0] GenericErrorHandler::handler(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.page.php:308] header(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.page.php:274] Page->__renderHeaders(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.htmlpage.php:102] Page->generate(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.administrationpage.php:528] HTMLPage->generate(); [/Users/jdsimcoe/Sites/atheycreek/symphony/lib/core/class.administration.php:468] AdministrationPage->generate(); [/Users/jdsimcoe/Sites/atheycreek/index.php:22] Administration->display();
Any ideas?
Here is a gist of the entire Error code.
Thanks for the help!
I solved the issue and posted about it here. Basically watch out for invisible characters at the beginning of files.
Create an account or sign in to comment.
Hi,
I play a bit around with Symphony and it seems to be the right for my project. So now after the installation is done everything is working fine except for "Data Sources" - I get this error message everytime... somebody here who can help me?