Opened 13 months ago
Closed 4 months ago
#9275 closed enhancement (fixed)
Fatal error when UpdraftPlus is activated
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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)
Change History (6)
This ticket was mentioned in Slack in #buddypress by espellcaste. View the logs.
13 months ago
#4
@
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.
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.