Skip to:

Opened 4 years ago

Closed 4 years ago

#2862 closed defect (invalid)

PHP Notice in debug.log file

Reported by: aldemarcalazans Owned by:
Milestone: Priority: normal
Severity: trivial Version: 2.5.8
Component: General Keywords:


If I turn the WordPress debug on, I see this notice in the debug.log file:

[02-Sep-2015 18:47:30 UTC] PHP Notice: bbp_setup_current_user was called <strong>incorrectly</strong>. The current user is being initialized without using $wp->init(). Please see <a href="">Debugging in WordPress</a> for more information. (This message was added in version 2.3.) in D:\Var\www\html\wp-includes\functions.php on line 3245

Change History (2)

#1 @aldemarcalazans
4 years ago

I also noticed that, if I comment the line 48 (see below), in the script actions.php, the error message stops.

add_action( 'set_current_user',         'bbp_setup_current_user',     10    );

#2 @thebrandonallen
4 years ago

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

@aldemarcalazans Welcome to Trac! Thanks for taking the time to post this, and for helping make bbPress better, even if this, ultimately, isn't an issue with bbPress.

Unfortunately, this is an issue that comes up a lot, and, due to the nature of the issue, the logs end up pointing the finger at bbPress. It comes up enough the it now even has it's own Codex article :)

Basically, the issue exists in another plugin, or possibly in your theme's functions.php file.

See also #2804 and #2837.

Note: See TracTickets for help on using tickets.