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

davidzz’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev

Error occurs in the latest HEAD as well.

sol roth’s picture

I'm still having this issue, with the latest dev release for D7 contemplate

jrglasgow’s picture

I 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?

daveharding’s picture

I 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?

rfulcher’s picture

I have a similar issue. I have several fields including node reference. Here are the errors that I am getting.

    Notice: Undefined index: und in contemplate_eval() (line 813 of C:\xampp\htdocs\bo_2\sites\all\modules\contemplate\contemplate.module).
    Notice: Undefined index: und in contemplate_eval() (line 814 of C:\xampp\htdocs\bo_2\sites\all\modules\contemplate\contemplate.module).
    Notice: Undefined index: und in eval() (line 5 of C:\xampp\htdocs\bo_2\sites\all\modules\contemplate\contemplate.module(817) : eval()'d code).

I am using the latest version of dev.

agri-indus’s picture

Same here :

Notice : Undefined index: und dans eval() (ligne 23 dans /data/files/pres/sites/all/modules/contemplate/contemplate.module(817) : eval()'d code).
Notice : Undefined index: und dans eval() (ligne 24 dans /data/files/pres/sites/all/modules/contemplate/contemplate.module(817) : eval()'d code)

(french :p)

On Drupal 7, and Contemplate 7.x-1.0-alpha2

I hope that someone will fix that ! :)
Thanks in advance.

kpastore’s picture

dgtlmoon’s picture

Do your content types have a body field?

#1114688: CCK supports content types without $body

dgtlmoon’s picture

Status: Active » Closed (fixed)

resolved - related bugs fixed