Hi

I've updated imagecache from 1.x to 2.0 and now i get this error in my ubercart-based shop:

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

I think that this happens when generating some images thumbnails.

Any idea of what can be happening?

Thanks!!!

related:
http://drupal.org/node/260496
http://www.ubercart.org/forum/bug_reports/5121/preg_match_error

Comments

dopry’s picture

Project: ImageCache » Ubercart
Version: 5.x-2.0-rc2 » 5.x-1.0-rc5

probably because ubercart doesn't support imagecache 2.x

rszrama’s picture

Version: 5.x-1.0-rc5 » 5.x-1.0
Status: Active » Closed (won't fix)

Perhaps we're running on different Drupal's, but I can't find a preg_match() in all of bootstrap.inc. : P

In any event, I don't expect the 1.x branch of Ubercart to support Imagecache 2.x. However, there's no reason for it not to be supported in future versions. Look for it come Ubercart 2.0.

pcambra’s picture

Thanks for the explanation, Ryan.

The call of preg_match() is there since Drupal 5.7, in line 670 of bootstrap.inc, as part of the function drupal_validate_utf8.

Btw, it would be cool to get imagecache2 working properly with ubercart, as new cool-image-features are being released. I will give a try for solving this, keep you updated.

Update, found the issue, it was a imagecache2 bug: http://drupal.org/node/275605