* Notice: Undefined index: #primary in nitobe_process_page() (line 549 of /var/www/iwantatravel/themes/nitobe/template.php).
* Notice: Undefined index: #primary in nitobe_preprocess_page() (line 513 of /var/www/iwantatravel/themes/nitobe/template.php).

CommentFileSizeAuthor
#3 1016038.patch914 bytesrobcarr

Comments

Paul M’s picture

I have the same message

jjfradet’s picture

Same message in my install.

Any ideas on how to get rid of it or define the variable? Or just switch to another theme?

robcarr’s picture

Status: Active » Needs review
StatusFileSize
new914 bytes

I have the same problem, although actually using Nitobe as a base theme. I have disabled both Main and Secondary menus in the theme settings, as I am using Nice Menus for my main site nav. The error message only seems to appear when the following conditions are met:

  • You are viewing an admin page (ie, URL has /admin/ prefix)
  • The page is an overlay

All other pages, and non-modals are just fine.

Only way round it is to check if value is set:

if(isset($variables["tabs"]['#primary'])){
    $variables["nitobe_tabs_primary"]   = $variables["tabs"]['#primary'];
  }

Seems to work now. Patch attached - please review and set to RTBC if this works for you too,

Pedro Lozano’s picture

Status: Needs review » Fixed

Thanks for the patch. I've commited it to the 7.x-2.x branch.

Pedro Lozano’s picture

Status: Fixed » Closed (fixed)
SirNoname’s picture

Sadly, I get this error with 7.x-2.0-beta1. Already cleared the cach. Anybody else?