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) |
Jump to:
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
Can you provide more details? information on the environment?
Can you recreate the bug? Does it happen always?
#2
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
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
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
Same error, same environ.
It happened when I changed the image size requirements.
#6
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
#8
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
@clemens.tolboom: you are correcct, hook_disable() is not implemented for imagefield_crop. But how is this related to this issue?
#10
Because the field is fallen back to file upload and not to image field widget I guessed it is related. Hope this helps :-)