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.
On fresh HEAD install, switch administration theme to any option, then back to system default and the following warnings come up:
* warning: array_map() [function.array-map]: Argument #2 should be an array in D:\websites\drupal-HEAD\modules\system\system.module on line 1233.
* warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in D:\websites\drupal-HEAD\modules\system\system.module on line 1271.
* warning: array_keys() [function.array-keys]: The first argument should be an array in D:\websites\drupal-HEAD\modules\system\system.module on line 1248.
* warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in D:\websites\drupal-HEAD\modules\system\system.module on line 1271.
* warning: array_keys() [function.array-keys]: The first argument should be an array in D:\websites\drupal-HEAD\modules\system\system.module on line 1248.
Cannot reproduce afer the first time unless you start again from scratch with a new database. On a new install though, can reproduce every time.
Comment | File | Size | Author |
---|---|---|---|
#2 | admin_theme_0.patch | 1.05 KB | John Morahan |
Comments
Comment #1
chx CreditAttribution: chx commentedI confirm this behaviour. Indeed, after install the first but only the first switch back gives a warning. I have never seen any bug like this.
Comment #2
John Morahan CreditAttribution: John Morahan commentedIt's trying to initialize the blocks for the new admin "theme" which is actually 0 for the system default.
Comment #3
webernet CreditAttribution: webernet commentedTested OK, and the code looks fine.
Comment #4
Gábor HojtsyIt is kind of interesting to have 0 the default admin theme, but I understand it is done to default to the site theme unless specifically selected. Anyway, the patch looked good, so committed.
Comment #5
(not verified) CreditAttribution: commented