Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#5957 closed defect (bug) (wontfix)

php notice when BP used with "remove dashboard access’ plugin" plugin

Reported by: djpaul's profile 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)

#1 @whyisjake
9 years ago

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.

#2 @johnjamesjacoby
9 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.

#3 @DJPaul
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Thanks for the info, everyone.

#4 @DJPaul
8 years ago

  • Component changed from Tools - Warnings/Notices to Core
Note: See TracTickets for help on using tickets.