$node->body in hook_nodeapi() is empty. Replaced with: $node->content['body']['#value']
Probably because I'm using WYSIWYG editor? I'm not sure what's the correct fix.
Try to see what's inside of your $node object by doing dsm($node) if you have devel module enable or print_r($node, TRUE);
print_r(array_keys((array)$node)); in spellcheck_nodeapi(): Array ( [0] => nid [1] => vid [2] => uid [3] => created [4] => type [5] => language [6] => changed [7] => title [8] => format [9] => revision [10] => log [11] => name [12] => date [13] => status [14] => promote [15] => sticky [16] => submit [17] => op [18] => preview [19] => delete [20] => preview_changes [21] => form_build_id [22] => form_token [23] => form_id [24] => teaser [25] => book [26] => menu [27] => path [28] => taxonomy [29] => links_related [30] => tagfields [31] => field_publication_date [32] => field_reference_number [33] => field_file_attachments [34] => field_tpip [35] => field_acknowledgements [36] => field_copyright_description [37] => field_copyright_notes [38] => field_copyright_expiry [39] => nodewords [40] => validated [41] => picture [42] => build_mode [43] => readmore [44] => content ) var_dump($node->body); null print_r($node->content); [#title] => [#description] => [#printed] => 1 ) [group_node_information] => Array ( [#type_name] => page [#context] => teaser [#group_name] => group_node_information [#post_render] => Array ( [0] => fieldgroup_wrapper_post_render ) [#weight] => -2 [group] => Array ( [#required] => [#tree] => [#parents] => Array ( ) [#collapsible] => [#title] => Node information [#value] => [#description] => [#type] => fieldgroup_fieldset [#attributes] => Array ( [class] => fieldgroup group-node-information ) [#collapsed] => [field_publication_date] => Array ( [#type_name] => page [#context] => teaser [#field_name] => field_publication_date [#post_render] => Array ( [0] => content_field_wrapper_post_render ) [#weight] => 40 [field] => Array ( [#description] => [items] => Array ( [0] => Array ( [#formatter] => default [#node] => stdClass Object ( [nid] => 1712 [vid] => 4641 [uid] => 5 [created] => 1277739135 [type] => page [language] => [changed] => 1277742049 [title] => Test [format] => 2 [revision] => 1 [log] => [name] => seleniumadministratoruser [date] => 2010-06-28 16:32:15 +0100 [status] => 1 [promote] => 0 [sticky] => 0 [submit] => Save [op] => Preview [preview] => Preview [delete] => Delete [preview_changes] => Preview changes [form_build_id] => form-860156574095bf854366c77297572b39 [form_token] => 208eec172d36954dff2142ef69686b50 [form_id] => page_node_form [teaser] => bla blah house ...
The new code accepts strings through Text Review, so this issue is obsolete.
Text Review uses $node->content['body']['#value'], so this problem should no longer occur.
Comments
Comment #1
kenorb commentedProbably because I'm using WYSIWYG editor?
I'm not sure what's the correct fix.
Comment #2
nathanjo commentedTry to see what's inside of your $node object by doing dsm($node) if you have devel module enable or print_r($node, TRUE);
Comment #3
kenorb commentedComment #4
xanoThe new code accepts strings through Text Review, so this issue is obsolete.
Text Review uses $node->content['body']['#value'], so this problem should no longer occur.