Closed (fixed)
Project:
Node Comments
Version:
6.x-2.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2010 at 05:26 UTC
Updated:
24 May 2010 at 15:50 UTC
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
Comment #1
smartparty commentedSubscribing.
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
Comment #2
Sinan Erdem commentedSubscribing... Same error when Body label is empty...
Comment #3
wondertum commentedSame problem when Body is empty
Comment #4
ctrnz commentedSame problem here. Here is a workaround for me:
(edit nodecomment.module right after this line "// Remove the teaser splitter.")
Comment #5
crea commentedhttp://drupal.org/cvs?commit=365258