Partial fix File not found at path: xfmg/original

AndyB

Well-known member
Affected version
XFMG 2.2.0
When I use the Set as avatar like this:

1606676009267.png

I get the following error:

1606676132766.webp

This issue only occurs on older XFMG media items. The problem appears to be that not all media items have an original image. Would it be possible to use the attached image when there is no original?

Thank you.
 
The problem appears to be that not all media items have an original image.
This is correct, not all media items have an original image. But this one should otherwise we wouldn't try to use it.

You should have an "original" image if the image has been watermarked. We do this so that if you decide to remove the watermark or change the watermark then we can apply it to the original, pre-watermarked image.

The error suggests that the original file is missing from your server. It's difficult to say whether it was missing prior to version 2 or has gone missing since.

It is looking for the file in internal_data/xfmg/original/0/.... In versions prior to XFMG 2.0 the original files were stored in a slightly different location, specifically internal_data/xengallery/originals/0/... but the upgrade should have gracefully handled moving them.

You may wish to see if you can locate the missing files.

If you cannot then there's not a great deal we'd be able to do.

I am making a small change in XFMG 2.2.1 which will allow the "Unwatermark image" feature (in inline moderation and batch update media) to remove the "watermarked" flag so we no longer consider the image to be watermarked.

Further to that I've added code to fallback to the normal image if the original cannot be found so the set as avatar function should just work without error.

Though please note: missing files are unexpected so it would be best if you can dedicate some time to figure out why that might have happened.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XFMG release (2.2.1).

Change log:
When unwatermarking images if the original data path cannot be found, remove the watermark flag. Also fallback to the non-original image in some cases in the unlikely event that the original image cannot be found.
There may be a delay before changes are rolled out to the XenForo Community.
 
Thank you for the detailed explanation, much appreciated.

Please also check another similar issue when the original image is missing. The media items show like this, again only the older ones where the original is missing.

1606830297884.webp

When I run this:

1606830382950.webp

Those broken thumbs are not fixed if the original file is missing. Please have the code revert to using the attached image if the original is missing.

Thank you.
 
Hi Chris,

Because this thread is marked resolved, not sure if you had a chance to review my above post. Should I start a new bug report?
 
Yes a new bug report is best. We wouldn't have had time to fit a further fix into XFMG 2.2.1 anyway unfortunately so we'll try and look at it for the next release.
 
Back
Top Bottom