WordPress.org

Ready to get started?Download WordPress

Forums

WP-United : phpBB WordPress Integration
[resolved] Cross-Posting Error (8 posts)

  1. rlaflamme
    Member
    Posted 1 year ago #

    Hi there,

    I'm likely doing something wrong here when attempting to set up cross-posting. I have enabled the admins group on PHPBB to have posting rights to a specific forum.

    I then went and activated the Cross-posting feature in WordPress. I am not doing user integration, however. I prefer to keep the user groups separate.

    Now with that part of the plugin activated, whenever I post or update a new or existing post, I get the following error:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'WPU_Plugin_XPosting' does not have a method 'just_editing_post' in /wp-includes/plugin.php on line 406
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/plugin.php:406) in /wp-includes/pluggable.php on line 876

    The post does update and/or post in WordPress, but there is no posting that happens on PHPBB.

    I'm clearly missing something here...

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

  2. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, that's just a warning that shouldn't have any impact and won't appear with WP_DEBUG off. It was an oversight on my part, and should be fixed in the version I just released (v0.9.2.4).

    Note that cross-posting requires user integration to be enabled (it's under the user integration tab) and the person publishing will need to be integrated so that wp-united can check their permission to post to that forum in phpBB.

  3. rlaflamme
    Member
    Posted 1 year ago #

    Thanks! I will give .924 a try and let you know!

  4. rlaflamme
    Member
    Posted 1 year ago #

    Ok, so we're on the right track here. The latest build did fix the code errors.

    I now integrated a user, and the post when created does appear to cross-post to the specified forum. However, it is showing up as needing moderation. The test user I'm using on PHPBB is an admin that has has full rights across the board for the specified forum (including the WP-United "can post" and "can reply to cross posts" for the forum settings for that user. I even tried globally enabling the option for post as author as well. However, it is still putting the posts in a pending state...

  5. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    this usually indicates that the user is not logged in and recognised by phpBB at the time of the cross-post. This could be down to incorrect server/cookie settings, or the user not being properly integrated.

    if you turn on WPU_DEBUG in wp-united's options.php, you'll get a box at the bottom of the page telling you if the user is integrated and if they were logged in. This should help you find the issue.

  6. rlaflamme
    Member
    Posted 1 year ago #

    Yeah, perhaps I am missing something here. The debug shows the following:

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

    The debug seems to say they are connected, no?

  7. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Yes -- seems I need to remove my "HAHAHA" there too, that's shouldn't be in the release!

    Sorry for the delay, I've been on holiday.

    The user seems to be logged in OK, assuming that is appearing on the WP posting page.

    They have the cross-posting permissions OK too -- otherwise they wouldn't get the option to post.

    Is the user able to post normal topics to that forum without being moderated too? I assume so, since they appear to be "admin".

    For the debug message, does it ever change? i.e. does it ever detect that phpBB is "already logged in"? It shouldn't have to log you in on every page load. If not, please check your cookie domain and path settings in the phpBB ACP -- they should cover your whole site, not just the phpBB portion.

  8. rlaflamme
    Member
    Posted 1 year ago #

    Sorry for the delay on my end this time.

    Yes, the admin account can post directly without any issue.

    The debug message doesn't change from what I can see.

    The ACP settings seemed to be the culprit. I have two forums on my domain: the real one, and a sandbox for testing things like these plugins. The path and cookies were set to the domain instead of the direct IP address for the dev one and I corrected that. It can now cross-post successfully.

    Thanks for the assist. You can go close this out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.