Eveerything is fine until I open a node type: "problem"
When I open a node of conent type PROBLEM I get this error:
warning: preg_match() expects parameter 2 to be string, array given in
warning: preg_match() expects parameter 2 to be string, array given in D:\HostingSpaces\hamburger\test.com.hostingasp.pl\wwwroot\drupal610\includes\bootstrap.inc on line 771.
If there are 5 comments, I see 5 times the same erorr message.
After that I see this error on every node AND the input form changes to a form with 2 fields.
But the content type for comments that I choosed has 5 fields. Even if changed the content type for comments (in site configuration -> comments), the input form for comments doesn't change.
I have to disable and enable the node comment module to fix it, but then again when I open node of type "problem" I have the same problem.
I did a lot of changes today, so I don't know what can cause it.
Anybody know what this error message means ?
Please help.
Comments
Comment #1
tribalrose commentedCoincidently I had the same thing happen to me today, only it was combined with
re:warning: Invalid argument supplied for foreach() in ...modules\taxonomy\taxonomy.module on line 70This took care of both errors for me:
http://drupal.org/node/326614#comment-1431404
Comment #2
tommytom commentedI use the dev version. I will try to install the stable version of this module.
However, now, I don't get the error message anymore. I deleted the one content type and recreated it with the same fields, etc.
And it's working fine. no errors.
Comment #3
ae860300 commentedhelp me in the add new classification in the main category ~
Results showed error message ~
help ~ ~ how to solve
warning: preg_match () expects parameter 2 to be string, array given in D: \ AppServ \ www \ speak \ includes \ bootstrap.inc on line 777.
http://drupaltaiwan.org/files/sp_0.PNG
Comment #4
RaRi commentedsubscribe
Comment #5
Anonymous (not verified) commentedHaving the same problem, I investigated what caused the watchdog entry.
For each comment that is displayed, the function preg_match is offered an array with the nid of the parent node. That array however must be a string.
As far a can see this is caused by a problem in the nodecomment.module when rendering the output.
EDIT:
After some trial I found the error:
In the module nodecomment.module the line
$output = views_embed_view($view_name, 'default', array($nid));
must be changed in:
$output = views_embed_view($view_name, 'default', $nid);
See the explanation in http://groups.drupal.org/node/17397
Comment #6
crea commentedD6 1.x branch is not supported anymore. Closing.