Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP notice on BuddyPress sites for bp_setup_current_user #686

Closed
frankiejarrett opened this issue Jan 16, 2015 · 0 comments · Fixed by #687
Closed

PHP notice on BuddyPress sites for bp_setup_current_user #686

frankiejarrett opened this issue Jan 16, 2015 · 0 comments · Fixed by #687
Labels

Comments

@frankiejarrett
Copy link
Contributor

A debug backtrace shows that Stream is causing this error by loading WP_Stream_Admin::load() too early on plugins_loaded.

It should be loaded on init after the $current_user is properly set up. And we may as well be hooking into the load methods for other classes on init as well for good measure.

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 /srv/www/wordpress-trunk/wp-includes/functions.php on line 3550

See https://buddypress.trac.wordpress.org/ticket/4830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant