I have one site with a theme that has a page.vars.php where there are various assignments like $variables['content_column_class'] = 'classname' and by the time the page.tpl.php tries to print $content_column_class, there is no value.

This same theme is in another site without this issue. What can make the value in theme variables be empty by template render? Is there something in the database? I've run drush cc all, I've run the update.php, all with no change. What methods for debugging these type of issues can I take?

  • 1
    check for custom modules Oct 1, 2015 at 2:48
  • It's the same set of custom modules. Is there some line of code that I can look for? What can unset those variables?
    – shelane
    Oct 2, 2015 at 1:35
  • Is the function name in page.vars.php correct for your new theme name? Oct 2, 2015 at 4:56
  • Yes, the function name is correct. So I just saw this happen on a site that was working that no longer is working. The only change was to a view and a feature. There is something getting clobbered somewhere and I don't know where to go to clear it out.
    – shelane
    Oct 2, 2015 at 17:11
  • Move everything from page.vars.php into template.php to simplify the issue Oct 2, 2015 at 17:31


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.