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:

if ($primary_local_tasks):

if ($secondary_local_tasks):

<?php endif

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

thx in advance!!

Members fund testing for the Drupal project. Drupal Association Learn more


tinny’s picture

I have the same error except my path error says:


Coop920’s picture

Status: Active » Needs review
1.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.

barraponto’s picture

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).

barraponto’s picture

funana’s picture

#4 seems to solve the problem.

barraponto’s picture

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

funana’s picture

Status: Needs review » Reviewed & tested by the community
haydeniv’s picture

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.