The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

bizzare problem with admin-bar.php (5 posts)

  1. phodographer
    Posted 4 years ago #

    Baroness.com works fine —except in Firefox. There's always been an extra 28px margin at the top. Doing a global search, the only place I could find "28px" was in admin-bar.php. It appeared to be in a section that was commented out, but I deleted them to see what would happen. Now (in Firefox only), there's a huge message at the top of the page:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_admin_bar_bump_cb' was given in /home/baroness/baroness.com/wp-includes/plugin.php on line 405

    I have no idea what this means or how to fix it. Restoring a previous version of admin-bar.php (before I edited it), didn't work! I don't see how this is possible, and would hugely appreciate any help.

  2. phodographer
    Posted 4 years ago #

    I thought this was fixed but now the warning is appearing in Safari and not Firefox! Very strange.

    Any ideas?

  3. phodographer
    Posted 4 years ago #

    Scratch that last message. It's only when I'm logged in that I get the error. Still annoying though, since I have not idea how to fix it

  4. Troy Chaplin
    Posted 4 years ago #

    First, editing the admin-bar.php is something that should be avoided as it is a core file. Hacking core WP files can cause you more problems in the future when making upgrades, as edits to the core will be lost.

    I'm assuming that you are either looking to completely remove the adminbar from your site? Or are you trying to figure out why it's not there to begin with?

    If you are looking to completely hide it, add this to your functions.php file, or disable it in your profile settings:

    add_filter('show_admin_bar', '__return_false');

    If you are looking for why it's not there and you would like it to be, sounds like the js file might not be loading through your theme, check for <?php wp_footer(); ?> which should be located just before the closing body tag in your footer.php file

  5. phodographer
    Posted 4 years ago #

    Neither. I was just trying to figure out why Firefox (only) always added 28px of margin above my header.

    I thought by restoring a backup copy of admin-bar.php (a few hours before I messed with it) I could at least get rid of the error message, but no luck.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.