Forums

Role scoper plugin incompatible.

  1. After a bunch of testing and messing about, I found that the plugin Role Scoper, which I use to restrict viewing of certain categories to registered users, is causing the "Parse error. not well formed" and "Communication error Bad user name or password" errors. If the developers here could help me figure out a work around, it'd be much appreciated. Thanks!

  2. A clarification: it seems like creating new posts works okay. It's editing existing posts that doesn't work.

    Can a developer here give me some more information about the xmlrpc methods that the iPhone app is using? Where can I find the calls to xmlrpc.php in the source? I've contacted the developer of Role Scoper and he says his xml output works fine with other xmlrpc apps (like Windows Live Writer and ScribeFire), but he doesn't have a testing platform for the iPhone app...

    Thanks for any help you can provide.

  3. wpmaniac,

    interesting problem.

    Here's what I'd suggest - assuming you're on a mac, use something like HTTP Client to do an HTTP POST to your xmlrpc endpoint.

    I believe we're using this command for getting posts
    metaWeblog.getRecentPosts

    Capture the XML returned and use a validator of some kind to check the XML. That will indicate whether of not the XML truly is well-formed.

    If the plugin is requiring a username and password to access individual posts, that may be an issue as well... I'd need more info to take a stab at which method might be failing here... Where exactly does the error occur? When trying to save an updated post? Or when loading the blog for the first time?

    For an idea of the methods used, check out the BlogDataManager.m file from the project's source code and look for the refreshCurrentBlog method.

  4. Thanks for the reply! The problem is with trying to update an existing post. I can duplicate the "Bad login/pass combination" error when I submit the metaWeblog.getRecentPosts method call in HTTP Client.

    Are the "Update" calls in the iPhone app set-up differently than the "Create" ones? It's gotta be some kind of conflict in the way that my WordPress install is handling security differently with the Role Scoper plug-in installed, right? So perhaps Updates aren't passing user/pass values along with the other method calls? How do I snoop on what calls the iPhone app is making to my WordPress?

    I'd be happy to give you access to my blog, per your offer in this thread, but I'll need to know how to get login info to you by some private channel.

    Thanks again for your help and hard work on the app. It's truly appreciated.

  5. Update: the developer has come with a fix for version 1.0.8 of Role Scoper:

    Remove lines 169 & 170 from role-scoper_init.php which are:

    elseif ( defined('XMLRPC_REQUEST') )
    		require_once('xmlrpc_rs.php');

    I'm not sure if this is a long-term fix or not, but it seems to be valid workaround for the time being.

Leave a Reply

You must log in to post.


About this Topic

Tags

No tags yet.