Forums

org.xmlpull.v1.XmlPullParserException: etc

  1. Jonathan Nation
    Member
    Feb 3, 2010, 3:02 AM

    I have tried logging into 2 separate installs, all hosted on the same server, and generally developed the same way - all have basically the same error. All are self installs.

    full text off this most recent error is:

    Connection Error
    org.xmlpull.v1.XmlPullParserException: unexpected type (position: TEXT XML-RPC server a...@1:42 in java.io.InputStreamRader@4479df40)

    another is the same, just with 448c34a0 at the end

  2. Jonathan Nation
    Member
    Feb 3, 2010, 3:03 AM

    oh, all installs are in the main director, at the location of the site, so this is not a "it's in the wordpress director" issue.

  3. I think the rest of the message may be "server accepts POST requests only". Are you on a linux server?

  4. Jonathan Nation
    Member
    Feb 3, 2010, 4:17 AM

    yes, linux based server (dreamhost)

  5. mektoub@gmail.com
    Member
    Feb 3, 2010, 1:07 PM

    Hi,

    I'm facing exactly the same problem with the same error message.
    I'm using the french version of wordpress on a free hosting solution from my IAP.
    This is a manual installation of wordpress ...

  6. Have you checked that the permissions are set correctly on the xmlrpc.php file? We've tested on dreamhost installs without issue.

  7. Jonathan Nation
    Member
    Feb 3, 2010, 8:58 PM

    nope, where can I find documentation to know what the permissions should be?

    Where is any documentation on how to set stuff up, so that I could look there (as opposed to asking the troubleshooting form)?

  8. I have two Wordpress installations running on Dreamhost - one works fine and the other gives me the Connection Error
    org.xmlpull.v1.XmlPullParserException:. . . .

    Permissions on the xmlrpc.php file are identical. CHMOD 644 if that is helpful to anyone, though I think it is not.

  9. @tgelston, are your WordPress installs nearly identical as far as version, folder location, etc? Since one of yours works, hopefully you can help us figure out what the issue is. Maybe a plugin that's installed that may be interfering?

  10. The error message I get when I try and add one of my blogs is:

    org.xmlpull.v1.XmlPullParserException: PI must not start with xml (position:unknown @3.5 in java.io.InputStreamReader@43573d70)

    I have managed to install it on another blog ok. Near enough the same plug-ins used in each installation.

    Both blogs are running WP 2.9.1 and I'm accessing via HTC Hero.

  11. Jonathan Nation
    Member
    Feb 3, 2010, 11:49 PM

    alright, I found my issue.

    I discovered it when one of 18ish accounts worked (I did not try all, just came to one that worked).

    I was entering the URL like this:
    domainname.com

    this did not work until I came to one account. The differance with this account is that it is set to always subtract out the www at the beginning, where all other accounts have "add in www" (or work either way, not 100% on all).

    With the ones that were not working with domainname.com ... they work with http://www.domainname.com

    The one that does work with domainname.com does not work (gives the same error message) if I try it as http://www.domainname.com

    This seems to be working with all my accounts. I will continue testing accounts to make sure.

  12. Jonathan Nation
    Member
    Feb 3, 2010, 11:53 PM

    that last one broke a little ... where it has "http://www.domainname.com" ... it should be just "www" followed by ".domainname.com"

    hope that is clear ... once I figured out which of the sites needed which (with or without the www) everything seems to be working correctly.

    @tgelston - do you have the same thing, the site that worked is set to remove (or work either way) and the one that did not needs the www?

  13. I am having the problem also. My url is blog.domainname.com and the permissions for xmlrpc.php are 644. Any hints as to what to try next? Thanks.

  14. Jonathan Nation
    Member
    Feb 4, 2010, 4:09 AM

    @stiarnadad , the tip in this thread might be closer to what you are looking for, my issue was not having the www at the front of what I entered (best I can tell).

  15. The one that works is subdomain.domain.com

    The one that doesn't is subdomain.domain.com/folder/

    I don't have time to compare plugins tonight but will hopefully have a few moments tomorrow.

  16. Jonathan Nation
    Member
    Feb 4, 2010, 4:23 AM

    @tgelston did you what is in this thread?

  17. mektoub@gmail.com
    Member
    Feb 4, 2010, 2:47 PM

    My not working blog also have the same kind of adresse, subdomain.domain.com/folder/

  18. @nation20 I don't get the xmlrpc.php not found, please check your path Well I do if I type in the address wrong ;) On both domains but this second domain, the one in a sub folder just gives me the

    org.xmlpull.v1.XmlPullParserException: PI must not start with xml (position:unknown @4.5 in java.io.InputStreamReader@4480cc80)

    I tried putting a www in front of the subdomain.domain.com/folder and still get the error.

  19. @nation - maybe you were asking if I added the

    <Files xmlrpc.php>
    SecFilterInheritance Off
    </Files>

    to my .htaccess file? Everytime I try it breaks my site, I have tried adding it to .htaccess in the root of the site and in the folder where WP is already installed and an existing .htaccess which contains

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /recs/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /recs/index.php [L]
    </IfModule>
    # END WordPress

    I appreciate any thoughts.

  20. mektoub@gmail.com
    Member
    Feb 10, 2010, 10:48 AM

    Did someone find out what's going on ?

  21. Not that I have seen - Just tried again after updating the App and I get the same error.

  22. @tgelston - can you check if your server is adding the UTF-8 byte order mark to the XMLRPC response? That could be why you are getting that error. We tried to accomodate for that in the app but it doesn't appear to be working in your case...

  23. @mrroundhill - I am not sure how I got about doing that. I did just take the XMLRPC file from the working install and uploaded it to the non working install - still get an error, although slightly different

    org.xmlpull.
    v1.XmlPullParserException:
    unexpected type (position:
    TEXT * @1.1 in java.io.
    InputStreamReader@44839fe0)

    * is actual a ? in a white diamond.

    I appreciate your help.

  24. tgelston,

    I had posted here: In this thread, and it now looks like we've got the same issue. Mrroundhill suggested that it might be that it could be the XMLRPC responses with the UTF-8 Byte Order Mark (BOM) in them, but checking my wp-config.php file, the encoding is just utf8 (not utf8 BOM). I'm not sure if these should be merged, but I'm going to update to 1.01 and see if that helps.

    Cheers

  25. @wcyarbrough - Ah interesting, I think they are the same issue, especially when I see the bit about subfolders - that would make sense. I too am only using UTF-8 for encoding.

    I have the 1.01 version - no change for me.

  26. tgelston,

    With 1.0.1 version, I still see no change. I'm not sure how to go back trough my installation to make sure the encoding is correct. Any thoughts?

    cheers

  27. I've installed version 1.01 of the app but still the same error message

    org.xmlpull.v1.XmlPullParserException: PI must not start with xml (position:unknown @3.5 in java.io.InputStreamReader@43573d70)

    self hosting with wp in the root i.e. no subdomain, no folder..

    very annoying as I can add other accounts but not my main blog :(

  28. Just FYI - we didn't do anything specifically to fix this in v1.0.1

    Has anyone tried disabling plugins to see if any of those are causing the issue? It also appears that some certain server configs have problems with libxml2:

    http://josephscott.org/archives/2009/03/conclusion-of-libxml2-issues-use-php-529-libxml2-273/

    Can you check that and report back?

  29. I deactivated all plugins - still same error

    Ran php info, I am running libxml Version 2.6.27 on both the server that works and the one that does not. Running PHP Version 5.2.12 on both too.

    The only real difference between the two is the fact that the non-working WP install is in a sub-directory.

    I appreciate your continued efforts!

  30. @tgelston - Thanks so much for trying that out. Would you be willing to give me access to a read only account on your blog? That way I can step through the code to see exactly what's going on to get it working for you and hopefully the others that are having this issue.

Topic Closed

This topic has been closed to new replies.


About this Topic