Imagefield Version: 6.x-3.0-alpha2
CCK Version: 6.x-2.x-dev
Drupal Version: 6.6

I receive the following errors when creating content that uses imagefield. I disabled one module at a time until I could narrow down the source.

    * warning: preg_match() expects parameter 2 to be string, array given in /home/mysite/public_html/includes/common.inc on line 1075.
    * warning: preg_match() expects parameter 2 to be string, array given in /home/mysite/public_html/includes/common.inc on line 1075.
    * warning: preg_match() expects parameter 2 to be string, array given in /home/mysite/public_html/includes/bootstrap.inc on line 732.
    * warning: preg_match() expects parameter 2 to be string, array given in /home/mysite/public_html/includes/bootstrap.inc on line 732.
    * warning: preg_match() expects parameter 2 to be string, array given in /home/mysite/public_html/includes/bootstrap.inc on line 732.
    * warning: preg_match() expects parameter 2 to be string, array given in /home/mysite/public_html/includes/bootstrap.inc on line 732.

Once I set file type and file size restrictions the errors were gone. Obviously this is by design but stupid people like me might be scratching their heads so I thought I would share.

Hope that helps others.

Comments

kenorb’s picture

Version: 6.x-3.0-alpha2 » 6.x-3.0-alpha4

I can confirm that with 6.x-3.0-alpha4

5 times:

warning: preg_match() expects parameter 2 to be string, array given in /includes/bootstrap.inc on line 751.

on admin/content/node-type/product/fields/field_sklep_zdjecie?destinations[0]=admin/content/node-type/product/fields