BerryPro : Notice : Undefined index: scope in drupal_get_js()

Hello,
I would like to go further with this post : http://www.drupar.com/forum/zoor-theme-support/notice-undefined-index-scope-drupalgetjs dated in 2013 as I am encountering what it looks like the same problem with BerryPro.
May you confirm the solution is the same as described in your comments ?
Thanking you in advance,
Best regards,

Comments

user
Submitted by admin on Thu, 03/31/2016 - 22:32

Do not use jQuery update module with the theme. If you want to use jQuery update module, please delete following codes from template.php file.

/**
* Use latest jquery
*/
function berrypro_js_alter(&$javascript) {
  $javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'berrypro') .
    '/js/jquery.js';
  $javascript['misc/jquery.js']['version'] = '1.12.0';
}
user
Submitted by cococom64 on Mon, 04/18/2016 - 14:16

It means I have to delete the entire "function berrypro_js_alter(&$javascript)" ?

user
Submitted by admin on Mon, 04/18/2016 - 14:18

yes, you have to delete entire function

Just delete these lines.

/**
* Use latest jquery
*/
function berrypro_js_alter(&$javascript) {
  $javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'berrypro') .
    '/js/jquery.js';
  $javascript['misc/jquery.js']['version'] = '1.12.0';
}