Hello everybody!

I have a problem with JQuery.

Some days ago, i installed the last jquery update version module 7.x-2.4. Now, i have problems with the submenus because the parent menu doesnt show any of them and the slider doesnt work properly, i installed the module superfish and activated a block in one of my region but i dont like to put other menu.

On other hand i have inspected the element with Chrome and the slider loads all the images(one below the other) when the images were loaded one per one before.

Also, the console shows this error

Uncaught TypeError:

Cannot read property 'msie' of undefined js_KzIOU7krxUE2H0jrikqn2ksysYSJkQ6Z0z5sdNFvtzM.js:385
Drupal.admin.behaviors.hover js_KzIOU7krxUE2H0jrikqn2ksysYSJkQ6Z0z5sdNFvtzM.js:385
(anonymous function) js_KzIOU7krxUE2H0jrikqn2ksysYSJkQ6Z0z5sdNFvtzM.js:327
x.extend.each jquery-1.10.2.js:665
Drupal.admin.attachBehaviors js_KzIOU7krxUE2H0jrikqn2ksysYSJkQ6Z0z5sdNFvtzM.js:326
(anonymous function) js_KzIOU7krxUE2H0jrikqn2ksysYSJkQ6Z0z5sdNFvtzM.js:204
c jquery-1.10.2.js:3048
p.fireWith jquery-1.10.2.js:3160
k jquery-1.10.2.js:8235
r

How can i do to solve this problems.

All help well be appreciated!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jackbravo’s picture

Status: Active » Postponed (maintainer needs more info)

Try disabling the aggregation of javascript files (on the menu admin->configuration->development->performance). That could help you pinpoint exactly on which file is the issue and it could be a specific module related issue like this one: #1995892: JS error: Cannot set property 'events' of undefined jquery.ui.dialog.patch.js:24 or this one #1892074: remove $.browser (Remove IE 6 support).

permanaj’s picture

I also experience "Cannot read property 'msie' of undefined" when Add content Article. This make hide summary always displayed.
Error is triggered by admin_menu.js from admin menu module.

My drupal installation is fresh with modules: Devel, Admin menu, Adminimal, Adminimal theme Admin Menu, Views.

markhalliwell’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
Related issues: +#1892074: remove $.browser (Remove IE 6 support)
balaji janardhanan - Drupal Geeks’s picture

just download the script from the following url http://code.jquery.com/jquery-migrate-1.2.1.js and place it in your js folder in themes folder.Define the js file in the theme info file.thats it, its worked for me.

fonant’s picture

The default jQuery update uses jQuery 1.10, which breaks the Superfish module JavaScript.

An easy workaround is to set the jQuery version to 1.8 via Configuration > Development > jQuery update

rdworianyn’s picture

Rolling back to 1.8 fixed this issue for me.

FlutterStack’s picture

i have also had same problem.

I have included jquery migrate plugin production version in themes info file. and configuration -> development -> jQquery update -> i have set it to version 1.8.

there it is fixed the problem.

Shashwat Purav’s picture

Rolling back to 1.8 fixed the issue for me too. :)

gaurangagg’s picture

But is that a solution ( shifted to 1.8 ).
In my case I have bootstrap theme installed and if I roll back to 1.8, the bootstrap 3 won't work as it requires min. v1.9

In console, following error is shown:
1.
jquery.ui.dialog.patch.js?v=1.10.2:24 Uncaught TypeError: Cannot set property 'events' of undefined
at jquery.ui.dialog.patch.js?v=1.10.2:24
at jquery.ui.dialog.patch.js?v=1.10.2:27

2.
admin_menu.js?oq7ytp:223 Uncaught TypeError: Cannot read property 'msie' of undefined
at Drupal.admin.behaviors.hover (admin_menu.js?oq7ytp:223)
at Function. (admin_menu.js?oq7ytp:165)
at Function.each (jquery.min.js:4)
at Object.Drupal.admin.attachBehaviors (admin_menu.js?oq7ytp:164)
at Object.success (admin_menu.js?oq7ytp:42)
at c (jquery.min.js:4)
at Object.fireWith [as resolveWith] (jquery.min.js:4)
at k (jquery.min.js:6)
at XMLHttpRequest.r (jquery.min.js:6)
Drupal.admin.behaviors.hover @ admin_menu.js?oq7ytp:223
(anonymous) @ admin_menu.js?oq7ytp:165
each @ jquery.min.js:4
Drupal.admin.attachBehaviors @ admin_menu.js?oq7ytp:164
(anonymous) @ admin_menu.js?oq7ytp:42
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6

mrhoseah’s picture

Download jquery migrate http://code.jquery.com/jquery-migrate-1.2.0.js , and add it to info file then set version to 1.9 , then go to admin>development>jquery>enable migrate plugin

it should work

mrhoseah’s picture

gaurangagg’s picture

Yes, so I downloaded the JQuery Migrate script from "http://code.jquery.com/jquery-migrate-1.2.0.js" and moved it to Jquery Module's JS Folder. Further I added scripts[] = js/jquery-migrate-1.2.0.js to the jquery_update/jquery_update.info

That worked, thank you @mrhoseah.

markhalliwell’s picture

jQuery Migrate was already added to the 7.x-3.x branch in #2156881: Support (optionally) the use of the jQuery Migrate Plugin.

dalehgeist’s picture

This was killing me. For those who may have experienced the same thing as me: everything was fine with "Aggregate JavaScript files" turned OFF. Then when I turned it ON, JQuery stopped working in Chrome (but not in Firefox.)

After I found this thread, I went to the JQuery Update 7.x-3.0-alpha5 Configuration UI (NOTE: the currently shipping version of JQuery Update does not have this UI) and checked "Enable jQuery Migrate Plugin".

And it worked.