strangerstudios / pmpro-buddypress

Manage access to your BuddyPress Community using Paid Memberships Pro
https://www.paidmembershipspro.com/add-ons/buddypress-integration/
17 stars 21 forks source link

PHP Notice on PMPro Buddypress activation #108

Open shubhra14 opened 1 year ago

shubhra14 commented 1 year ago

I have wp_debug set to true and I'm getting this PHP notice after activating Paid membership Pro Buddypress addon.

In PMPro buddypress "Non-member User Settings" if I select "Yes - Give non-member users access to all of Buddypress", the notice goes away.

PHP Notice: Trying to access array offset on value of type bool in \wp-content\plugins\buddypress\bp-templates\bp-nouveau\includes\members\template-tags.php on line 397

If I select "Yes" for Private Messaging in "Yes - Give non-member users access to specific features.", the notice goes away.

I have deactivated "Friend requests", "groups" and "activity" in Buddypress core settings for my site as I don't require these features.

pmpro-bp-error

andrewlimaza commented 1 year ago

@shubhra14 are you still experiencing this issue?

I've tried this with the latest version of Paid Memberships Pro BuddyPress and I am unable to replicate this on my end. Please can you ensure you have set up the "Access Restricted" page?