Forum Replies Created
-
AuthorPosts
-
November 26, 2011 at 10:10 am in reply to: "Warning: Cannot modify header information" upon login #38930crwoodhouseMember
UGH okay, this is an issue other users may face so I should state this here.
Over the past week, my host changed a default attribute of all PHP installations on their server.
They changed “output_buffering” from “On” or “4096” to “Off”.
If you do not have a custom php.ini file installed in your wordpress directory, and your host turns off output buffering, you WILL get this error if there are any extra spaces in the scripts running your site.
To resolve this issue, simply create a file called php.ini in notepad and put the following code in it:
[PHP]
output_buffering=4096
Save it, then upload it to your wordpress directory (or sub-directory, if you are seeing this issue in /wp-admin for example.)
Voila, problem solved.
My host changing the default setting of that variable on the server is what caused it to happen across multiple sites. The error was unrelated to the one cache file that the virus scan removed, and unrelated to the script.
Hope that helps somebody some day!
November 26, 2011 at 9:48 am in reply to: "Warning: Cannot modify header information" upon login #38928crwoodhouseMemberAre you still receiving trojan warnings from the site? If so, could you tell me if your scanner tells you exactly which file the trojan is coming from? I did a virus scan on all sites and found nothing, and the issue is still present.
November 26, 2011 at 9:12 am in reply to: "Warning: Cannot modify header information" upon login #38927crwoodhouseMemberIt was just setup in the last couple of hours, so that is fairly impossible. I’m currently talking with hosting support since I just discovered this issue is also on another WordPress site hosted with them.
-
AuthorPosts