Support » How-To and Troubleshooting » bizzare problem with admin-bar.php

bizzare problem with admin-bar.php

  • 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I thought this was fixed but now the warning is appearing in Safari and not Firefox! Very strange.

    Any ideas?

    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

    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

    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.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bizzare problem with admin-bar.php’ is closed to new replies.