WordPress.org

Forums

XML-RPC Response Parsing Failed ERROR (12 posts)

  1. MarchRoc
    Member
    Posted 8 years ago #

    I get this error:XML-RPC Response Parsing Failed when I try to post ot my blogs using ecto or mars edit. My wordpress blogs:
    http://marchionda.org and http://macwitness.com. I really do not know why. Could it be a plug in that is messing things up? Any help would be apprediated. thanks in advance.

    I did do a search, but didn't get any results.

  2. flammable
    Member
    Posted 8 years ago #

    Are you using Dreamhost? Am having the same problem, and it just started happening.

    I posted to the MarsEdit forums. You might want to keep track there, too.

  3. MarchRoc
    Member
    Posted 8 years ago #

    Yes, I am using dreamhost. And they just said that they would only help with the installation of wordpress, but not third party things like ecto. But clearly something has changed recently. I will go check that out!

  4. Kelson
    Member
    Posted 8 years ago #

    This is almost certainly the same problem I had here with PHP 5.2.2. There's a bug in that version with XML-RPC.

    Workaround: add the following line at the beginning of WordPress' xmlrpc.php file, right before the first reference to $HTTP_RAW_POST_DATA:

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

    (In theory it should be fixed in the next version of PHP.)

  5. Bunzie
    Member
    Posted 8 years ago #

    Thanks, so it should look like this:
    <?php

    define('XMLRPC_REQUEST', true);

    // Some browser-embedded clients send cookies. We don't want them.
    $_COOKIE = array();

    # fix for mozBlog and other cases where '<?xml' isn't on the very first line
    if ( isset($HTTP_RAW_POST_DATA) )
    $HTTP_RAW_POST_DATA = file_get_contents("php://input");
    $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);

    include('./wp-config.php');

  6. Bunzie
    Member
    Posted 8 years ago #

    Opps sorry, mrmrocco is now Bunzie. I had a username make over. :)

  7. flammable
    Member
    Posted 8 years ago #

    I did it like this:

    <?php

    define('XMLRPC_REQUEST', true);

    // Some browser-embedded clients send cookies. We don't want them.
    $_COOKIE = array();

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

    # fix for mozBlog and other cases where '<?xml' isn't on the very first line
    if ( isset($HTTP_RAW_POST_DATA) )
    $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);

    include('./wp-config.php');

    and things seem to work again! Thank you, Kelson.

    Bunzie, be sure to put it in the correct place...he mentioned inserting the code before the first reference to $HTTP_RAW_POST_DATA. :)

  8. Bunzie
    Member
    Posted 8 years ago #

    Wow, Thanks! That worked perfectly. I really appreciate you helping me out! You just saved my blogging world. :)Have a great day.

  9. Marcomail
    Member
    Posted 8 years ago #

    i think if you switch to php 4.** you solve the problem

  10. flammable
    Member
    Posted 8 years ago #

    Yes, or PHP 5.2.1. But PHP 5 should be the way to go, if possible.

  11. Marcomail
    Member
    Posted 8 years ago #

    But on Dreamhost i have PHP 5.2.1 , why ?

  12. tomtom1965
    Member
    Posted 8 years ago #

    Hi,
    sounds as if it would work. Because I am an total newbee regarding php and so on.
    Would someone of you be so kind as to change (correct) my "xmlrpc.php file" - file?
    Can't wait to work with Marsedit again!!!!!

    If someone would chnage it for me I would like to send the file by mail.

    Greetings
    Thomas from germany

Topic Closed

This topic has been closed to new replies.

About this Topic