When I download TAO change the tao.info in mytheme.info upload and enable/set default i get an PHP notice:

Notice: Undefined variable: primary_local_tasks in include() (line 44 of /home/gervoyse/domains/gervoyse.be/public_html/sites/all/themes/dothraki/templates/page.tpl.php).
Notice: Undefined variable: secondary_local_tasks in include() (line 45 of /home/gervoyse/domains/gervoyse.be/public_html/sites/all/themes/dothraki/templates/page.tpl.php).

i didn't installed extra modules or other things. its a fresh drupal installation.

in the page.tpl.php on line 44 en 45 I have this:

<?php
if ($primary_local_tasks):
?>

<?php
endif;
?>

<?php
if ($secondary_local_tasks):
?>

<?php endif

any suggestions ? or should i just change my php.ini and hide the notice.

thx in advance!!

Comments

I have the same error except my path error says:

/sites/all/themes/tao/templates/page.tpl.php

Status:Active» Needs review
StatusFileSize
new1.08 KB

I went ahead and applied an isset function around $primary_local_tasks and $secondary_local_tasks to check for the variables and this has cleared out the error.

I added a check to actions since it seems prone to the same problem. Changed from isset to !empty since we do care that it is not empty (see http://kunststube.net/isset/ for more on this).

#4 seems to solve the problem.

@funana if it works for you, change status to reviewed and tested by the community

Status:Needs review» Reviewed & tested by the community

Status:Reviewed & tested by the community» Postponed (maintainer needs more info)

Please provide steps to reproduce as I do not see this happening in the current dev version. If you are installing a sub theme you need to make sure that Tao is downloaded to your themes folder prior to enabling your theme.