XF 2.2 Some image thumbnails (via an external host only) are not displayed

Hello everybody, I have had a strange problem for several weeks, almost always for images posted on my forum with an external host (Imagebam, Imgbox, etc.), several images are not displayed and we see the url link instead.

vignettes non apparentes.jpg
However, I have no problem with the attached images (fortunately!), it is only with the bb-code of the images. I did tests with other forums, all the images were displayed well, I had no problems, only on my forum I have this problem which is almost recurrent with each post containing images.
I am wondering where this can come from and I really need your help please because it is very annoying especially since my forum is mainly based on sharing photos. I use Mozilla Firefox, I tried with other browsers and it's the same, I know it's not from the browser. Please, where do you think this might come from? Could it come from a bad setting of my host? :unsure:

I also show you my server settings, I have the correct Php version so it doesn't come from there. I don't know...

serveur.webp

Kind regards.
 
Last edited:
Solution
Sorry for the delay, I was a little busy. No, luckily it's not just Imagebam that allows adult content, it's also Imgbox, Imagetwist and other hosts. I wouldn't use imgur.com as they only allow "family" content just like imgbb, however the last site is very useful for gifs. But casimages also does the job very well for gifs.
I don't really know what self-hosting is. :rolleyes: I've never heard of it other than the attachments. I'll have to find out more about this. Thank you Chromaniac for all these suggestions.

Otherwise for my problem, I understood! In fact it's very stupid, it is the words which I set up in the option "Censoring" which modified certain bb-codes. I wanted to fight against the sms language in French without thinking...
I have seen this issue randomly. Too few times to be able to point a fix at the moment. One thing you can try is to disable image proxy if you have it enabled. That should in most cases fix this problem. However, your screenshot show links to http based links to images so it would become a problem if you are running SSL on your domain. XF2.2 does have an option where proxy is only used for HTTP links. So that might help. But not always.

One crappy workaround would be to do a find and replace of all http links to https links on a regular basis for domains which does support https. Imagebam does iirc (it is banned on most ISPs here in India).

Also of course do check if the image links here are indeed enclosed in IMG tag.
 
Thank you very much Chromaniac for your help. :) I disabled the image proxy and it didn't change anything at all.

capture10.webp

Regarding images that are not displayed, it's the same in https (for example with Imgbox), it's the same.
For the links of the tags, I was not mistaken and besides these work perfectly on other forums, not a single image which does not appear whereas on my forum I have at least one which is not displayed, see more, 2, 3, 4 ...

It's really mysterious to me. Thank you again Chromaniac.
 
ok. it does seem like the bulk code that imagebam provided missed the img tags for the images that are missing.
if you go through the code, you would notice that the images that only have links do not really have img tag for the image itself.

Code:
<a href="http://www.imagebam.com/image/b054961268622974" target="_blank" class="link link--external" data-proxy-href="/proxy.php?link=http%3A%2F%2Fwww.imagebam.com%2Fimage%2Fb054961268622974&amp;hash=3c7eba3c468ba87e9a258ed134e76fa6" rel="noopener">http://thumbs2.imagebam.com/34/avec/68/b054961268622974.jpg</a>
 
However there are img tags as you can see below on the screenshot and I put the first images of the post in the spoiler, you will see that it displays well

bb-code_latitia_casta.png

 
Last edited:
Ah ... Sorry, I have difficulties to understand. Is there something to do with Xenforo's html code? 🤔 In any case, there is a problem with the img tags.
 
Last edited:
What I was saying was that...

You post BBCODE here in XenForo editor.
That BBCODE is converted in HTML by XenForo when that post is viewed.
What I actually see in browser is HTML produced by XenForo.
And that html code on your forum's posts didn't show me image code from Imagebam.
This means that when Imagebam generated the forum (bbcode) code for images, it seems to have missed the image tag for some of the images. This is the only reason I can think of.

What I wanted you to post was the entire post content of the missing image post (from editor) here so that I can see if the post content has image code for the missing image. I do not have access to the post's actual content posted by the user. I only get to see the HTML generated by XenForo.

I checked this post: https://forum-collants.fr/threads/laetitia-casta.839/post-7198. So just edit this post, copy the content and post here in code box.
 
OK, this is what I wanted to do yesterday but I got a message telling me that you should not exceed 20 images, I didn't know I had to use the "code" option, that's why it didn't work. And I did not understood your penultimate message correctly, I have a very bad english, I use google translate. So here is the full bb-code that I put in my post . I'm sorry!

Code:
[URL=https://www.imagebam.com/image/5a218e1268622904][IMG]https://thumbs2.imagebam.com/b8/33/73/5a218e1268622904.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/45ff0d1268622924][IMG]https://thumbs2.imagebam.com/a5/84/2e/45ff0d1268622924.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/b054961268622974][IMG]https://thumbs2.imagebam.com/34/ac/68/b054961268622974.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/6a21181268623014][IMG]https://thumbs2.imagebam.com/2a/1d/7c/6a21181268623014.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/099c671268623054][IMG]https://thumbs2.imagebam.com/a4/77/0c/099c671268623054.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/9790ce1268623094][IMG]https://thumbs2.imagebam.com/74/d3/fa/9790ce1268623094.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/2594e31268623124][IMG]https://thumbs2.imagebam.com/eb/0b/27/2594e31268623124.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/807f371268623184][IMG]https://thumbs2.imagebam.com/21/dc/ac/807f371268623184.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/8a46cc1268623194][IMG]https://thumbs2.imagebam.com/31/e0/88/8a46cc1268623194.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/009caa1268623214][IMG]https://thumbs2.imagebam.com/0a/36/39/009caa1268623214.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/06a5a91268623234][IMG]https://thumbs2.imagebam.com/67/7a/48/06a5a91268623234.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/6497e51268623264][IMG]https://thumbs2.imagebam.com/22/e5/3b/6497e51268623264.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/a556b01268623344][IMG]https://thumbs2.imagebam.com/5b/09/61/a556b01268623344.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/1ee2141268623414][IMG]https://thumbs2.imagebam.com/84/6f/da/1ee2141268623414.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/2c56a91268623464][IMG]https://thumbs2.imagebam.com/b1/f9/d2/2c56a91268623464.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/c67a9e1268623504][IMG]https://thumbs2.imagebam.com/ca/b8/9f/c67a9e1268623504.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/c248a81268623564][IMG]https://thumbs2.imagebam.com/ed/6a/28/c248a81268623564.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/83a1dd1268623694][IMG]https://thumbs2.imagebam.com/dd/e4/40/83a1dd1268623694.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/9f53151268623734][IMG]https://thumbs2.imagebam.com/a2/b8/a9/9f53151268623734.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/cf051d1268623804][IMG]https://thumbs2.imagebam.com/3c/49/5e/cf051d1268623804.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/6d9e8a1268623884][IMG]https://thumbs2.imagebam.com/41/9e/a3/6d9e8a1268623884.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/0321de1268623944][IMG]https://thumbs2.imagebam.com/55/cf/77/0321de1268623944.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/e9711a1268624034][IMG]https://thumbs2.imagebam.com/27/22/a7/e9711a1268624034.jpg[/IMG][/URL] [URL=https://www.imagebam.com/image/831e4a1268624124][IMG]https://thumbs2.imagebam.com/fc/7f/7b/831e4a1268624124.jpg[/IMG][/URL]
 
Last edited:
The above code seems to be fine.

[URL=https://www.imagebam.com/image/b054961268622974][IMG]https://thumbs2.imagebam.com/34/ac/68/b054961268622974.jpg[/IMG][/URL]

I am now out of ideas. I cannot access the forum content right now so it's hard to check again if the image code is indeed missing from the html code generated by XenForo... But the code I posted above definitely is missing the image code.

<a href="http://www.imagebam.com/image/b054961268622974" target="_blank" class="link link--external" data-proxy-href="/proxy.php?link=http%3A%2F%2Fwww.imagebam.com%2Fimage%2Fb054961268622974&amp;hash=3c7eba3c468ba87e9a258ed134e76fa6" rel="noopener">http://thumbs2.imagebam.com/34/avec/68/b054961268622974.jpg</a>

Also just noticed that http://thumbs2.imagebam.com/34/avec/68/b054961268622974.jpg is a dead image. This is from yesterday. Your fresh code points to https://thumbs2.imagebam.com/34/ac/68/b054961268622974.jpg which works. So, not sure what happened here. Was the post content changed since yesterday?
 
Sorry I made a mistake. I took the imagebam bb-code that I put in my post, I didn't take it in my post because I couldn't. The bb-code turned into images so not easy to copy. There I think it should be good, I had a copy paste of my post.

Code:
 http://thumbs2.imagebam.com/34/ac/68/b054961268622974.jpg http://thumbs2.imagebam.com/21/dc/ac/807f371268623184.jpg http://thumbs2.imagebam.com/b1/f9/d2/2c56a91268623464.jpg http://thumbs2.imagebam.com/ca/b8/9f/c67a9e1268623504.jpg

I believe the copy paste is not correct.
 
The code provided by Imagebam is the one that is important. And that code seems to be ok. Image should appear.

You can get the current code of the post with missing image by clicking the [ ] button in the editor.

1625084206434.webp

This would give you the bbcode that seems to have problems with the missing image.

In any case, Imagebam seems to have updated the links to images. I am not sure why that could have happened and why the image links are different now.
 
I you want, for a few minutes, i can send you my usurname and password for the forum for to wath the post (in private of course).
Because I think I must have incorrectly reproduced the entire code of the post, I have a doubt.

For me, there hasn't been an update to imagebam.

Edit: OK, I clicked on "Toogle BB-code" 1625084206434.webp and here is the full post code:

Code:
[URL='http://www.imagebam.com/image/5a218e1268622904'][IMG]http://thumbs2.imagebam.com/b8/33/73/5a218e1268622904.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/45ff0d1268622924'][IMG]http://thumbs2.imagebam.com/a5/84/2e/45ff0d1268622924.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/b054961268622974']http://thumbs2.imagebam.com/34/ac/68/b054961268622974.jpg[/URL] [URL='http://www.imagebam.com/image/6a21181268623014'][IMG]http://thumbs2.imagebam.com/2a/1d/7c/6a21181268623014.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/099c671268623054'][IMG]http://thumbs2.imagebam.com/a4/77/0c/099c671268623054.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/9790ce1268623094'][IMG]http://thumbs2.imagebam.com/74/d3/fa/9790ce1268623094.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/2594e31268623124'][IMG]http://thumbs2.imagebam.com/eb/0b/27/2594e31268623124.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/807f371268623184']http://thumbs2.imagebam.com/21/dc/ac/807f371268623184.jpg[/URL] [URL='http://www.imagebam.com/image/8a46cc1268623194'][IMG]http://thumbs2.imagebam.com/31/e0/88/8a46cc1268623194.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/009caa1268623214'][IMG]http://thumbs2.imagebam.com/0a/36/39/009caa1268623214.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/06a5a91268623234'][IMG]http://thumbs2.imagebam.com/67/7a/48/06a5a91268623234.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/6497e51268623264'][IMG]http://thumbs2.imagebam.com/22/e5/3b/6497e51268623264.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/a556b01268623344'][IMG]http://thumbs2.imagebam.com/5b/09/61/a556b01268623344.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/1ee2141268623414'][IMG]http://thumbs2.imagebam.com/84/6f/da/1ee2141268623414.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/2c56a91268623464']http://thumbs2.imagebam.com/b1/f9/d2/2c56a91268623464.jpg[/URL] [URL='http://www.imagebam.com/image/c67a9e1268623504']http://thumbs2.imagebam.com/ca/b8/9f/c67a9e1268623504.jpg[/URL] [URL='http://www.imagebam.com/image/c248a81268623564'][IMG]http://thumbs2.imagebam.com/ed/6a/28/c248a81268623564.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/83a1dd1268623694'][IMG]http://thumbs2.imagebam.com/dd/e4/40/83a1dd1268623694.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/9f53151268623734'][IMG]http://thumbs2.imagebam.com/a2/b8/a9/9f53151268623734.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/cf051d1268623804'][IMG]http://thumbs2.imagebam.com/3c/49/5e/cf051d1268623804.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/6d9e8a1268623884'][IMG]http://thumbs2.imagebam.com/41/9e/a3/6d9e8a1268623884.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/0321de1268623944'][IMG]http://thumbs2.imagebam.com/55/cf/77/0321de1268623944.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/e9711a1268624034'][IMG]http://thumbs2.imagebam.com/27/22/a7/e9711a1268624034.jpg[/IMG][/URL] [URL='http://www.imagebam.com/image/831e4a1268624124'][IMG]http://thumbs2.imagebam.com/fc/7f/7b/831e4a1268624124.jpg[/IMG][/URL]
 
Last edited:
The code in the post above is incorrectly formatted - several of the entries are missing IMG tags.

1625087884089.webp
If the IMG tags are added then all images appear as expected.

1625088045263.webp
 
Indeed Brogan, we see that the img tags are missing for 4 photos.

For example, the original code for the 3rd photo

Code:
[URL=https://www.imagebam.com/image/b054961268622974][IMG]https://thumbs2.imagebam.com/34/ac/68/b054961268622974.jpg[/IMG][/URL]

turns into

Code:
[URL='http://www.imagebam.com/image/b054961268622974']http://thumbs2.imagebam.com/34/ac/68/b054961268622974.jpg[/URL]

How to explain that the Img tag disappears for some photos (or thumbnails if you prefer) ? Why is it denatured? Weird. I am the only one in this case apparently no one else has this problem it seems.
 
Last edited:
Ok Brogan, thank you and thanks a lot also to Chromaniac. :) (y) I have a shared server at Planethoster. What should I do now to fix what is wrong with my server? You have any idea? :rolleyes:
 
Last edited:
one major strange thing happening is that all https links from original code are being turned into http links. that should not be happening! try disabling your addons and see if it still happens.

something is definitely messing around with the content being posted and what is being saved.
 
Top Bottom