Partial fix File not found at path: xfmg/original

Affected version
XFMG 2.2.0

AndyB

Well-known member
When I use the Set as avatar like this:

1606676009267.png

I get the following error:

1606676132766.png

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.
 

Chris D

XenForo developer
Staff member
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.
 

XF Bug Bot

XenForo bug fixer bot
Staff member
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.
 

AndyB

Well-known member
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.png

When I run this:

1606830382950.png

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.
 

AndyB

Well-known member
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?
 

Chris D

XenForo developer
Staff member
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.
 
Top