No idea why but couple of files have usage of some global vars that are not defined and then PHP is giving warnings like
Notice: Undefined index: theme_key in _bootstrap_process_theme_registry() (line 224 of themes/bootstrap/includes/registry.inc).
or
Notice: Undefined index: theme_path in _bootstrap_process_theme_registry() (line 242 of themes/bootstrap/includes/registry.inc).
This files are bootstrap.drush.inc, common.inc and registry.inc. I understand that drush part is waiting probably D7 version first to be done, but why globals are used in other two files, and are never set is not clear to me?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | remove-globals-usage-2536656-4.patch | 1.57 KB | s_leu |
Comments
Comment #1
markhalliwellThat is because 8.x is not actually stable (as stated on the project page). It is a port from the 7.x branch (where D7 uses globals). 7.x is currently HEAD (master) code.... not 8.x.
Comment #2
pivica commented@markcarver got it, do you want me to try create a patch for this $GLOBALS or is it better not to touch them for now?
Comment #3
s_leu commentedHere's a patch against current 8.x-3.x to fix this.
Comment #4
s_leu commentedLast patch was incomplete, here's one that replaces all usages of $GLOBALS with the corresponding API calls.
Comment #5
s_leu commentedComment #7
neardark commentedWent ahead and merged this one in.