Skip to:
Content

BuddyPress.org

Opened 13 months ago

Closed 4 months ago

#9275 closed enhancement (fixed)

Fatal error when UpdraftPlus is activated

Reported by: mafalda1426's profile mafalda1426 Owned by: espellcaste's profile espellcaste
Milestone: 15.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: needs-patch
Cc: mandy@…

Description

Hi BuddyPress Team,

I encountered a fatal error in BuddyPress on a WordPress Multisite installation when trying to access the BuddyPress settings. The error occurred at:
/wp-admin/network/admin.php?page=bp-optouts

Error message:
Uncaught Error: Call to a member function prepare_items() on null in wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-optouts.php on line 302

Issue discovered:
After troubleshooting, we found that the issue was caused by UpdraftPlus. Disabling UpdraftPlus resolved the error, and BuddyPress settings became accessible again.

Environment:
WordPress: 6.7.2
BuddyPress: 14.3.3
UpdraftPlus: 2.25.2.26
PHP: 8.2.28
Multisite: Yes

Would it be possible to adjust BuddyPress to prevent this error when UpdraftPlus is active? Let me know if you need more details!

Thanks for your help.

Attachments (1)

Screenshot_2025-03-18_at_12_01_26.jpg (166.5 KB) - added by mafalda1426 13 months ago.

Download all attachments as: .zip

Change History (6)

#1 @espellcaste
13 months ago

  • Owner set to espellcaste
  • Status changed from new to assigned

This ticket was mentioned in Slack in #buddypress by espellcaste. View the logs.


13 months ago

#3 @rollybueno
10 months ago

  • Keywords needs-patch added

The latest UpdraftPlus is 1.25.6, so I think the version reported here should the premium version, which I don't have.

Not sure if we should check the global $bp_optouts_list_table first before rendering as it seems will be breaking the interface.

#4 @espellcaste
4 months ago

  • Milestone changed from Awaiting Review to 15.0.0
  • Type changed from defect (bug) to enhancement

Technically, we could avoid the PHP error. However, the fact we have an error tells me this plugin is doing something wrong, that's affecting BuddyPress.

#5 @espellcaste
4 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

Duplicate of #8783

Note: See TracTickets for help on using tickets.