5/25/2004 ↓

“xmlrpcval: not a scalar type ()” error in WordPress

If you like this post, please subscribe to our RSS feed to read our new posts every day.

For everyone having problems with the WordPress to LiveJournal hack, I have found a solution thanks to testing from Kitten and Cytoplas (from #Wordpress). Please download the following file:

http://weblogtoolscollection.com/b2-img/class-xmlrpc.phps

rename it to class-xmlrpc.php and replace the original found in the wp-includes folder of your blog. This file has a bug from WordPress.

You can download the new instructions from here:
http://weblogtoolscollection.com/b2-img/ljautoupdate12.txt

By popular request, this lot as a zip file:
http://weblogtoolscollection.com/b2-img/lj2wp.zip

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Friends

Translate

Translate to German Translate to Spanish Translate to French Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Russian Translate to Chinese

Latest Videos

9 Comments | Leave a comment | Comments RSS

  1. Nope, that didn’t seem to work either…

    [Reply]

    Michelle (1 comments.) — 05/25/2004 @ 11:48 am
  2. I still am recieving the error as well. Hmm.

    [Reply]

    Troy — 05/25/2004 @ 7:05 pm
  3. I managed to make mine work, although I haven’t a clue why it makes it work. Basically, in this section:


    if (CANUSEXMLRPC == 1) {

    $xmlrpcI4="i4";
    $xmlrpcInt="int";
    $xmlrpcBoolean="boolean";
    $xmlrpcDouble="double";
    $xmlrpcString="string";
    $xmlrpcDateTime="dateTime.iso8601";
    $xmlrpcBase64="base64";
    $xmlrpcArray="array";
    $xmlrpcStruct="struct";

    I added this line before the variable assignments:

    global $xmlrpcI4, $xmlrpcInt, $xmlrpcBoolean, $xmlrpcDouble, $xmlrpcString, $xmlrpcDateTime, $xmlrpcBase64, $xmlrpcArray, $xmlrpcStruct;

    The variables should be global in scope by default though…not a clue why this worked. Basically, after a bunch of echo statements, I figured out that $xmlrpcString was losing its defintion. So in the addScalar function, it went, oops, not found in $xmlrpcTypes, so it’s not a scalar type!
    And the headers error was basically, stuff was already outputted before, so that must have obviously have been headers…

    I still don’t know why what I did made it work though.

    [Reply]

    Mark Miller (2 comments.) — 05/25/2004 @ 11:30 pm
  4. Even with the new modification??

    [Reply]

    Mark (58 comments.) — 05/25/2004 @ 11:47 pm
  5. That is exactly the bug. Glad it worked for you.

    [Reply]

    Mark (58 comments.) — 05/26/2004 @ 6:31 am
  6. THANK YOU THANK YOU THANK YOU!!! =)

    I was getting so annoyed! Now if only I can get that usertag hack to work, I think I might be happy!

    Thanks again!

    [Reply]

    Tek (2 comments.) — 05/26/2004 @ 8:35 am
  7. That worked for me, too. Thanks Mark!

    [Reply]

    Troy — 05/26/2004 @ 5:18 pm
  8. A zipped version of the file would be nice. I can’t seem to download a properly formatted .phps using wget, curl, links or lynx.

    [Reply]

    Tushar Burman (1 comments.) — 05/27/2004 @ 11:19 am
  9. Zipped version available.

    [Reply]

    Mark (58 comments.) — 05/27/2004 @ 6:10 pm

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required, will not be published)


S2