Support » Plugin: WP-United : phpBB WordPress Integration » WP-United forum permission roles are not saved in phpBB

  • Hello all,

    when I try to change the setting “Can post blog posts to this forum” from “no” to “yes” on any of the existing roles, it just does not work.

    The setting is back to “no” when I open the role settings again and take a look into it.

    Does anybody else have this problem?

    Cheers,
    Martin

    http://wordpress.org/extend/plugins/wp-united/

Viewing 15 replies - 16 through 30 (of 35 total)
  • Plugin Author jhong

    (@jhong)

    Hi,

    Sorry for the delay.

    There is a bug with v0.9.2.1 — the local forum permission didn’t get added unless you had upgraded via v0.9.2.0. However I think you did go via 0.9.2.0? If not, see here for a resolution: http://www.wp-united.com/viewtopic.php?f=14&t=3419&p=13737&sid=4ac7084e249af71ec3983dafd3870076#p13737

    Make sure you are applying the local permission — I had toyed with the idea of adding a global one, but in retrospect it was a mistake and I removed in in v0.9.2.1

    —-

    All the cross-posting permissions are predicated on phpBB permissions. So when you initially cross-post, or edit a post that is cross-posted, WP-United asks phpBB “does this user have permissions to do that? Do they have the cross-posting permission, and can they normally do this in that forum”. It’s all native phpBB. if phpBB doesn’t think you’re logged in, then the answer will be “no”.

    So working user integration and single sign-on is a pretty basic requirement. Despite not having a valid auth cookie, you should still be considered logged in — WP-United will just have to override phPBB’s logged out status on every page. This should be happening. If you turn on WPU_DEBUG in wp-united/options.php, you should see q whole bunch of information about the login flow — that you were initially considered logged out of phpBB and what WP-United did about it.

    Plugin Author jhong

    (@jhong)

    BTW, thanks very much for helping with the German translation.

    The translations are all done collaboratively on launchpad.net: https://translations.launchpad.net/wp-united

    What is there may be newer than what is in the download package.

    More details on translation are here: http://www.wp-united.com/2012/12/12/how-to-help-translate-wp-united/

    I just tried to install the newest WP-United. The MapPress plugin seems to have problems with it:

    Non-static method Mappress_Map::register() should not be called statically, assuming $this from incompatible context

    I cannot login anymore to the backend. More later, I first need to cleanup the mess here…

    Hm, I just disabled MapPress again and the next plugin is not happy with something.

    call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically

    I would say, WP-United is causing that. Because after disabling it, everything is fine again.

    Please help! 😉

    Ok, now I need to wait until you reply. Cannot test anything.

    Most likely I will work a bit on the German translation here. As I said, I got started and changed some translations and added some new ones. Keep you posted.

    Hopefully you can tell me what I can do to get WP-United back up and running.

    Hm, I just disabled MapPress again and the next plugin is not happy with something.

    call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically

    I would say, WP-United is causing that. Because after disabling it, everything is fine again.

    Please help! 😉

    Same thing here.. I just downgraded back tot he previous version (or the version before that) to solve it

    Plugin Author jhong

    (@jhong)

    Sorry for the inconvenience. I will take a look and get back to you soon.

    Plugin Author jhong

    (@jhong)

    So far, I’m not able to duplicate these errors.

    I believe I am accidentally making WP-United catch errors in all plugins. If you change the following line in wp-united/context-switcher.php:

    $this->restore_phpbb_err_handler();

    to:

    restore_error_handler();

    Do the problems go away?

    Plugin Author jhong

    (@jhong)

    Apologies, that line is in phpbb.php.

    Works! Great, thanks! 🙂

    Also the second permission in phpBB which I was not able to set.

    I cannot test more as I am on appointments the whole day. Will be back asap with more.

    I want to come back to my setup a bit. Maybe you have a clue for me how I can get this running 100% for me.

    Our setup:
    WordPress: http://www.blog-domain.com
    phpBB: http://www.forum-domain.com
    Two different vhosts with different users.

    I copied the whole phpBB to http://www.blog-domain.com/phpbb/ and entered this path in the WP-United configuration on WordPress. WP-United inside WordPress is happy and shows no errors at all. Also I do not notice any other errors.

    Issues:
    1) Single logon does not work – sure, the cookies can not match as I run two domains.
    2) Crossposting blog articles to phpBB works, but I have to approve those articles in phpBB first before they get published there.
    3) If I enable “phpBB manages comments” I do not see the comment box or links on the WordPress frontend pages anymore.
    4) If I edit an article I get “You do not have the permission required to edit posts in this forum” error on WordPress backend.
    5) I do not see any old article comments in the phpBB threads which were created when crossposting an article.

    Can I solve some of those things without changing my setup? The two domains are set because of some reasons and it will stay that way.

    I cannot enter more than one cookie domain into WordPress and/or phpBB so that cookies become valid for the two domains, right?

    You suggested some debug tests before upgrading here to the newest version. Which of those things do still make sense?

    Thanks and cheers,
    Martin

    Plugin Author jhong

    (@jhong)

    Hi,

    Actually, 4,3 and 2 all fit logically together. They are all trying to resolve phpBB permissions. phpBB needs to think you are signed in.

    However, you should have phpBB permissions, despite single sign-on not working. If you are logged in to WordPress, you should be logged in to phpBB. That won’t be remembered on each page load, or when you subsequently visit phpBB, but you know that.

    If you tuen on WPU_DEBUG in wp-united/options.php, you will see a purple debug box at the bottom of the page. Take a look while logged in to WordPress admin — it will explain its thought process to you and you will see if you are being logged in to phpBB — and if not, why not.

    I got:

    DEBUG
    WP Version = 3.4.2
    Integrate users hook called.
    User integration active.
    WP already logged in, phpBB logged out.
    Logging in to integrated phpBB account, user ID = 2.
    Established Session for user 2.

    As you can see, I am not logged into phpBB (in the eyes of WP-United). hm…

    Sure, that not really working single login explains it and I can / have to just deal with some of these issue.

    But could you put in a checkbox in settings where I can choose to edit or not edit the post on phpBB when editing the article in WordPress? Because this issue is really annoying here.

    Plugin Author jhong

    (@jhong)

    No, it sees you are logged out and logs you in successfully. From that point on you should be able to act as an Integrated. user.

    Hm, ok.

    But exactly the same happens with my admin user and other users. I cannot do more or less when it comes to editing articles and crossediting those articles on phpBB (does not work) or crossposting articles the first time (post in phpBB need approve).

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘WP-United forum permission roles are not saved in phpBB’ is closed to new replies.