1. 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

Discussion in 'Troubleshooting and Problems' started by Sheratan, Feb 1, 2014.

  1. Sheratan

    Sheratan Well-Known Member

    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
     
  2. RoldanLT

    RoldanLT Well-Known Member

    Currently, xf 1.3.0 beta 1 / Image Proxy doesn't work on https powered forum.
    Link Proxy should work fine.
     
  3. Sheratan

    Sheratan Well-Known Member

    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.
     
  4. Mike

    Mike XenForo Developer Staff Member

    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.
     
  5. Sheratan

    Sheratan Well-Known Member

    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.
     
  6. RoldanLT

    RoldanLT Well-Known Member

    Works fine now on my Live Forum, Thanks !
     
    DRE likes this.
  7. RoldanLT

    RoldanLT Well-Known Member

    Doesn't work with .webp extensions
    [​IMG]
     
  8. RoldanLT

    RoldanLT Well-Known Member

    @digitalpoint addon "Image Proxy" works fine with this extension.
     
  9. Mike

    Mike XenForo Developer Staff Member

    This is intentional - we only allow GIF, JPEG and PNG. We do basic verifications on them to ensure they are images.
     
  10. Sheratan

    Sheratan Well-Known Member

    I can give xenforo staff access to my server if you guys wanted to check.
     
  11. Sheratan

    Sheratan Well-Known Member

  12. Mike

    Mike XenForo Developer Staff Member

    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.
     
    Divvens likes this.
  13. Sheratan

    Sheratan Well-Known Member

    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)
     
    RoldanLT likes this.
  14. Mike

    Mike XenForo Developer Staff Member

    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.
     
    Sheratan likes this.

Share This Page