WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Admin Bar issue post-3.6 upgrade (4 posts)

  1. YorkshireLad
    Member
    Posted 1 year ago #

    Hi,

    Hoping somone could give me a few pointers on this. On a password-protected site (hence no link) we have a customised Amdin Bar. It was working fine until I upgraded to 3.6; but now, none of the drop-down menus appear in the front end. Back end, they appear as expected.

    I took out the customisations, and the drop-downs (e.g. for '+ New') still don't work in the front end.

    IE reports this error:

    Message: Object doesn't support this property or method
    Line: 1
    Char: 1159
    Code: 0
    URI: /wp-includes/js/admin-bar.min.js?ver=3.6\

    I then thought I'd re-install 3.6 via the Updates option in Dashboard. When I start the proces running, I get the following message:

    Fatal error: Cannot redeclare class Plugin_Upgrader in (...)/wp-admin/includes/class-wp-upgrader.php on line 640

    So: I'm guessing the menu code is fine, but I had an issue with the upgrade. Anyone seen similar messages? All the other sites I manage are fine. Is my best option to do a manual overwrite of all the core files via FTP?

    Gary

  2. story_teller
    Member
    Posted 1 year ago #

    Hi there,

    I believe with the upgrade to WordPress 3.6 they also updated the base jQuery file to 1.1x which has a lot of methods removed and replaced.

    In this case bind() was replaced by on(), the admin-bar.min.js file contains the older not supported bind() method.

  3. YorkshireLad
    Member
    Posted 1 year ago #

    Well, there you go. A rogue call in the theme's header to the jQuery CDN, of all things. Commented out and the menus work on the front end as they should.

    Memo to self: check other templates for random jQuery calls...

    Thanks!
    Gary

  4. jvbkda
    Member
    Posted 1 year ago #

    Hi Gary
    will you be so kind to give me a hand?
    How did you "commented out".
    Have similar issue after updating to 3.6.
    But have no glue to ship around this ..
    Thanks,

    George

Topic Closed

This topic has been closed to new replies.

About this Topic