Closed (fixed)
Project:
Content Analysis
Version:
7.x-1.0-beta5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2012 at 11:59 UTC
Updated:
13 Jan 2015 at 07:34 UTC
Jump to comment: Most recent, Most recent file
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