• Hello everyone. I am new to WordPress, it’s great so far.

    I am trying to implement an XMLRPC upload via either movable type API or Metaweblog API so that I can get it to upload the text and picture that comes with it.

    I have been getting an error back on the client program (AIBO Entertainment Player 2.0) when trying to use either of those 2 methods.

    I have successfully uploaded just the text with the blogger API method, but I want the picture to go as well.

    I turned on error logging in XMLRPC.php, and the log file created an big ole output which on the last 4 lines said the following:

    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==</value></member></struct></value></param></params></methodCall>

    2006-01-01 20:45:34 Output: (MW) Received 105940 bytes

    2006-01-01 20:45:34 Output: (MW) Uploads not allowed

    Is there an admin option inside WordPress that I have missed to enable image upload this way?

    I have been searching for a while on the forums and on the web and although there is a lot of info out there on wordpress 1.5.1x 2.0 seems to be a bit new, any help you can give would be great thanks!!

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter rubsi

    (@rubsi)

    Please someone tell me if they have ever seen this error in the xmlrpc.log at all?

    2006-01-01 20:45:34 Output: (MW) Uploads not allowed

    If so, is it a wordpress or webserver config issue?

    Looks like either no one else has the problem, or those who do aren’t around on New Years Day.

    Can’t help you – I don’t have anything to do with xmlrpc.

    Thread Starter rubsi

    (@rubsi)

    Well thats ok, I didn’t really expect a reply today. It was just my OP was a bit too detailed, I realised that I only needed an answer about the log file message.

    NM I will try a hosted version of WP to see if it has the same issue, that way I will be able to tell if it’s my hosting service or not.

    That’s a good idea! Post back when you figure it out, okay? So the next guy with the problem can find an answer by searching….

    Thread Starter rubsi

    (@rubsi)

    Confirmed.

    I created an account on wordpress.com tested XMLRPC upload and same errors occur at the client end (though since I can’t see the actual log file on that server, I have to assume it is the same error on the server).

    Output: (MW) Uploads not allowed

    So basically at this point the question is:

    Can Movable Type API or Metaweblog API upload pictures via XMLRPC.php on WordPress 2.0 ?

    If they work with other clients, then I will just have to assume that it’s the Aibo Entertainment Player 2.0 that is incompatible in some way with XMLRPC.

    Hopefully someone with some info for you will show up eventually – may be tomorrow though!

    There’s a bug in the XMLRPC uploader in 2.0. The problem is fixed in the repository. You can fix it manually by following these instructions.

    Thread Starter rubsi

    (@rubsi)

    Implemented changes as on that link.

    Sadly it doesn’t appear to fix my problem, I still get the following error in my xmlrpc.log file with the MetaWeblog API:

    Output: (MW) Uploads not allowed

    same thing for the Moveable Type API.

    Again XMLRPC.php only seems to transfer the data correctly when no picture is sent (like when using Blogger API).

    Thread Starter rubsi

    (@rubsi)

    OK here is the piece of code in XMLRPC.php that writes the error out to the xmlrpc.log file:

    if(!get_settings(‘use_fileupload’)) {
    // Uploads not allowed
    logIO(‘O’, ‘(MW) Uploads not allowed’);
    $this->error = new IXR_Error(405, ‘No uploads allowed for this site.’);
    return $this->error;
    }

    where is this use_fileupload variable set in WP2.0? I can find no other reference to it anywhere else in the code.

    Thread Starter rubsi

    (@rubsi)

    To add even more confusion to this, it seems that the above block of code only exists in the ecto version of xmlrpc.php, not the version released with wordpress 2.0.

    This suggests to me that it maybe an obsolete option.

    You have to be an Editor or Administrator to upload files. Authors can’t upload files. You can promote the Author to an Editor or use the Role Manager Plugin to give Authors the ‘upload_files’ capability.

    Thread Starter rubsi

    (@rubsi)

    Thanks Ryan, the account is an admin however.

    I have the same problem using MarsEdit (https://ranchero.com/marsedit/) and Ecto, neither can upload anything (in my case, images). If I copied the xmlrpc.php file from 1.5.2 would that cause any problems and if not would it work?

    Thread Starter rubsi

    (@rubsi)

    This is now fixed for me (though may have other issues later on), at least for the time being.

    First I followed the information here these instructions as suggested by ryan.

    Then I edited the xmlrpc.php file that came from those instructions and commented out this block of code:

    if(!get_settings(‘use_fileupload’)) {
    // Uploads not allowed
    logIO(‘O’, ‘(MW) Uploads not allowed’);
    $this->error = new IXR_Error(405, ‘No uploads allowed for this site.’);
    return $this->error;
    }

    This may be a bad idea long term, but until another fix is available it will have to do. Once again need to stress that the use uploading was an admin user.

    I didn’t notice that he pointed to an older version of xmlrpc.php. That version will not work as is because it has the obsolete check for use_fileupload. Commenting out that check is fine.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘WordPress 2.0 XMLRPC issue….’ is closed to new replies.