WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Top dropdown sub-menus do not show (10 posts)

  1. cafargo
    Member
    Posted 1 year ago #

    Hello Forum members.

    All of a sudden yesterday, I discovered that my two (Photocrati theme) WP sites' menu bar dropdown submenus do not show up anymore? Aside from creating a few new pages, I have not made made any major changes to php files/code on either site and no new plugins were installed or updated.

    Here are my two web URLs:

    http://www.espacesviridis.com

    http://www.cafargo.com

    I went through a variety of troubleshooting experiments suggested by WP forum threads (e.g. the perennial classic of deactivating/activating the plugins, re-creating my menus, etc...), but all to no avail. I'm stuck with this issue as my two sites depend largely on the sub-menu links that lead to half my sites' key pages.
    Curiously, I ran a javaScript console check from my Chrome browser while hovering over and clicking one of the main menu bar menu links and obtained the following error messages (perhaps this will help). Interestingly enough, the 'msie' reference seems to point to microsoft internet explorer, which is confusing me as I installed a Java Chrome? Also, I the same problem occurs on IE9 and FFox, but the menus are very normal when my pages are viewed on mobile devices??? BTW, Photocrati forums point to the WP suggestions relating to this type of problem:
    _____________________

    Uncaught TypeError: Cannot read property 'msie' of undefined jquery.fancybox-1.3.4.pack.js:18
    (anonymous function) jquery.fancybox-1.3.4.pack.js:18
    (anonymous function) jquery.fancybox-1.3.4.pack.js:46

    Uncaught TypeError: Object [object Object] has no method 'fancybox' espacesviridis.com:137
    (anonymous function) espacesviridis.com:137
    f jquery.min.js:1
    p.fireWith jquery.min.js:1
    st.extend.ready jquery.min.js:1
    xt jquery.min.js:1

    Uncaught TypeError: Cannot read property 'msie' of undefined superfish.js:1
    a.IE7fix superfish.js:1
    b.fn.extend.showSuperfishUl superfish.js:1
    i superfish.js:1
    compare hoverIntent.js:1
    (anonymous function)
    _______________________

    Any thoughts, suggestions and help would be immensely appreciated.
    Un gros merci - thank you!
    Pierre

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm sorry but as you are using a commercial theme, you need to seek support from the theme's vendors.

  3. cafargo
    Member
    Posted 1 year ago #

    And they sent me here to the WP forum. Ah well...

    Thank you.

  4. cafargo
    Member
    Posted 1 year ago #

    Esmi: Photocrati just this minute posted this important information (with a temporary workaround) on their website regarding the problem. I suspect it's pretty widespread amongst Photocrati users:

    http://members.photocrati.com/jquery-issue-with-drop-menus-and-galleries-january-16th/

    Again, many thanks.
    Pierre

  5. Chris Laursen
    Member
    Posted 1 year ago #

    I'm not using a Photocrati theme and had the same problem. I had to force version 1.8.x of jQuery to fix. I'm using the Superfish Menus plugin. Something changed in jQuery 1.9 to cause the issue, I guess?

    wp_deregister_script('jquery'); // deregister packaged jquery
    wp_enqueue_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js');
  6. crearestudio
    Member
    Posted 1 year ago #

    Chris you are right, here is the post on jQuery explaining this:
    http://blog.jquery.com/2012/06/28/jquery-core-version-1-9-and-beyond/

  7. cafargo
    Member
    Posted 1 year ago #

    Gentlemen. Thanks for your replies. I was going absolutely nuts working into the early hours of the morning trying to solve this issue.

    Remember this: Java had to issue an emergency fix for jv due to the well know security breaches in the SW. In my case, Photocrati (as with most other folks) was behind the curve and are working diligently to create a patch fix for their community of users.
    However, in my situation a simple addition of two 'comment out' characters fixed my dropdown problem.
    Here is Photocrati's post concerning the issue:
    __________________
    We are aware of a sudden loss of functionality with drop down menus and gallery sections in some theme versions as a result of a global update to JQuery 1.9 which occurred late in the day on January 15th, and are taking steps to correct it as we speak. As soon as we have a solution we will be emailing all users, as well as posting to social media and on our blogs. We do apologize for any inconvenience, and are working to correct this issue as swiftly as possible.
    As a temporary solution, you can go to your WordPress files via FTP or through your web hosts admin area / CPanel, and make your way to:
    wp-content > themes > photocrati-theme > header.php
    (**theme names may vary slightly – be sure to work within your active Photocrati theme if you have multiple instances**)
    open the header.php file, and comment out lines 169 and 170 by adding // to the front.
    change this…
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”), false, ”);
    to this…
    //wp_deregister_script(‘jquery’);
    //wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”), false, ”);
    This should resolve the issue, and we will have a more permanent solution as quickly as possible.
    Thank you.
    ___________

    Cheers and thanks again!!!
    Pierre

  8. rwilki
    Member
    Posted 1 year ago #

    This fixed my theme too. I hadn't noticed that the menu wasn't working properly until recently. I commented out this script

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

    and it's back to normal again.

    Thanks a million!
    Bob

  9. cafargo
    Member
    Posted 1 year ago #

    Just an addendum to this issue:

    Photocrati relased version 4.5.1 which includes a fix for the Jquery/dropdown submenu problem (among others). I'm sure there will be a host of plugin authors who will be updating their products as a result of the Javascript issue as well.

    Cheers.
    Pierre

  10. RTDE
    Member
    Posted 1 year ago #

    legend! i was cracking up trying to sort this one!!

    in my case is searched for: wp_deregister_script(‘jquery’);

    and it was located in Theme.php in my theme folder:

    Replace:

    wp_deregister_script( 'jquery' );
    wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');

    with:

    //wp_deregister_script(‘jquery’);
    //wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”), false, ”);

    worked like a charm, thanks lads! :)

Topic Closed

This topic has been closed to new replies.

About this Topic