It appear that when the token module (noticed it with version 7.x-1.0-beta5) is installed, viewing a node (comments enabled) will output the following warning:
Notice: Undefined property: stdClass::$node_type in entity_extract_ids() (line 7379 of includes/common.inc).
This is with drupal 7.7.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | add_node_type_attribute_to_comment-1276296.patch | 665 bytes | drikc |
Comments
Comment #1
drikc commentedToken module implements on behalf of field.module the hook_tokens(...) which call entity_extract_ids($entity_type, $entity) where $entity need to have the 'node_type' attribute.
The given patch address this.
Comment #2
drikc commentedThe patch looks also useful for Drupal 7.8 which without will throw the following error instead of the previous warning:
Comment #3
drikc commentedComment #4
arhak commentedlets see where ends #1271302: Entity Malformed Exception error after upgrading to Drupal 7.8 from version 7.7
Comment #5
arhak commented@drikc: feel free to work with dev, you've been granted with write access
Comment #6
drikc commentedThanks arhak ;-), did commit the patch to master.
Comment #7
acPatch in #1 works on the 2.x branch - please roll a new alpha release of the 2.x as this module is currently useless without that patch.
Comment #8
drikc commentedI've pushed a release tag 7.x-2.0-alpha2 on master but I'm not granted for adding release package. arhak?
Comment #9
arhak commented@#8 granted drikc
Comment #10
drikc commented7.x-2.0-alpha2 release added.
Comment #11
acThanks for the quick response guys