• 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 8 replies - 16 through 23 (of 23 total)
  • Thread Starter rubsi

    (@rubsi)

    Great that resolves it for sure for me. For other AIBO owners out there wanting to use wordpress as your blog, I also added this little bit of code in the xmlrpc.php (section added in strong text) file at around line 874:

    $prefix = ‘/’;

    if(!empty($name)) {

    $prefix_img = ”;

    if(preg_match (“/^img.jpg$/i”, $name)) {
    $prefix_img = date(‘U’);
    }

    // Create the path
    $localpath = $file_realpath.$prefix.$prefix_img.$name;
    $url = $file_url.$prefix.$prefix_img.$name;

    if (mkdir_p(dirname($localpath))) {

    It gets around the AIBO Entertainment Player 2.0 loading all the images with the same name (img.jpg) for each blog entry (thereby overwriting the image every time).

    I suspect this is the cause for my difficulties in posting video from Audioblog to my WP 2 site…

    (datailed here http://wordpress.org/support/topic/53747?replies=30)

    Now… I’m too inept with WP to follow all the code that Rubsi used to solve his problem but I’d bet that the reason I can’t post my XMLRPC code from Audioblog is the same…

    Does that sound logical?

    Yes, it’s the same problem. I’ll try to make a replacement xmlrpc.php available that you can drop in over your current one.

    Ryan, did you ever get this xmlrpc.php file done? I’d like to drop it into pcmike’s site since the patchy fixes didn’t seem to do the job.

    Here’s what seems to be the relevant trac link:

    http://trac.wordpress.org/ticket/2202

    Thread Starter rubsi

    (@rubsi)

    To help out here is a link to the 2 files you need to fix it for WP 2.0 (unless there is a better patch out there yet):

    1) take this file:

    http://pughjones.net/functions-post.php.ppj

    Rename it to same without the .ppj on the end
    and replace the one you have in wp-includes (backup the one you have first)

    2) take this file:

    http://pughjones.net/xmlrpc.php.ppj

    rename it to same name without the .ppj on the end
    replace the one you have in root dir (backup again before you do).

    cross fingers……..:)

    i’m not able to get to the functions-post.php.ppj file…

    OK, I think I found the changes in those files and copied them over (via the code changelog here: http://trac.wordpress.org/ticket/2202)

    In audioblog, I now get to where it asks me to select a category from wordpress but the categories are not there…if i go ahead and publish, it says successful but the blog is not updated.

Viewing 8 replies - 16 through 23 (of 23 total)

The topic ‘WordPress 2.0 XMLRPC issue….’ is closed to new replies.