Fatal Error on Edit

bobgeier - February 4, 2009 - 18:08
Project:Imagefield Crop
Version:6.x-1.0-beta2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

After installing imagefield crop and happily cropping an image, going back to edit the node with the image yields:

Fatal error: Cannot use string offset as an array in /xxx.com/sites/all/modules/imagefield_crop/imagefield_crop_widget.inc on line 189

#1

yhager - February 4, 2009 - 21:35
Status:active» postponed (maintainer needs more info)

Can you provide more details? information on the environment?
Can you recreate the bug? Does it happen always?

#2

bobgeier - February 5, 2009 - 20:05

Sorry, had to move on to finish some other work. I had to both disable the module and delete and recreate the image field in order to restore (after the error, the image field would not show up on forms even with the module disabled).

I'll try to recreate on an isolated Drupal install tonight or tomorrow. Environment was Drupal 6.9, Imagefield 6.x-3.0-Alpha 4, Imagcache 6.x-2.0-beta5, Filefield 6.x-3.0-alpha7, etc. - everything current.

B

#3

hamsterbacke82 - February 10, 2009 - 07:56

I have the same problem with a similar configuration...

I changed my image field from image to imagecrop type, save. Then clicked on the edit tab of a node of that content type -> the above fatal error showed up
However I could set my field back to normal image type and the data of that field was saved.

#4

Darko A. - February 20, 2009 - 17:03

I had the same issue on same environment.
The error appeared when I reused the existing image field from one content type into another one.
The error continued even after removing the field from the newly created CT. Luckily I didn't really need the cropping feature on the original field and once I changed it to normal image the error disappeared and all the edit was functional again.

#5

bacchus101 - February 20, 2009 - 21:05

Same error, same environ.

It happened when I changed the image size requirements.

#6

yhager - April 6, 2009 - 13:16
Status:postponed (maintainer needs more info)» active

I'm quite puzzled at this one, as I cannot recreate it. I've recently fixed an issue with migrating from imagefield, it might be related.

Can you recreate this on latest dev? If so, please describe the exact steps to recreate it. Thanks.

#7

yhager - April 6, 2009 - 13:20
Status:active» postponed (maintainer needs more info)

#8

clemens.tolboom - April 9, 2009 - 11:58

After disabling the imagefield_crop module the field widget is changed into 'File Upload' widget.

My guess is that hook_disable is either not working or incorrect. The widget should fall back to Image.

#9

yhager - April 11, 2009 - 08:39

@clemens.tolboom: you are correcct, hook_disable() is not implemented for imagefield_crop. But how is this related to this issue?

#10

clemens.tolboom - April 12, 2009 - 15:47

Because the field is fallen back to file upload and not to image field widget I guessed it is related. Hope this helps :-)

 
 

Drupal is a registered trademark of Dries Buytaert.