Support » Fixing WordPress » Sixteen menu is open on pageload

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello Salvatore

    I hope you are doing well today!

    I’ve visited your site and can’t reproduce the same. Would you please leave only the BuddyPress plugin activated and test if the issue is still there?

    If the issue is gone, most likely there another plugin is conflicting with the BuddyPress. Activate one plugin at the time to find the one that causing this.

    If you still can’t find the plugin that may causes this, enable the WordPress debugging, put the following inside the wp-config.php file:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );

    This way all errors will be saved in the debug.log file inside the /wp-content/ directory. Let us know if you see any errors.

    I hope this helps!


    Thread Starter DarkWolf


    Thank’u very much for reply, Nastia!

    1) disable all plugin all work as expected.
    2) all except buddypress menu is bugged again (then, seems to not be an issue with other plugin).
    3) i’ve try to enable debug and, with all possible test, i’ve only this if i’ve enabled yoast+buddypress (no problem if only yoast or only buddypress)

    Notice: bp_setup_current_user was called incorrectly. L’utente corrente è in fase di inizializzazione senza l’utilizzo di $wp->init(). === Trace: #6 /***/***/***_***/_dev/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(421): get_current_user_id() #7 /***/***/***_***/_dev/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(31): Yoast_Notification_Center->retrieve_notifications_from_storage() #8 /***/***/***_***/_dev/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(49): Yoast_Notification_Center->__construct() #9 /***/***/***_***/_dev/wp-content/plugins/wordpress-seo/wp-seo-main.php(383): Yoast_Notification_Center::get() #10 [internal function]: load_yoast_notifications(”) #11 /***/***/***_***/_dev/wp-includes/plugin.php(525): call_user_func_array(‘load_yoast_noti…’, Array) #12 /***/***/***_***/_dev/wp-settings.php(277): do_action(‘plugins_loaded’) #13 /***/***/***_***/_dev/wp-config.php(96): require_once(‘/***/***/…’) #14 /***/***/***_***/_dev/wp-load.php(37): require_once(‘/***/***/…’) #15 /***/***/***_***/_dev/wp-admin/admin.php(31): require_once(‘/***/***/…’) #16 /***/***/***_***/_dev/wp-admin/plugins.php(10): require_once(‘/***/***/…’) #17 {main} === Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /***/***/***_***/_dev/wp-includes/functions.php on line 3897

    anyway, menu issue remain also with “only buddypress” 😐

    Thread Starter DarkWolf


    yoast with bbpress, instead, cause this:

    Notice: bbp_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 2.3.) in /***/***/***_***/_dev/wp-includes/functions.php on line 3897

    then, seems exist some problem with yoast, but seems isn’t related with this menu problem.

    Thread Starter DarkWolf


    i’ve try also to:

    • reinstall wordpress (from reinstall button);
    • delete buddypress folder and upload again from scratch (i’ve think, maybe some file is corrupted)…
    • upload new sixteen theme but with little different name, and enable (just for test with new/zero settings and with new file upload)…

    all this, issue remain!

    no problem with Fifteen.
    then, is a problem only with sixteen and buddypress :/

    Thread Starter DarkWolf


    after more and more test, i’ve found if rename


    all seems to be ok (no issue in template).
    then, check to rename only css in this, issue remain;
    rename only js, menu remain expanded (no work fine);
    so, i’ve open php file (/wp-content/plugins/buddypress/bp-templates/bp-legacy/) and delete function one by one to check if one of this fix my issue.

    then, finally, after all this test, i’ve found my problem is caused by:

    /** Body no-js Class **************************************************/
    		add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 );

    commented, now all is ok!

    i don’t know exactly why this cause issue to me, but atm i test without this function.

    Thread Starter DarkWolf


    i continue to have issue with this function:

    /** Body no-js Class **************************************************/

    add_filter( ‘body_class’, array( $this, ‘add_nojs_body_class’ ), 20, 1 );

    my menu in twentysixteen, in mobile view, work fine only if this function is commented/removed.
    all plugin disabled, theme reinstalled, buddypress reinstalled, issue remain.

    maybe can be caused by https?
    sadly, i can’t remove https cause hsts setup. so, i can’t test :/

    any help can be more appreciated.


    this is sadness and i cannot found any way

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sixteen menu is open on pageload’ is closed to new replies.