XF 1.5 XF Image Proxy 500 error on invalid formatted URLs

Jake B.

Well-known member
For example,
Code:
proxy.php?image%5Cu003dhttp://i44.tinypic.com/4tu5vn.jpg%5Cu0026hash%5Cu003d4ef04555a90643d69c2dc9a9041fd5ab
and fairly similar links are showing up in hundreds crawl errors on Google Webmaster Tools, but from what I can see they're all being linked from other websites. Will all of these crawl errors showing up hurt SEO? If so, would it be a better idea to have some sort of 'default' image that will show instead of a 500 server error?
 
The crawl errors are generally informational.

That URL is so malformed that we can't even identify it as an image proxy request (though it's clear as a human). As such, a 500 (or some other non-2xx level response) is absolutely correct. I have no idea how that URL got so mangled (there's multiple levels and types of URL encoding in there).
 
I have no idea how that URL got so mangled (there's multiple levels and types of URL encoding in there).

From what he was saying there are a lot of sites that attempt to scrape his site for images and use them on his site, as to how they got mangled that is a mystery to us as well as none of these images appear anywhere on his site from what I can tell. I did try to extend
XenForo_ProxyOutput::output() to make all non-image and non-link proxy requests to return a 1x1px transparent gif, but my extension doesn't appear to be running, is that one of the classes that are not extendable with XFCP? If not I'll give it another shot to see if there was just something going on with my xf dev install
 
I think I stay on the same error. Many proxy pictures are not shown in the post.
Picture URL is the following:
Code:
https://www.kuechen-forum.de/forum/proxy.php?image=https%3A%2F%2Fwww.familiekaltwasser.de%2FDownload%2FKueche-2016-88.JPG&hash=b0fe23418045bb0ca4b729e0ecb7d0e3

By editing the post all pictures were shown correctly. After saving the urls are mangled.

This picture is shown correctly:

Code:
https://www.kuechen-forum.de/forum/proxy.php?image=http%3A%2F%2Fwww.bilder-upload.eu%2Fthumb%2F905eaf-1473932000.jpg&hash=40dcbf56e348e49e8cabf5c7260c503e
 
Last edited:
There's nothing mangled with that URL -- it just isn't able to fetch the image. The direct image URL doesn't work for me directly in my browser either.

If you have any issues with the image proxy, you should use the tester in the control panel. It'll tell you the specific error.
 
Test:

Kueche-2016-86.JPG


Works fine here.
The image proxy tester said, that all images were upload successfully.

Is it possible to clear all proxy cache to load all images again?
 
Is it possible to clear all proxy cache to load all images again?
Not directly, but you can reduce the "Image Cache Lifetime (Days)" to 1. However, I will say that failures have their own retry delay based on the number of failures. You can trigger a retry in the image proxy log in the control panel though.
 
Top Bottom