• I’m getting this error at the top of the page at http://www.thinkingchristian.net:

    Warning: Invalid argument supplied for foreach() in /www/virtual/thinkingchristian.net/wp-includes/class-wp-admin-bar.php on line 342

    This is not happening on the admin side.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Re-do the upgrade for 3.3 if you can.

    Also that only shows up if you’re logged in, so check your plugins and see if any are causing conflicts.

    Thread Starter tomgccc

    (@tomgccc)

    I’ve done both those steps previously. It happens with all plugins deactivated, and it happened after re-installing the upgrade. Thanks for checking in with me.

    Thread Starter tomgccc

    (@tomgccc)

    I’ve just tried it with a different theme. It works that way. Apparently that’s where the problem is.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Then yeah, you have something in your theme conflicting with the toolbar in 3.3

    Go through the functions.php file for starters.

    Thread Starter tomgccc

    (@tomgccc)

    Any idea what I’d be looking for there?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    wp_deregister_script('admin-bar');
    wp_deregister_style('admin-bar');

    If you’re doing ANYTHING with the admin-bar, that’d kill it.

    Moderator Sergey Biryukov

    (@sergeybiryukov)

    WordPress Dev

    Warning: Invalid argument supplied for foreach() in /www/virtual/thinkingchristian.net/wp-includes/class-wp-admin-bar.php on line 342

    This warning appears if a theme has two wp_footer() calls in footer.php, or both do_action('wp_footer') and wp_footer().

    There should be only one call, right before </body>.

    Thread Starter tomgccc

    (@tomgccc)

    Thank you! You solved it for me. Happy New Year to you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Admin bar not loading (blog page, not admin side)’ is closed to new replies.