After installing Rubik and Tao, the following error is reported:
* Notice: Undefined variable: primary_local_tasks in include() (line 10 of /srv/www/htdocs/sites/all/themes/rubik/page.tpl.php).

* Notice: Undefined variable: skip_nav_class in include() (line 12 of /srv/www/htdocs/sites/all/themes/adaptivetheme/adaptivetheme/templates/html.tpl.php).

at the top on every admin page.

Tao 7.x-3.0-beta3 is used

Comments

seth.vincent’s picture

I had the same issue (but not with skip_nav_class, that's an adaptive theme issue, not rubik or tao).

I got the notice to go away by enabling tao.

ericduran’s picture

Status: Active » Closed (works as designed)

This isn't a bug, Rubik is a sub theme of Tao. If you enabled tao you download Tao (http://drupal.org/project/tao) you will no longer have this issue as Tao is what declares the "primary_local_tasks" variable for rubik to use.

Bitbull’s picture

Title: Undefined variable: primary_local_tasks and skip_nav_class » Undefined variable: primary_local_tasks
Version: 7.x-4.0-beta4 » 7.x-4.0-beta8
Status: Closed (works as designed) » Needs review

I freshly installed the Rubik admin theme and Tao, and nearly the same error is being thrown:

Notice: Undefined variable: primary_local_tasks in include() (line 10 of /sites/all/themes/rubik/page.tpl.php).

(nothing about skip_nav_class)
To mention that I installed Tao after Rubik, after noticing the required dependancy. Before Tao installation, a lot of other errors showed up.
Could you please (re)check in this version?

piratawww’s picture

You should clear all caches...

star-szr’s picture

Status: Needs review » Closed (works as designed)
zaid173’s picture

you shoud enable base theme Tao

bdanin’s picture

Issue summary: View changes

I enabled tao, but was still getting the errors; I wrapped the two variables in isset() and it went away in my subtheme

for more context, here are the two lines in full:

<?php if (isset($primary_local_tasks)): ?><ul class="links clearfix"><?php print render($primary_local_tasks) ?></ul><?php endif; ?>

<?php if (isset($secondary_local_tasks)): ?><ul class="links clearfix"><?php print render($secondary_local_tasks) ?></ul><?php endif; ?>