WordPress.org

Ready to get started?Download WordPress

Forums

WP-United : phpBB WordPress Integration
[resolved] Good on its own but does not work with content protection plugin (12 posts)

  1. sdocpublishing
    Member
    Posted 1 year ago #

    WP United was fantastic at integrating a forum into my WP theme.

    However, my client uses this forum as a paid feature, along with other paid features of the site.

    When I activate the paid membership/content protection, WP United fails and the forum page generates an error mode.

    I understand that authentication defaults to the phpBB database but there has to be some way that content protection can access it better.

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

  2. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, thanks for reporting this. Actually authentication is bi-directional, so it should work. In theory, anyway... The devil is in the details.

    If you could post your settings and any details of what went wrong I might be able to help...

  3. sdocpublishing
    Member
    Posted 1 year ago #

    Thanks for replying. I posted this on the main site forum at wp-united.com as well.

    When WP eMember and WP United are activated at the same time (regardless of the sequence) the following error is generated instantly:

    Fatal error: Call to undefined method Emember_Auth::acl_get() in C:\inetpub\vhosts\rikupgrade.com\httpdocs\wp-content\plugins\wp-united\phpbb.php on line 317

    If I deactivate WP United's member login sync between phpBB and WP, then the site is restored, except for the forum page. The forum page then displays this error:

    Fatal error: Call to undefined method Emember_Auth::acl() in C:\inetpub\vhosts\rikupgrade.com\httpdocs\forum\index.php on line 25

    WP eMember has its own login sync options, similar to United. That is you can toggle the option to create and login to WP using eMember. I've tried this with those activated and deactivated and the result is the same. It looks as if eMember is trying to bypass the WP login sync altogether and authenticate directly w/ phpBB. That's OK w/ me, I just need to determine how to make that plugin authenticate to the other database for login, then pass the variables back for the login/member info widget. So the three systems (WP, eMember and United) do not authenticate in sequence - both eMember and United authenticate directly to phpBB.

    I don't need phpBB members to post to WP. I just need them to purchase their membership via eMember, then login with simultaneous login to the forum and access to other protected content.

    I have this same question on eMember's board and I'll see if I can get their input as well.

  4. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    From this it looks to me that e2member is using another class instance called auth, the same as phpBB Hence the first error. Let's fix that first.

    I can work around it in the wp-united context switcher but hopefully longer term e2member would namespace their variables better.

    I'll post back with a new context switcher later, if you don't mind you can see if it works.

  5. sdocpublishing
    Member
    Posted 1 year ago #

    I don't mind testing it out at all. Now's the right time since the site is not quite in beta.

    Clarification: the plugin that United is conflicting with is WP eMember, not e2member. It's created by tipsandtrickshq.com. To be fair, they state flat out that they did not test this plugin with any forum other than bbpress so what we're attempting here seems to be a first-time experiment.

  6. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    OK... Give it a try with this context-switcher then: http://www.wp-united.com/svn/trunk/WordPress%20Plugin/wp-united/context-switcher.php

    You can just copy it over your the existing context-switcher.php in your wp-united plugin folder.

  7. sdocpublishing
    Member
    Posted 1 year ago #

    Hmmmmmm.... Just gave it a try and there was progress.
    (Try = eMember is still active, I duplicated context-switcher.php for backup and copied the code linked above into the file, uploaded, then activated WP United.)
    The entire install did not fail, however the theme was broken (just bb content displayed without theming, etc). So that's getting closer. What do you make of this:

    [phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at C:/inetpub/vhosts/rikupgrade.com/httpdocs/wp-content/plugins/wp-united/context-switcher.php:2)
    [phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at C:/inetpub/vhosts/rikupgrade.com/httpdocs/wp-content/plugins/wp-united/context-switcher.php:2)
    [phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at C:/inetpub/vhosts/rikupgrade.com/httpdocs/wp-content/plugins/wp-united/context-switcher.php:2)
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\vhosts\rikupgrade.com\httpdocs\wp-content\plugins\wp-united\context-switcher.php:2) in C:\inetpub\vhosts\rikupgrade.com\httpdocs\forum\includes\functions.php on line 4713
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\vhosts\rikupgrade.com\httpdocs\wp-content\plugins\wp-united\context-switcher.php:2) in C:\inetpub\vhosts\rikupgrade.com\httpdocs\forum\includes\functions.php on line 4715
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\vhosts\rikupgrade.com\httpdocs\wp-content\plugins\wp-united\context-switcher.php:2) in C:\inetpub\vhosts\rikupgrade.com\httpdocs\forum\includes\functions.php on line 4716
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\vhosts\rikupgrade.com\httpdocs\wp-content\plugins\wp-united\context-switcher.php:2) in C:\inetpub\vhosts\rikupgrade.com\httpdocs\forum\includes\functions.php on line 4717
  8. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    when you save context-switcher.php, you need to save it as a UTF-8 text file without a byte-order marker (BOM)... try pasting it into a decent text editor (like notepad++) and saving it.

    In this case, I believe the leading BOM is causing PHP to send garbage output to the browser.

  9. sdocpublishing
    Member
    Posted 1 year ago #

    I'm using Dreamweaver 5.5 to edit all files on the site. So the PHP file is already in UTF-8.

    Are you sure about the BOM?

  10. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah, something at line 2 of the file sent output. Try navigating one level up to http://www.wp-united.com/svn/trunk/WordPress%20Plugin/wp-united/ , right-click the file and save as...

  11. sdocpublishing
    Member
    Posted 1 year ago #

    Holy cow.... i stand corrected.
    The latest update (9.2.4?) works perfectly, even with the eMembership plugin turned on.

    Check it out (not the final URL and there's no content, but that will come later) http://www.rikupgrade.com/forum

    Watch your paypal for a little something - you could charge for this plugin given the issues w/ bbpress

  12. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Great, thank you for posting back -- seems the context switcher change was enough to fix the problem :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic