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

tribalrose’s picture

Coincidently 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 70

This took care of both errors for me:
http://drupal.org/node/326614#comment-1431404

tommytom’s picture

I 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.

ae860300’s picture

help 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

RaRi’s picture

subscribe

Anonymous’s picture

Having 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

crea’s picture

Status: Active » Closed (fixed)

D6 1.x branch is not supported anymore. Closing.