I created a subtheme, but get this error:

Warning: Invalid argument supplied for foreach() in theme_links() (line 1694 of /srv/www/website/includes/theme.inc).
Warning: Invalid argument supplied for foreach() in theme_links() (line 1694 of /srv/www/website/includes/theme.inc).

I found a similar issue over here: http://drupal.org/node/1127452

Thank you for making such a great theme, it looks nice and is very easy to work with.

Comments

ressa’s picture

Issue summary: View changes

removed some erroneous stuff

ressa’s picture

Issue summary: View changes

removed line break

ressa’s picture

Issue summary: View changes

Removed extra question, not pertinent.

ressa’s picture

I can make the error messages go away by commenting out this part in template.php, the sub-theme seems to work fine without it:

/**
 * Override or insert variables into the page template.
 */
/*
function aef_preprocess_page(&$vars) {
  if (isset($vars['main_menu'])) {
    $vars['main_menu'] = theme('links__system_main_menu', array(
      'links' => $vars['main_menu'],
      'attributes' => array(
        'class' => array('links', 'main-menu', 'clearfix'),
      ),
      'heading' => array(
        'text' => t('Main menu'),
        'level' => 'h2',
        'class' => array('element-invisible'),
      )
    ));
  }
  else {
    $vars['main_menu'] = FALSE;
  }
  if (isset($vars['secondary_menu'])) {
    $vars['secondary_menu'] = theme('links__system_secondary_menu', array(
      'links' => $vars['secondary_menu'],
      'attributes' => array(
        'class' => array('links', 'secondary-menu', 'clearfix'),
      ),
      'heading' => array(
        'text' => t('Secondary menu'),
        'level' => 'h2',
        'class' => array('element-invisible'),
      )
    ));
  }
  else {
    $vars['secondary_menu'] = FALSE;
  }
}
*/
ressa’s picture

Issue summary: View changes

fixed spelling

ressa’s picture

Issue summary: View changes
Status: Active » Closed (outdated)