Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Undefined index: scope in drupal_get_js() (line 4399 of /var/www/html/outsideonline/docroot/includes/common.inc).
Comment | File | Size | Author |
---|---|---|---|
#11 | advagg-log-no-scope-2790301-11.patch | 6.3 KB | mikeytown2 |
|
Comments
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedThis is an issue with some 3rd party code that you're using. drupal_add_js() runs everything through drupal_js_defaults() which sets the scope. I'd look at all your hook_js_alter()'s. If you turn off AdvAgg you'd still have this issue most likely.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedYou can see what alters are being ran by going to
admin/config/development/performance/advagg/info
and under AdvAgg CSS/JS hooks implemented by modules, at the bottom is js_alter
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedComment #5
mikeytown2 CreditAttribution: mikeytown2 commentedNeed more info in order to proceed.
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedCan not reproduce this bug as stated. Reopen if you have more info on how to reproduce this issue.
Comment #7
Summit CreditAttribution: Summit commentedHi,
I have the same bug with update.php on latest .dev version with latest drupal 7
I can do this of course, but as said there, this is not the root cause.
greetings, Martijn
Comment #8
Summit CreditAttribution: Summit commentedHi,
I have the same bug with update.php on latest .dev version with latest drupal 7
I can do this https://www.drupal.org/project/drupal/issues/2760909 of course, but as said there, this is not the root cause.
greetings, Martijn
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedWhat alters are running? See #3
Comment #10
Summit CreditAttribution: Summit commentedHi,
I see:
greetings, Martijn
Comment #11
mikeytown2 CreditAttribution: mikeytown2 commentedThis patch will log the missing scope. Clear all caches (system wide) after applying.
patch looks like the this ignoring white space