Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2010 at 01:02 UTC
Updated:
3 Feb 2012 at 16:20 UTC
In D7, it appears that although the $node variable renders fine, $body and $teaser does not work.
Here's the error that gets displayed when I try to use either:
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 796 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 797 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 796 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 797 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 796 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 797 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 796 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 797 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 796 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 797 of /home/bookpub/public_html/sites/all/modules/contemplate/contemplate.module).
Comments
Comment #1
davidzz commentedError occurs in the latest HEAD as well.
Comment #2
sol roth commentedI'm still having this issue, with the latest dev release for D7 contemplate
Comment #3
jrglasgow commentedI have not been able to replicate this, can you please describe where you are getting these errors.
What page they are showing up on?
What node type?
Is this a fresh install of Drupal 7?
Comment #5
daveharding commentedI am also having the same problem,
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 813 of /mysite/sites/all/modules/contemplate/contemplate.module).
Notice: Undefined property: stdClass::$body in contemplate_eval() (line 814 of /mysite/sites/all/modules/contemplate/contemplate.module).
Any permanent solution to this?
Comment #6
rfulcher commentedI have a similar issue. I have several fields including node reference. Here are the errors that I am getting.
I am using the latest version of dev.
Comment #7
agri-indus commentedSame here :
(french :p)
On Drupal 7, and Contemplate 7.x-1.0-alpha2
I hope that someone will fix that ! :)
Thanks in advance.
Comment #8
kpastore commentedhttp://drupal.org/node/1114688 - Worked for me.
Comment #9
dgtlmoon commentedDo your content types have a body field?
#1114688: CCK supports content types without $body
Comment #10
dgtlmoon commentedresolved - related bugs fixed