We are currently experiencing intermittent problems using this module.
It seems that the URI of the crop in crop_entity_usage and on the corresponding file entity is not always the same.
When calling loadCropRelations, and setting $load_full_crop to FALSE (default), the resulting entitys crop_uri-property is: images/crop/2015/10/28/1446019495_...
When calling loadCropRelations, and setting $load_full_crop to TRUE, the resulting entitys uri-property is: images/crop/2015/10/28/1446019872_...
Only the latter image exists, when the problem occurs.
Everywhere where we use loadCropRelations, we just make sure to pass TRUE in $load_full_crop, but when calling overrideSingleImage, it calls loadCropRelationsand passes FALSE in $load_full_crop. Our temporary fix it to change it, so that it passes TRUE.
The underlying problem should probably be fixed instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | crop_uri_returned_is-2606302-3.patch | 447 bytes | mian3010 |
Comments
Comment #2
mian3010 commentedAttached hack to fix problem.
Comment #3
mian3010 commentedIt helps a bit when i read through the entire function, before fixing it ;-)
Setting
$load_full_croptoTRUEdid not help. Loading the file entity did however. I have attached a patch.The original source of the problem should still be found though.
Comment #4
kristougher commentedThanks mian3010. It must be the relations table, that is not always properly updated. Was the crop updated?
Comment #5
kristougher commentedMerged into Crop Instance.