Closed (fixed)
Project:
Orange
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2011 at 22:35 UTC
Updated:
10 Jun 2011 at 14:34 UTC
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 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 commentedComment #3
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 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 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 commented@ emcniece
Thanks, it's looking promising. Will take a look soon!
Cheers,
Comment #7
nomonstersinme commentedthanks guys, sorry about that. im pretty sure this is committed to dev and 7.x-1.1 now
Comment #8
nomonstersinme commented