Undefined index: leaderboard in include() (line 84 of /var/www/html/wcms/test/profiles/wetkit/themes/wetkit_omega/templates/system/page--internet.tpl.php).

OLD code:

    <?php if ($page['leaderboard']): ?>
      <?php print render($page['leaderboard']); ?>
    <?php endif; ?>

Suggested fix

  <?php if (isset($page['leaderboard'])): ?>
    <?php if ($page['leaderboard']): ?>
      <?php print render($page['leaderboard']); ?>
    <?php endif; ?>
  <?php endif; ?>

Comments

joseph.olstad’s picture

Issue summary: View changes
joseph.olstad’s picture

Component: WetKit Theme » WetKit Omega
joseph.olstad’s picture

suggested patch

joseph.olstad’s picture

This patch is to avoid watchdog warnings about undefined index thrown from the wetkit_omega theme.
I also had to do this in my sub-theme.

joseph.olstad’s picture

Status: Patch (to be ported) » Needs review
joseph.olstad’s picture

Status: Needs review » Closed (works as designed)

drush omega-wizard didn't automatically put all the regions in so had to do this manually (copy and paste from parent wetkit_omega theme).

I had to add (copy and paste) the missing regions from the wetkit_omega.info file to the subtheme.info file

issue resolved, patch not required.