I get this twice on every page when my Aurora sub-theme is active.

Notice: Undefined index: type in aurora_get_js_old() (line 143 of /data/www/development/d7/sfera/profiles/sfera/themes/aurora/includes/scripts.inc

Comments

marcvangend’s picture

I had the same message (using 2.7) and a similar one saying "Notice: Undefined index: group in aurora_get_js_old() (line 61 of ...", but after a few tries and cache-clears it disappeared and didn't come back. Weird.

marcvangend’s picture

Version: 7.x-2.6 » 7.x-2.7

Found it!

In my case, this was caused by the fact that the modernizr module was installed, but the actual modernizr js was not present.

This in itself would not be a problem, but aurora_js_alter() calls modernizr_get_path() without checking if the return value is something meaningful. If the path to modernizr.js is not found, modernizr_get_path() returns null and aurora_js_alter() adds a bogus item to the javascripts array.

iamcarrico’s picture

Assigned: Unassigned » iamcarrico

Whoop! Thats weird. I will take a look at a fix for it. Might even poke the modernizr module maintainer for some better code. :-)

Elijah Lynn’s picture

Agreed, I am thinking the Modernizr code could fail more gracefully and maybe put a drupal_set_message() up saying something helpful.

Elijah Lynn’s picture

Crosslinking similar issue - http://drupal.org/node/1868202

iamcarrico’s picture

Status: Active » Closed (fixed)

This issue doesn't matter anymore as the Modernizr implemented the force_header tag. The aurora_js_alter has been taken out of future versions