• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Image & Link Proxy Problem

Sheratan

Well-known member
#1
I know it's still in beta but maybe this will help xenforo

My problem are exactly like the title. Image and link proxy does not working. I've enabling both and put some secret key. There is some log in image log, but zero in link log.

The image log are full with image from https only server. Example, some pics from their facebook profile (Facebook is https). But I don't see any image from non https in image log. A simple test by embedding xenforo logo from this site into a thread still show broken https.

It's nginx + FPM 5.5.8 with latest xcache. And I've trying to disable and clear xcache too but no luck
 

Sheratan

Well-known member
#3
It's Beta 2

I can get link proxy works. But still no luck with image.

I have reload nginx, php-fpm, clear xcache, clear chrome cache but still no luck.
 

Mike

XenForo developer
Staff member
#4
Do you have an example of an image that was posted after upgrading to beta 2 that either isn't being proxied when you expect it, or isn't displaying when you expect it?

If all images are failing to display, that's likely an issue with your server connecting externally, such as an outgoing firewall.
 

Sheratan

Well-known member
#5
The image is proxied, but it's a broken image.

Example: https://oniichan.us/threads/test.2111/

Image link (with proxy)
Code:
https://oniichan.us/proxy.php?image=http%3A%2F%2Fi.imgur.com%2Fg06numg.png&hash=9cc6434afcc1ad151a6103ed472c2117
without proxy:
Code:
http://i.imgur.com/g06numg.png
I've disable firewall temporary just for this image proxy test. But still broken.
 

Mike

XenForo developer
Staff member
#9
This is intentional - we only allow GIF, JPEG and PNG. We do basic verifications on them to ensure they are images.
 

Mike

XenForo developer
Staff member
#12
It's not that problem specifically -- that behavior is actually designed. But you can force a refresh via the control panel (only on individual images).

I am working on some tools to help get the specific error when retrieving an image, but if you want to submit a ticket with FTP info, I can look into it.
 

Sheratan

Well-known member
#13
So @Mike told me this is part of bug, part of misconfiguration. I had a different "internal_data" path folder (that's the main problem) so perhaps all user who had a same configuration like me, she/he would likely run into this problem.

Just for the record, a tweak has been made. You guys can wait for 1.3 Beta 3 to solve this problem. :)

Another awesome support from xenforo staff. (y)
 

Mike

XenForo developer
Staff member
#14
FWIW, it wasn't related to the different internal_data path. It appears to be that not everything was migrated when you moved it -- at the least, the temp/ directory within wasn't moved (it did exist in the original location). There are various other places that do use this directory, but they would fall back to /tmp due to how the PHP function tempnam() works, whereas this place uses the location explicitly. The change was to create the directory if necessary.