Hi All,

I'm having an issue with the Imagefield_crop module (see below). Not sure if I should be posting this problem here (might be a bug). Am I doing something wrong. This list appears when I apply the "image with cropping" widget (in the manage fields menu):

Warning: Illegal string offset 'x' in _imagefield_crop_widget_enforce_ratio_validate() (line 130 of C:\xampp\htdocs\drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Warning: Illegal string offset 'x' in _imagefield_crop_widget_enforce_minimum_validate() (line 137 of C:\xampp\htdocs\drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Warning: Illegal string offset 'x' in _imagefield_crop_widget_enforce_minimum_validate() (line 137 of C:\xampp\htdocs\drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Warning: Illegal string offset 'y' in _imagefield_crop_widget_enforce_minimum_validate() (line 138 of C:\xampp\htdocs\drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Warning: Illegal string offset 'y' in _imagefield_crop_widget_enforce_minimum_validate() (line 138 of C:\xampp\htdocs\drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).

Cheers

Comments

VM’s picture

I'd search the issue queue of the module in question for similar reports. If none exist, I'd create one.

coldpookie’s picture

Other version worked just fine so I'm now using that (7.x2). Works a little differently, but its all good.

Cheers

danilocgsilva’s picture

Same problem to me.

But what was strange is that it occurs only to some computers. In anothers, got no warning at all...

But some light in the question: "succefully" I've reproduced the warnings message in another computer. What I've noticed is that those other computer have the same OS version that the first problematic one, and different from those where the module worked well.

I like to use Ubuntu. The 12.04.2 LTS worked very well. The problem occurs on the others two computers where the Ubuntu's version is the newest 13.04.

So, maybe the module's developer used something that is illegal to the most recent ubuntu php's compilation. In my 12.04.2 LTS there's a 5.3.10-1ubuntu3.7 php's version, and in the 13.04, the version of php is 5.4.9-4ubuntu2.2.

So, the problem can be the php's version.

Peter van den Heuvel’s picture

Same thing for me. Guess it's the PHP version.

Dinis’s picture

I was getting this error on several base PHP versions (5.4, 5.5 and 5.6) so I don't think the issue is related to the PHP version. Updating to the latest Dev release of Imagefield Crop fixes the issue though.