Pesky Extra Space

I had this problem this morning. My other blog, AtLastMyLove was giving me an error whenever I tried to pull up the domain with the. It also gave me an error whenever I tried to go to the admin portion of the site. This was the error:

Warning: Cannot modify header information – headers already sent by… in wp-includes/pluggable.php on line XXX .

I did all but completely delete my website and start from scratch. I was really at my wits end. I was even going to switch my web hosting over to windows web hosting. (Seeing as how this had all started with my domain being hacked with javascript injection.). Through my webhosting control panel, I completely deleted wordpress, uploaded the newest version, replaced the contents folder. The only file that was not being changed was the wp-config file, since that had all my connection data. So, I assumed that this had to be the file with the problem. I kept reading on web hosting and wordpress forums that this error was caused by space in your code. Line by line I took out the extra space between every line of the configuration file. I was at my wits end when hours after this had all started, I pulled the config file into a text editor.

There after the closing tag of php blinked my cursor… exactly one space after the closing tag. I took out that one space and uploaded the file. Immediately everything began working. It’s amazing how one little space can make all the difference. 🙂

So, I guess I can keep my account hosted on the linux web hosting account for now. It’s kind of ironic- I work at a web host, and I spent three hours picking apart the code of my site for one pesky space.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.