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

XF 1.5 Some users cannot see attachments when inserted into post

Discussion in 'XenForo Questions and Support' started by Zynektic, Jul 19, 2015.

  1. Zynektic

    Zynektic Well-Known Member

    Hi there,

    I just had a few users tell me that they cannot see attachments on a thread. The user attached the image and then inserted the full image. I can see them myself, we use proxy image and SSL and it works fine to me on the URL and the thread but some are reporting that they cannot see it. Two of them were on a Mac and one was on an HP laptop with Windows.

    A few other users who tested it can see them fine on various devices so I am not sure what the issue is. Registered usergroup has permission to view attachments and upload them and we have no additional image handler other than one which uploads to another site and does not interfere with the attachment system as I disabled it, tried it again and they can still not view them.

    Any ideas?

    Note: They cannot see any images in that thread apparently.
    Last edited: Jul 19, 2015
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The images aren't available to guests.

    Are they logged in?
  3. Zynektic

    Zynektic Well-Known Member

    Yeah they are logged in. I've also adjusted it for guests, thanks for that.
  4. Zynektic

    Zynektic Well-Known Member

    I just confirmed they show as a broken image tag also on my guest view on mobile but show fine for me when logged in on my desktop.
  5. Chris D

    Chris D XenForo Developer Staff Member

    When you edit the post is the image in an [IMG] tag or is it in an [ATTACH] tag?

    If the former, then it's possible that the image has been uploaded to a post in a forum that not everyone has access to. Or a Conversation message.
  6. Zynektic

    Zynektic Well-Known Member

    It comes up like this [IMG ]https://www.domain.com.net/attachments/wingz-draco-png.290/[/ IMG] and everyone can view the node/thread, it was uploaded to the attachment system on the thread.

    I also replied to the thread, uploaded as an attachment and inserted as a full image and it did the same as the above which they could not view.
    Last edited: Jul 19, 2015
  7. Brogan

    Brogan XenForo Moderator Staff Member

    That image is not visible to guests and could have other permission restrictions.

    You can use the permissions analyzer on the node/user to determine whether they can view attachments.
  8. Zynektic

    Zynektic Well-Known Member

    The ones reporting it were logged in as I am speaking to them on the shoutbox though.

    I've just checked the node permissions and set it to allow for attached images on the unregistered usergroup but no luck, they can view the thread too. Only permission restrictions on that node is posting threads is revoked on registered and allowed on administrator/moderator/content author.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    It is still not visible to guests.

    To be clear, it is the node in which the image is originally attached which should have the permissions changed.
  10. Zynektic

    Zynektic Well-Known Member

    This is what I have set for unregistered usergroup, not sure why it is not showing still =\

    I just uploaded them to imgur for now and edited the URL as users wanted to see it, shows for guests now that way. I'll look into the attachment issues.

    Attached Files:

  11. Zynektic

    Zynektic Well-Known Member

    Usergroup permissions, unregistered can view attachments.

    On the node it is not set to private and the permission is set to view attachments, it might be due to how it was uploaded perhaps. The image tags should not work with the URL above or does it allow it for attachment URL? that is all I could think of being wrong.

    I am not sure why it shows for me though and not them when logged in, permissions looked fine as mentioned above.

    I'll leave them as Imgur URL's for now.
  12. Mike

    Mike XenForo Developer Staff Member

    It could be something like the attachment being in a deleted thread or post. The URL itself won't really tell you where the attachment has been served "from" (in terms of its host content).
  13. Privatecheats

    Privatecheats Member

    We got the same problem. Anyone else an idea how to fix it?
    marcv likes this.
  14. marcv

    marcv Member

    Same problem. Guests set to view attachments. Node set to allow viewing. No luck. @Privatecheats did you ever find a fix?
  15. howarde

    howarde Member

    I am having the same issue with users seeing some of the smileys.
  16. Greg_K

    Greg_K New Member

    Hey all - We appear to have a similar problem.Running a new XF 1.5 forum, and a registered user included many images in his thread as URLs, and even though the complete image URL shows in the source of the page, (HTTPS URLs, could that make a difference?), the images are not visible to other registered users. He says they show up fine for him. I checked that registered users have view permissions for node attachments, and in fact later in his thread as a test, he uploaded some images as attachments, and they display correctly - the problem seems to be just with images inserted as URLs.

    Is there a general XF config option maybe we don't have set properly?

    Thanks for any help!
  17. Mike

    Mike XenForo Developer Staff Member

    If it's just images inserted from external sites, then they may be doing some sort of referrer-based blocking. An example would help (a link to a thread with the problem)
  18. Mike

    Mike XenForo Developer Staff Member

    They are returning 403 forbidden errors. This is almost certainly hotlinking protection that they have in place.
  19. Greg_K

    Greg_K New Member

    Thanks Mike!
  20. howarde

    howarde Member

    I'm having the same issue, where regular users (who have permissions to view attachments) are receiving a 403 error, but when logged in as admin, I can see the attachments, with no errors. These attachments aren't being hot linked, but rather are on my server in the attachments directory. I have a user complaining about this.

Share This Page