Hey there!
I’m hoping to help YOU and everyone who has this bloody error once and for all. This worked for me, and I sure hope it works for you. I once had the issue happen on my site over at: SharpeFIT.com not once, but THREE times, and have safely recovered it after many head-bangs against the computer keyboard (lol).
(*Note: I’ve tried the whole <ob_flush> and removing “blank lines” from the other help files, and nothing worked at all – what I’m about to share was the only thing that worked for me*)
Here we go. First off, you need to know WHERE the issue is coming from. Let’s use your error as an example:
Warning: Cannot modify header information – headers already sent by (output started at /home/paulswanson22/travelerpaul.org/wp-content/themes/thesis_185/custom/custom_functions.php:1) in /home/paulswanson22/travelerpaul.org/wp-includes/pluggable.php on line 876
Now, the BOLDED section is the culprit. Not pluggable.php. So, what you have to do is go into your FTP (use a FTP host like Dreamweaver, FTP, etc. – if you don’t have one, you can also try to go into your FileManager with CPanel or whatever service your host runs on).
Step 1. Go into /wp-content/themes/thesis_185/custom/custom_functions.php (or whatever the location is showing in the first set of parenthesis) Copy (CTRL-C) the entire document – no more, no less.
Step 2. Open NOTEPAD in Windows and PASTE (CTRL-V) the entire document into notepad. Go to the top of the file and make sure there is no extra space before <? php and at the end of the document make sure there is no extra space after ?>
Step 3. Save AS in Notepad. Rename the file to custom_functions.php (the original file located in Step 1).
Step 4. Go into your FTP/File Manager, and upload the PHP file. It will probably ask you if you want to overwrite the file (because it already exists) – YES you do want to overwrite it (just make sure it matches the copy/paste you did in steps 1 and 2.
Step 5. Refresh your Browser, and the original error message *Should* go away.
But wait…there may be more!
Then, it might flash another error, instead of /wp-content/themes/thesis_185/custom/custom_functions.php as the culprit, it may throw something random like /wp-content/plugins/someplugin/theplugin.php. For example, the error would then show something like:
Warning: Cannot modify header information – headers already sent by (output started at /home/paulswanson22/travelerpaul.org/wp-content/plugins/someplugin/theplugin.php:48) in /home/paulswanson22/travelerpaul.org/wp-includes/random.php on line 876
How to fix it? Follow steps 1-5, finding this new file under wp-content/plugins.
After that, YES – it may happen yet again. A new error code! This time it might even be pluggable.php, or wp-login. Regardless, just keep following steps 1-5 until it clears up. There was one time I had to do this for 9 or 10 times before it stopped showing all of the errors.
The key is finding whatever file is showing up first (in this example, in the bolded piece above) and doing Step 1-5.
I sure hope this helps. It may not work for everyone, but after trying all of the other help files with no luck, this was what worked for me!
If you have any questions or need clarification, let me know.
Bob