Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5216 closed defect (bug) (no action required)

Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init().

Reported by: nerrad's profile nerrad Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.8.1
Component: Core Keywords:
Cc:

Description

I have full error reporting on. Running PHP 5.3.6 and BuddyPress 1.8.1.

I see this notice when on the WP login screen. Looking into the error it looks like BP is implementing "bp_setup_current_user()" via the "set_current_user" hook before $wp->init is fired.

Attached is a patch for trunk that should fix this error?

Attachments (1)

5216.diff (1.9 KB) - added by nerrad 11 years ago.
fix for bp_setup_current_user notice

Download all attachments as: .zip

Change History (5)

#1 @nerrad
11 years ago

Forgot to mention - am running WP3.7 as well.

@nerrad
11 years ago

fix for bp_setup_current_user notice

#2 @nerrad
11 years ago

  • Keywords close added; dev-feedback removed

actually, realizing this isn't a BuddyPress bug there's a plugin on my clients install that is calling get_current_user() too early, which via the stack trace ends up calling set_current_user() too early.

#3 @nerrad
11 years ago

  • Keywords close removed
  • Resolution set to invalid
  • Status changed from new to closed

#4 @r-a-y
11 years ago

  • Keywords has-patch removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.