Forums

[resolved] XMLRPC new page (6 posts)

  1. cogmios
    Member
    Posted 2 years ago #

    suddenly my XMLRPC calls to create a new page dont return a pageid anymore, they return nothing.

    The page gets created (without the content, only the title) and nothing gets returned.

    anyone experiences this also?

  2. cogmios
    Member
    Posted 2 years ago #

    The xmrpc.log states:

    2010-04-01 23:06:55 Output: Posted ! ID: 8828

    so where to travel from there?

  3. cogmios
    Member
    Posted 2 years ago #

    aha! I think something has changed it now returns

    <?xml version="1.0"?>
    <methodResponse>
    <params>
    <param>
    <value>

    <string>8830</string>
    </value>
    </param>
    </params>
    </methodResponse>

    Somehow.... in the past I had todo $response = xmlrpc_decode($file);
    after this but that returns now an empty string, has something changed here?

  4. cogmios
    Member
    Posted 2 years ago #

    Hmmm if I copy the returned string in a string and do the echo of the xmlrpc_decode($file) it works...

    If I however do exactly the same on the returned string... it returns nothing...

  5. cogmios
    Member
    Posted 2 years ago #

    So the root cause is that the php function:

    xmlrpc_decode

    no longer works on the response, at least probably not without some pre processing, dont know what yet.

  6. cogmios
    Member
    Posted 2 years ago #

    Ok... this was simple from now on I have to put a....

    trim(...) around the response.....

    I dont know what has changed, but apparently..... a space has been added somewhere in the code........

    whatever, took me some time though.

    cant believe im the only one with a no longer functioning xmlrpc retriever though.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags