hello,
In recent Log Entries the following error occurs whenever a comment (i.e a nodecomment) is posted:

array_search() [function.array-search]: Wrong datatype for second argument in C:\wamp\www\sites\default\modules\nodecomment\nodecomment.module on line 420.

This only occurs whenever its Submission Form Settings>Body Field Label is left empty.

(I'm using cck 6.x-2.6 and views 6.x-2.6)

Comments

smartparty’s picture

Version: 6.x-2.0-beta1 » 6.x-2.0-beta3

Subscribing.

warning: array_search() [function.array-search]: Wrong datatype for second argument in nodecomment.module on line 422.

Error appears when trying to add a node, this is when submission form settings > body field label is left empty. If body field is re-populated error disappears.

Using;
Node Comment 6.x-2.0-beta3 (previous release gave same issue)
CCK 6.x-2.6
Views 6.x-2.8
Panels 6.x-3.2

Sinan Erdem’s picture

Subscribing... Same error when Body label is empty...

wondertum’s picture

Same problem when Body is empty

ctrnz’s picture

Same problem here. Here is a workaround for me:
(edit nodecomment.module right after this line "// Remove the teaser splitter.")

if (!empty($form['body_field']['#after_build']))
{
$teaser_js_build = array_search('node_teaser_js', $form['body_field']['#after_build']);
unset($form['body_field']['#after_build'][$teaser_js_build]);
$form['body_field']['teaser_js']['#access'] = FALSE;
$form['body_field']['teaser_include']['#access'] = FALSE;
}
crea’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.