Why am I suddenly getting these errors on my site after a year or so of just posting content? I didn't change the config on the server nor did I add any new modules, they just appeared.

http://www.squarefour.org

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/squarefo/public_html/index.php:2) in /home/squarefo/public_html/includes/session.inc on line 10

warning: Cannot modify header information - headers already sent by (output started at /home/squarefo/public_html/index.php:2) in /home/squarefo/public_html/includes/common.inc on line 99.

I also searched this out and couldn't find a solution on my own. This IS NOT a "whitespace at the end of settings.php" problem, I made certain of that and lots of other files too.

The only actions I have performed on my site between today and yesterday were to post some images, which I have done many times before.

Any ideas?

Comments

seaneffel’s picture

I don't know what happened, but I upgraded to the newest 4.6 release, I don't think was more than a .0.1 away anyway, and it seemed to make my problems vanish. I am guessing that re-uploading the installation files was enought to kill whatever bad file had gone corrupt. I won't ever know which file it was, but if you have this mistake then try this solution.

Heine’s picture

The file that starts the output is actually listed in the error message :

warning: Cannot modify header information - headers already sent by (output started at /home/squarefo/public_html/index.php:2) in /home/squarefo/public_html/includes/common.inc on line 99.

(Just thought I should point it out; I wasn't sure if you noticed because of the 'settings.php' comment)
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

seaneffel’s picture

I had tried replacing all the files noted in the error messages, that was index.php and common.inc and another. With no success there, I then carpet bombed my drupal installation with new files and must have got the bad one there.