Closed (fixed)
Project:
ImageCache
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2008 at 11:29 UTC
Updated:
30 Sep 2008 at 09:33 UTC
Jump to comment: Most recent
I am getting the following error after updating:
warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/domain.com/httpdocs/cms/includes/bootstrap.inc on line 670.
Comments
Comment #1
dopry commentedWhat do you do when this error occurs? There should be more info in your watchdog.
Comment #2
davegan commentedI had this problem - thought I had imagemagick installed but I didn't.
Try enabling the ImageAPI GD2 and disabling the ImageAPI ImageMagick module.
Comment #3
marcoBauli commentedsame error here. there's another issue dealing with this at http://drupal.org/node/269159
PS: imagemagick not installed. I also get:
warning: mkdir() expects at most 2 parameters, 3 given in /backup/tmphome/kiteatla/public_html/test/sites/all/modules/imagecache/imagecache.module on line 440.but might be related to permissions to create folders on the server.
Images do not show up..
Comment #4
dopry commented@marcobauli, upgrade to php5 imagecache 2.x requires it.
@portrait: gonna answer that question so someone can try to help you?
Comment #5
portait commentedI don't remember how but I got it resolved.
Thanks
Comment #6
marcoBauli commenteddopry, yes, i'm on PHP 5.0.4 on a site, and 5.2 on another server, and see the error in both of them actually..
in the watchdog i get
"preg_match() expects parameter 2 to be string, array given in /home/www/includes/bootstrap.inc in row 670."and
Failed generating an image from bilder/IMG_6542_0.JPG using imagecache preset .(another similar or probably duplicate issue is here)
thx
Comment #7
marcoBauli commentedPS: this happens also on a fresh install of Imagecache 2 (no update)
(editing title to something easier to remember)
Comment #8
dopry commentedMarco bauli sounds likes you need to update the imagecache preset for something... an empty preset is being called...
if you're using CCK on admin/content/type/$type/display, resubmit the options where imagecache formatters are used.
Comment #9
grafik commentedSame problem with PHP Version 4.3.9 and Imagecache: 5.x-2.x-dev (same with 5.x-2.0)
log file:
Comment #10
Anonymous (not verified) commentedI'm getting this Error too:
Im recently tried to set up my first gallery by following the instructions of Elliot Rothman's Screencast http://www.theartlab.net/drupal-school-009-maintainable-gallery
After the 4th time trying it everything went right exept that I get this error.
Can anyone say exactly what I have to do now?
Bootstrap.inc on line 670 says: " return (preg_match('/^./us', $text) == 1);"
I'm currently not enough educated in php to understand that yet. So... Tips and Solutions are very welcome!
Thx, sai-gon
Comment #11
drewish commentedthe preg_match part of the error was fixed over on #263058: Error in watchdog message. upgrade to 5.x-2.1 and see if this is still a problem. if so re-open this.
Comment #12
jlmeredithI had the same issue with this error. My solution was to disable the module that allows for photo uploading during registration. http://drupal.org/project/reg_with_pic Disabled - error goes away.
Comment #13
marcoBauli commenteddiscovered that the error was appearing when trying to resize bitmaps.
The format type filter was not working well in previous versions, so users could still upload .bmp
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #15
asak commented@jlmeredith : THANK YOU !!!
This was killing me...