Notice : Undefined index: scope in drupal_get_js()

Hi! I've got this error on my website :
Notice : Undefined index: scope dans drupal_get_js() (ligne 4266 dans /home/me/domains/dpl.me.com/public_html/includes/common.inc).

I realized this is happening when I use the module jQuery Update.
To fix the problem, I had to comment these lines in the template.php file (line 14):

function zoor_js_alter(&$javascript) {
  // $javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'zoor') .
  //   '/js/jquery.js';
  // $javascript['misc/jquery.js']['version'] = '1.10.2';
}

I hope it will help.

Comments

user
Submitted by admin on Fri, 09/20/2013 - 06:50

It looks like any drupal module on your website is not compatible with jQuery version 1.10.2
Thank you @bedenicoloas for providing solution :)

user
Submitted by admin on Fri, 09/20/2013 - 07:07

BTW, Do you have jQuery update module installed??
https://drupal.org/project/jquery_update

If its installed, you should disable and un-install this module.

user
Submitted by admin on Fri, 09/20/2013 - 08:57

Add following code

 unset($javascript['misc/jquery.js']);

After:

$javascript['misc/jquery.js']['version'] = '1.10.2';
user
Submitted by admin on Wed, 10/16/2013 - 17:28

This error is produced when you use jQuery update module with this theme. Zoor theme already comes with latest stable jQuery. So, you do not need to use jQuery update module. So, if you have jQuery update module, please disable it.