So many bugs…from so many sources…

While I’m trying to improve my Live Space Mover, I found the XMLRPC function of my blog doesn’t work. It always returns an error string “XML-RPC server accepts POST requests only”. Finally I got the answer by Google, it’s a problem of PHP 5.2.2….It seems that my host provider interadvantage just updated their PHP version.

The solution is from here

Dreamhost recently updated its version of PHP 5.2.2, which is broken. Specifically, it suffers from this bug, which clobbers WordPress’ xmlrpc.php file. The fix is to add this line to the top of the file xmlrpc.php in your WordPress root:

Code:

$HTTP_RAW_POST_DATA = file_get_contents("php://input");

Cleared up the problem for me.*

*Edit: Where “the problem” was MarsEdit falling over because of mysterious “POST only” messages.

Leave a comment

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.