Community & Support

preg_match() error after duplicating custom node module

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

Start deleting functions one

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.

Full-time freelancer, always looking for work.
jaypan.com (my portfolio)

ok, solved

thanks.

i had a hook with a wrong functionname.