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!
Comment | File | Size | Author |
---|---|---|---|
#2 | cannot-read-property-msie.png | 17.25 KB | permanaj |
Console_Error.PNG | 4.73 KB | eduf91 | |
slides_container.PNG | 215.47 KB | eduf91 |
Comments
Comment #1
jackbravo CreditAttribution: jackbravo commentedTry 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).
Comment #2
permanaj CreditAttribution: permanaj commentedI 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.
Comment #3
markhalliwellComment #4
balaji janardhanan - Drupal Geeks CreditAttribution: balaji janardhanan - Drupal Geeks commentedjust 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.
Comment #5
fonant CreditAttribution: fonant commentedThe 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
Comment #6
rdworianyn CreditAttribution: rdworianyn commentedRolling back to 1.8 fixed this issue for me.
Comment #7
FlutterStack CreditAttribution: FlutterStack commentedi 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.
Comment #8
Shashwat Purav CreditAttribution: Shashwat Purav commentedRolling back to 1.8 fixed the issue for me too. :)
Comment #9
gaurangagg CreditAttribution: gaurangagg as a volunteer commentedBut 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
Comment #10
mrhoseah CreditAttribution: mrhoseah as a volunteer and commentedDownload 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
Comment #11
mrhoseah CreditAttribution: mrhoseah as a volunteer and commentedComment #12
gaurangagg CreditAttribution: gaurangagg as a volunteer commentedYes, 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.
Comment #13
markhalliwelljQuery Migrate was already added to the 7.x-3.x branch in #2156881: Support (optionally) the use of the jQuery Migrate Plugin.
Comment #14
dalehgeist CreditAttribution: dalehgeist commentedThis 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.