bbPress Issue Viewing Topic with Protected Content

I’ve been trying to sort this issue out for several hours and can’t seem to get it resolved. I thought it might be a misconfigured setting in protected content (PC) (as this is the first time we’ve used it), but I believe it’s something else.

Stats: WP=4.1 | bbPress=2.5.4 | ProtectedContent=1.0.4.9

We are using PC to protect discussion forums created in bbPress. (This is all that is being protected currently – although other content will be protected later). We have PC working, it is locking off the forums and signups function, as required. Once a user is signed in they are able to see the forums. (Non-members do not see the forums) … All good. But:

The issue: When a signed in member clicks in to the forums to select a topic and post a comment, the user does NOT see the previous posts on the topic page. (See screenshot 01) They do see the Forum list and the Topics in the particular Forum they select, but once they select a topic and click in to post (or view prev posts) they only see the dialog box to enter a post. Interestingly, if they type up and submit a post, it DOES get added to the post list for that topic (but they have no feedback that this has happened.).

If we simply go to settings in PC and disable protection, then all post content becomes visible. (See screenshot 02).

Any insight into what may be causing this would be greatly appreciated!

SCREENSHOT01 (Protected Content ENABLED)

SCREENSHOT02 (Protected Content DISABLED)

  • Michael Bissett
    • Recruit

    Hey @jeff, hope you’re doing well! :slight_smile:

    I’m not able to replicate this in my test site (running WordPress 4.1, with the Twenty Fifteen theme active, with bbPress, Protected Content, and our WPMU DEV Dashboard plugins enabled), have you already had a go at our basic troubleshooting flowchart?

    https://premium.wpmudev.org/manuals/getting-support/

    It’s possible that we may have run into a plugin or theme conflict here.

    If going through that doesn’t turn up anything though, could you please enable Support Access to your site, so that we can have a closer look at your settings here?

    Please advise,

    Michael

  • Jeff
    • Site Builder, Child of Zeus

    Hi Michael,

    Thanks so much for the response. We did in fact follow the troubleshooting steps. I can confirm that we deactivated all plugins, with the exception of WPMU Dev dashboard, bbPress and Protected Content. The results were the same. We then switched to WP 2015 default theme and the results were no different.

    I’m really not sure where to go with this next. My inclination is to deactivate and uninstall/reinstall bbPress. BUT – since bbPress appears to function properly with Protected Content disabled, I’m guessing that won’t solve the issue either.

    I have enabled WPMU DEV Support Access on the site.

    Again – thanks for the assistance.

  • Jeff
    • Site Builder, Child of Zeus

    Quick update: Still no resolution, after undertaking the following …

    1. We deactivated bbPress and uninstalled/reinstalled. No effect.

    2. We deactivated Protected Content and uninstalled/reinstalled. No effect.

    3. We deleted all the settings from PC and re-built the protection settings from fresh. No effect.

    3. We changed our Test Users Primary and secondary roles to see if that played a part. The only role that allowed the topic page to display posts when PC was activated was “Full WP Admin”. Even “Keymaster” for the bbPress role did not allow the the test user account to display the page.

    -Jeff

  • Michael Bissett
    • Recruit

    Hey @jeff, thanks for going through those extra steps, and for enabling the Support Access to your site! :slight_smile:

    After doing some further investigation, one thing I hadn’t noticed in my earlier testing was that I had left the “Custom Post Type Protection – Post by Post” add-on enabled on my site. With that on, I was able to see the forum posts on my test thread just fine.

    But, when I turned that off, I ended up seeing this error, which looks to be what you’re running into:

    Warning: Illegal offset type in isset or empty in /home/codeweas/public_html/dev1/wp-content/plugins/protected-content/app/model/class-ms-model-rule.php on line 493

    I’ve let the developer know about this bug, but in the meantime, I’ve enabled the “Custom Post Type Protection – Post by Post” add-on on your site, so that the forum posts are showing up as they should. :slight_smile:

    Kind Regards,

    Michael

  • Jeff
    • Site Builder, Child of Zeus

    Hi Michael,

    Thanks for helping to resolve this! The forum post content is now displaying, as expected.

    I never thought to enable the “Custom Post Type” add-on. (I suppose since forums are actually custom post types, I should have thought to try that.)

    Your diligence and expertise to get this resolved is most appreciated.

    Regards – Jeff

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.