Opened 10 years ago
Closed 10 years ago
#2862 closed defect (bug) (invalid)
PHP Notice in debug.log file
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | 2.5.8 |
Component: | General | Keywords: | |
Cc: |
Description
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="http://codex.wordpress.org/Debugging_in_WordPress">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)
#2
@
10 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 :)
https://codex.bbpress.org/bbp_setup_current_user/was-called-incorrectly/
Basically, the issue exists in another plugin, or possibly in your theme's functions.php file.
I also noticed that, if I comment the line 48 (see below), in the script actions.php, the error message stops.