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

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.

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.

Assigned:Unassigned» ChinggizKhan

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

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

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

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