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.
Got this error directly after creating the first article. The article has tags associated with it.
Notice: Undefined index: taxonomy_forums in include() (line 20 of /home/admin/public_html/sites/all/themes/orange/templates/node.tpl.php).
Could be completely unrelated to this theme (which I really like btw), but I can't seem to fix it.
Comments
Comment #1
S@ilor CreditAttribution: S@ilor commentedHi there,
I get various error messages, but here's some relating to the theme (hope it's ok I tab into this thread):
Let me know, if I should open another issue instead, or if more information is needed.
- Christian
Comment #2
emcniece CreditAttribution: emcniece commentedComment #3
emcniece CreditAttribution: emcniece commented@Drunkensailor
It sorta looks like the theme is not taking into account some of the additions we've made through modules in D7. I added taxonomy tags to my posts, did you add anything to your primary links or sidebar?
Comment #4
emcniece CreditAttribution: emcniece commentedFound a temporary solution... will keep hunting, but for now this worked for me: add the line
error_reporting (E_ALL ^ E_NOTICE);
to the top of sites/all/themes/orange/templates/node.tpl.php.
Also, check out http://www.dmxzone.com/go?13811
Comment #5
emcniece CreditAttribution: emcniece commentedFound a more permanent solution, checked if each variable was set (isset) before printing - as indicated in the link in the last post.
Replaced line 15:
<?php if ($content['field_tags']): ?>
with:
<?php if (isset($content['field_tags'])): ?>
Replaced line 20:
<?php if ($content['taxonomy_forums']): ?>
with:
<?php if (isset($content['taxonomy_forums'])): ?>
That fixes my issues thus far, will keep hunting.
Comment #6
S@ilor CreditAttribution: S@ilor commented@ emcniece
Thanks, it's looking promising. Will take a look soon!
Cheers,
Comment #7
nomonstersinme CreditAttribution: nomonstersinme commentedthanks guys, sorry about that. im pretty sure this is committed to dev and 7.x-1.1 now
Comment #8
nomonstersinme CreditAttribution: nomonstersinme commented