Update: I finally fixed this issue based on a shot in the dark, hail mary attempt. I will blog about it more next week. For now, suffice to say this kind of thing makes me want to buy and colo my own server.
You may have noticed this site was down all day yesterday.
After about 5 hours of troubleshooting I’ve narrowed it down to either a WordPress issue, or a DreamHost issue.
Closing HTML Tag Killer
I know how to fix the problem: If I go into footer.php and remove the closing HTML tag the home page and single post display work…if I add it back they crash (500 error – when I look in the error log the message is “Premature end of script headers: php5.cgi”).
But the weirdest part is that I haven’t touched the blog, aside from publishing a couple new posts, in weeks. So for this to start suddenly means something else must have changed.
RSS Also Down
Although I hate the idea, I was considering leaving it without a closing HTML tag for the weekend and coming back to it after the holiday since browsers are very forgiving about not having a closing HTML tag. However, I noticed my RSS feed is also down, and when I remove the closing RSS tag the feed works in my browser, but FeedBurner chokes on it.
So I actually have to solve this problem. I’ve tried everything I can think of but haven’t made any progress in the last few hours.
The last piece of information is that the 404 page works whether or not the closing HTML tag is in place. But when I copy the 404 page code into the index or single post template, it still crashes. So it seems like the content of the index and single post page don’t matter that much, although if I remove all of the content from these pages they do load fine.
Add to this the fact that the site stopped working very suddenly at 9 in the morning and it seems to me this is either a DreamHost issue or I’ve been hacked.
Any ideas are appreciated…
If you’re a WordPress guru and want to take a crack at fixing it I have no trouble compensating you for your time. Please email me at email@example.com.