Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31625

Rask on "[Plugin: Polylang] PLL_Admin->init_user() called before $wp->init"

$
0
0

Polylang calls PLL_Admin->init_user() before $wp->init, causing other plugins (such as BuddyPress and bbPress) to fire warnings, as they are deeply tied into the users system.

Fired warning:
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.)

Call stack:

bp_setup_current_user()
do_action('set_current_user')
wp_set_current_user()
get_currentuserinfo()
wp_get_current_user()
get_current_user_id()
PLL_Admin->init_user()
do_action('setup_theme')

Is PLL_Admin->init_user() required to be fired so early?

WP version: 3.9.1
Polylang version: 1.5
BuddyPress version: 2.0.1

https://wordpress.org/plugins/polylang/


Viewing all articles
Browse latest Browse all 31625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>