AjaxChat v0.4.2
Ok, so my previous version v0.4.1 did not fix the headers already sent error. I finally figured out what was going on with this. I have the php.ini variable ‘display_errors’ set to off. This turns off any error messages that may be displayed, so I was not getting the headers already sent message and everything was working fine. The problem, it turns out, is that the error message was foobaring the javascript/css. So really, all I needed to do was to suppress the errors using @header() when sending headers. Also, just in case, I turned on output buffering in the scripts that do send headers. What this does is queue up header requests and send them all once it’s parsed the entire script. Which should get rid of the error message altogether, but even if it doesn’t, the @ will suppress it so the javascript/css will function properly! Okay. I’m pretty sure we won’t be seeing the headers already sent message again. Hope this helps. Keep giving me feedback! It’s the only way I know when something’s wrong. Thanks again!
PS: You might have to wait a few minutes for the update to hit the WordPress servers (11:16 GMT-4)
