Error message
Notice: Undefined index: body in contentanalysis_parse_context_node_load() (line 800 of C:\wamp\www\websites\development\sandbox\sites\all\modules\contentanalysis\contentanalysis.module).
This is displayed when clicking find content > insight
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | contentanalysis-undefined-index-800-1416364.patch | 647 bytes | dmducc |
Comments
Comment #1
mixxmac commentedI get this error in a couple of scenarios:
1) Saving a node with an empty body field
2) Saving a node for a content type that doesn't use a body field
Notice: Undefined index: body in contentanalysis_parse_context_node_load() (line 800 of ... sites/all/modules/contentanalysis/contentanalysis.module).
Comment #2
devilworks commenteddelete the code on line 800 will fix this error
$context['body'] = $node_view['body'][0]['#markup'];
Comment #3
paulgemini commentedYeah that worked for me.
Comment #4
kingfisher64 commentedYep #2 works.
Comment #5
jawi commentedworks for me
Comment #6
rvdtuin commentedDoes the deleting of this piece of code effect any other part of the contentanalysis or any other functionality?
Comment #7
DrupalDan commentedsub
Comment #8
jmrivero commentedFixed it by adding a conditional to check that the body key exists instead of deleting the line.
Comment #9
gianfrasoft commentedOops...! #8 didn't worked for me!
Comment #10
dmducc commentedI have created a patch that is similiar to #8.
Followed the directions to to commit, but I dont see it yet.
Comment #11
kyletaylored commentedPatch looks great, will be committed in next release. Thanks dmduke!
Comment #12
makokis commentedthis patch helps me, thanks
Comment #14
kyletaylored commented