i get the error
warning: preg_match() expects parameter 2 to be string, array given in D:\xampp\htdocs\drupal\includes\bootstrap.inc on line 777.

after duplicating (and changing) a custom node module. The problem disappears if i disable the module.

I can't find out what's wrong

Comments

jaypan’s picture

Start deleting functions one at a time, then clear your cache and refresh the page where you are getting the error. This will help you track down the function that the error is in. Once you figure it out, post the code for that function here.

Contact me to contract me for D7 -> D10/11 migrations.

yangke’s picture

thanks.

i had a hook with a wrong functionname.