I was trying to sort out how to call a list of taxonomy terms in a teaser template and tried
[code] foreach ((array)$taxonomy as $item) {
print $item['view']
}
[/code]
which doesn't work, okay, I can work with that. But it really, really doesn't work. I can't even edit my templates now, it so doesn't work. i get this instead, when I view or edit templates:
Fatal error: Cannot use object of type stdClass as array in /home/members/.../web/sites/default/modules/contemplate/contemplate.module(455) : eval()'d code on line 10
I can't even fix the code, I'm totally locked out.
Comments
Comment #1
amanda commentedIn case anyone is wondering, I was able to go into the database to remove the offending code and replace it with functional code:
But I shouldn't have been forced to do that.
Comment #2
inforeto commentedDuplicate of: http://drupal.org/node/113980
Issue of not having a way to reset the template.
Edit (March 1, 2008)
here's related:
http://drupal.org/node/101144
http://drupal.org/node/113980
http://drupal.org/node/123061
http://drupal.org/node/137719
http://drupal.org/node/220374
Comment #3
jrglasgow commentedThe ability to delete the template from /admin/content/templates is in 5.x-1.9 releasing tonight. I am not planning on porting to 4.7