Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get a fairly large amount of PHP notices after enabling the theme. Even if some of them are dupes, this is slightly distracting.
* Notice: Undefined index: node in include() (line 115 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\inc\template.preprocess-page.inc).
* Notice: Trying to get property of non-object in include() (line 115 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\inc\template.preprocess-page.inc).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_type - assumed 'cleanup_fields_type' in include() (line 31 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_name - assumed 'cleanup_fields_name' in include() (line 34 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Use of undefined constant cleanup_fields_zebra - assumed 'cleanup_fields_zebra' in include() (line 46 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\content-field.tpl.php).
* Notice: Undefined variable: article_id in include() (line 60 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
* Notice: Undefined variable: unpublished in include() (line 65 of D:\Projekte\test\drupal6\sites\all\themes\adaptivetheme\adaptivetheme\templates\node.tpl.php).
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedok, looking into this, I haven't run into this before, I am wondering if you still get these after visiting the theme settings page?
Comment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedI cant reproduce the notices, even with E_ALL (which I have set by default), but, I am thinking the weird "Notice: Use of undefined constant" are caused by some theme settings not being quoted:
E.g. in content-field.tpl.php we have:
But should be:
Thats the only file in the theme I believe I missed adding quotes (just an over-site, not intentional).
The other notices I'll keep looking into, especially if anyone else is getting these.
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedCleaning up the issue queue.