Skip to:
Content
Pages
Categories
Search
Top
Bottom

WordPress theme previews triggering bbp_setup_current_user() debug notice


  • csotelo
    Participant

    @csotelo

    I have this issue on my theme “The current user is being initialized without using $wp->init()”, what I have seen on my theme, I was reading on google, but most of the post sais “disable debug mode”, well as a coder I know it is just for hide the error but is not a solution

    I hop you could give me a hand on how to solve that

    The tracer error is

    # Time Memory Function Location
    1 0.0503 151124 {main}( ) ../index.php:0
    2 0.0940 185304 require_once( ‘…./wp-admin/admin.php’ ) ../index.php:10
    3 0.1142 194292 require_once( ‘…./wp-load.php’ ) ../admin.php:30
    4 0.1364 202428 require_once( ‘…./wp-config.php’ ) ../wp-load.php:34
    5 0.2221 247748 require_once( ‘…./wp-settings.php’ ) ../wp-config.php:44
    6 10.5487 37383376include( ‘…./wp-content/themes/laredchina/functions.php’ ) ../wp-settings.php:293
    7 11.1273 38559980 current_user_can( ) ../functions.php:452
    8 11.1273 38560008 wp_get_current_user( ) ../capabilities.php:1281
    9 11.1273 38560096 get_currentuserinfo( ) ../pluggable.php:54
    10 11.1274 38560484 wp_set_current_user( ) ../pluggable.php:102
    11 11.1276 38561280 do_action( ) ../pluggable.php:37
    12 11.1355 38566692 call_user_func_array ( ) ../plugin.php:406
    13 11.1355 38566708 bbp_setup_current_user( ) ../plugin.php:406
    14 11.1356 38566816 _doing_it_wrong( ) ../sub-actions.php:147
    15 11.1363 38568004 trigger_error ( ) ../functions.php:3041

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar