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.

Comments

mian3010 created an issue. See original summary.

mian3010’s picture

StatusFileSize
new770 bytes

Attached hack to fix problem.

mian3010’s picture

StatusFileSize
new447 bytes

It helps a bit when i read through the entire function, before fixing it ;-)

Setting $load_full_crop to TRUE did not help. Loading the file entity did however. I have attached a patch.

The original source of the problem should still be found though.

kristougher’s picture

Thanks mian3010. It must be the relations table, that is not always properly updated. Was the crop updated?

kristougher’s picture

Status: Active » Fixed

Merged into Crop Instance.

  • mian3010 authored 5443099 on 7.x-1.x
    Issue #2606302 by mian3010: Crop URI returned is not the same, when...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.