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.

CommentFileSizeAuthor
#2 admin_theme_0.patch1.05 KBJohn Morahan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

I 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.

John Morahan’s picture

Status: Active » Needs review
FileSize
1.05 KB

It's trying to initialize the blocks for the new admin "theme" which is actually 0 for the system default.

webernet’s picture

Status: Needs review » Reviewed & tested by the community

Tested OK, and the code looks fine.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

It 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)