I recently went through the painful process (mainly b/c I'm not a Drupal God like some users) of upgrading my Drupal 6 site to 7. I won't bore you the details, but I got it working.

Now, I'm getting some errors like this when I run the update script upon adding some new modules. This is the message I got when adding the Webform module via the 'Install via URL' option and such. Any ideas? However, it's talking about the maintenance theme (which does look weird when I see it).

    * Notice: Undefined index: seven in _drupal_maintenance_theme() (line 75 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.maintenance.inc).
    * Notice: Trying to get property of non-object in _drupal_theme_initialize() (line 146 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Notice: Undefined index: seven in _drupal_maintenance_theme() (line 75 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.maintenance.inc).
    * Notice: Trying to get property of non-object in _drupal_theme_initialize() (line 146 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Notice: Trying to get property of non-object in _theme_build_registry() (line 536 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Notice: Trying to get property of non-object in _theme_build_registry() (line 536 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Notice: Trying to get property of non-object in _theme_build_registry() (line 536 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Notice: Undefined index: seven in theme_get_setting() (line 1153 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Notice: Undefined index: seven in template_preprocess_maintenance_page() (line 2423 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Notice: Trying to get property of non-object in template_preprocess_maintenance_page() (line 2423 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Warning: array_keys() [function.array-keys]: The first argument should be an array in template_preprocess_maintenance_page() (line 2426 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).
    * Warning: Invalid argument supplied for foreach() in template_preprocess_maintenance_page() (line 2426 of /homepages/10/d175696491/htdocs/bethesdachildcare/includes/theme.inc).

Comments

brian77nc’s picture

Disregard. Errors caused by removing the Seven theme

spenoir’s picture

So your advice is to just disregard these undefined index errors?

perfectcu.be’s picture

I know that this thread was started three years ago, but just in case anyone else runs into this issue, here was my solution.

I removed a custom theme when upgrading to Drupal 7, as it was no longer compatible. However, I forgot to change the maintenance theme variable in settings.php. Look for this in your settings.php file, and simply change it to "garland" some other theme included in the core.
$conf['maintenance_theme'] = 'garland';