Link to home
Start Free TrialLog in
Avatar of brian ramos
brian ramos

asked on

Problem with blog coding

Hi there. I have a wordpress blog and I see this error message on the top when I login...

how do i fix this

Warning: Cannot modify header information - headers already sent by (output started at /home/sling15/public_html/livinglikehim.com/wp-includes/general-template.php:2102) in /home/sling15/public_html/livinglikehim.com/wp-includes/pluggable.php on line 876

i use the thesis theme so if anyone have info on how to fix this that will be good
Avatar of mcnute
mcnute
Flag of Germany image

add ob_start(); in both of the pages wich are throwing the error message.

That's because you send something to the client before all php code has been executed and this is against w3c standards that headers must be sent before any content and only in this order headers->content.
Avatar of brian ramos
brian ramos

ASKER

how do i do that? where do i go?
ASKER CERTIFIED SOLUTION
Avatar of mcnute
mcnute
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jason C. Levine
The problem is being caused by a bad plugin or theme file.  Mcnute's answer, while it will work (except you can't edit the core from the backend, need to use FTP), involves changing core WordPress files and as soon as WordPress updates the changes will be lost and the problem will return.

You would be better off isolating the problem file by deactivating all plugins and then reactivating one at a time until the problem reappears or searching through the theme to see where headers are being sent and attempting to comment out those lines.
how do i search through the theme to see where headers are and comment them out...

how do i do that???
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial