Fixing Del.icio.us and Marsedit auto posting to Dreamhost hosted Worpdress Installations

Sometime after 5PM PST on May 10th, Dreamhost apparently upgraded their version of PHP. Their custom compilation looks to have some bugs in it that have not yet been fixed, leaving customers with some nasty issues.

I have del.icio.us set up to auto post my bookmarks to Life, it is a Travesty (my personal site) and since then, the daily post has failed. I noticed it a month or so ago and made a task to fix it, but never really got around to it.

Yesterday I made a new task to start using Marsedit to post again. When it failed for the same reason I knew I had to find the answer and find it quick. I haven’t been able to find information on Dreamhost’s site as to when they expect to fix the issue, but I’d be glad for them to comment here on the issue.

When you see you are getting the error

XML-RPC server accepts POST requests only.

from Marsedit, del.icio.us, or any other application using XML-RPC to access your WordPress (or otherwise PHP based) site, then keep reading for what you can do to fix this.

Add this at the VERY top of {WORDPRESS_ROOT}/xmlrpc.php (replacing the first line):

<?
$HTTP_RAW_POST_DATA = file_get_contents(“php://input”);

That’s it! You’re now ready to go.