XF 1.4 Image Proxy Failing in Random Instances

Warchamp7

Active member
I recently switched a site over to SSL and enabled the link/image proxies, but am having an issue where the image proxy is randomly failing.

Example


The second (working) image and the third (broken) image are both gif links from giphy.com, but the proxy link failed to work for the third image.

The data-urls for both links are both correct and work fine. Any ideas why the Image Proxy failed in this instance? (There are other cases across the site as well)
 

Brogan

XenForo moderator
Staff member
Are the failed images particularly large in terms of file size and/or dimensions?
 

Warchamp7

Active member
Are the failed images particularly large in terms of file size and/or dimensions?
I just read over a second report of the problem and this was my hunch, as this was the gif they had issues with: http://i.imgur.com/g2f5oSQ.gif



It failed here as well, so I imagine that's the problem? Is it a matter of it taking too long for the proxy to fetch? Is there a setting I can tweak to solve this?
 

Brogan

XenForo moderator
Staff member
You can try increasing or disabling the proxy image limit but it may still time out if it takes too long to fetch.
 

Mike

XenForo developer
Staff member
It failed here as well, so I imagine that's the problem? Is it a matter of it taking too long for the proxy to fetch? Is there a setting I can tweak to solve this?
There are size limits and time limits. The size limit you can tweak via "Image Cache Max Size". The download time limit you can't change and is to prevent certain attacks.
 

Tom McIntyre

Active member
Is there a way to disable image caching? We import all images on our site. We are trying to fix a number of import errors and it appears that our edits are being corrupted by the cache process. (Really just a guess at this point)

I have been using direct database edits to replace the bad references for correct ones that initially look like URL's but will be replaced with attachments by our use of Convert Image All. Something is causing these fixes to disappear a few hours after they have been done.
 

Mike

XenForo developer
Staff member
The image proxy is a view-time only thing, so anything that works on the URLs in a post directly won't be affected. But no, there's no way to disable caching with the proxy short of disabling it.
 
Top