#5957 closed defect (bug) (wontfix)
php notice when BP used with "remove dashboard access’ plugin" plugin
Reported by: | DJPaul | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
Whenever I activate the ‘remove dashboard access’ plugin, I get this error message
Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /Applications/MAMP/htdocs/knight/wp-includes/functions.php on line 3370
From https://buddypress.org/support/topic/bp-conflict-with-other-plugins/
Let's see if there's some error handling we could add to better handle (what I assume is the other plugin doing something too early).
Change History (4)
#2
@
10 years ago
Updating the plugin fixes the problem, and any other potential problems that come from this plugin prematurely looking for user data that WordPress hasn't loaded yet.
Whether or not we should remove our notice is debatable. I like to think we're better off educating other plugin & theme authors when they're performing an unexpected action that may have negative (or at least predictably negative) consequences.
I'd vote we close this as wontfix.
So, the plugin is firing on
plugins_loaded
when it should be firing on init. Ideally, the notice should probably be removed, but in the mean time Drew should update his plugin to fire earlier on init.