Home - Administration - Appearance

Displays the following error

Notice: Undefined index: enabled in system_themes_page() (line 239 of /var/www/html/oa2/modules/system/system.admin.inc).
Warning: uasort() expects parameter 1 to be array, null given in system_themes_page() (line 245 of /var/www/html/oa2/modules/system/system.admin.inc).

I cleared cache and ran update. Any ideas what its looking for?

Comments

mpotter’s picture

I'm not seeing that on any of our test systems nor on a fresh Pantheon install. That page is trying to show all themes. Since that's part of Drupal core it's not anything that Open Atrium changes, so have no idea. Probably should do a Google search of this.

hefox’s picture

My first inclincation is to make sure oa_radix and radix are accessible/part of code base.

It looks like this error can happen if no themes are enabled that are on the site (something which don't think can happen via the ui as the default theme should always be enabled).

Relevant lines:

  $theme_groups  = array(); 
  foreach ($themes as &$theme) {
    ...
    $theme_groups[$theme->status ? 'enabled' : 'disabled'][] = $theme;
  }
  ...
    'enabled' => format_plural(count($theme_groups['enabled']), 'Enabled theme', 'Enabled themes'),
hefox’s picture

Status: Active » Postponed (maintainer needs more info)
JKingsnorth’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

No further information from the original poster so I'm going to close this issue. Please do reopen it if you still require support.