Hi all: Bizarre problem here.
I'm getting the "Cannot modify header information - headers already sent by..." messages, and can't log in, etc. Problem is, the error is not actually on the files in question, it's on the files *calling* those files.
Ex: I was first getting errors (in two locations) about two different files. One of them was "wp-config.php: Line 1". I confirmed over and over again that there were no problems on that file. However, after exploring my blog's root dir a bit, I found that (after my host ran a script through everyone's files) other files had spaces after the ending "?>". So I went around editing other files, removing spaces after "?>", and each time I changed a few files, I noticed that the error location changed: xyz.php line 1 to xyz2.php line 2 to xyz3.php line 1, and so on.
So as best I can wager, in some of my files - somewhere - in out of hundreds of files, I have these "whitespaces after the ?>". Yuck.
Anyway, instead of going through every single text file, I went ahead and overwrote (upgraded) my wordpress to the latest: Problem is, the issue persists. Whatever files have these whitespaces, they're generated files, not files in the wordpress zip...
So, I guess what I'm looking to do is a complete reinstall of this wordpress instance, from scratch (not an upgrade): But I want to keep and use my existing mysql DB, I don't want to overwrite/clear it.
How do I do this? IIRC, if I go through the normal installation process (that is, completely delete all WP files, go through the default setup webpage) it will ask for my db/password, then *recreate* the tables, blowing away my existing data.
Is there an easy way to do this? Or is my best bet:
* Back up my mysql db
* blow away WP files
* blow away WP DB
* install WP files from scratch, new install
* Go through install process to create a new db
* then overwrite the new db by restoring the old DB
Thanks-
Andy