Embedded Thumbnails Missing

Zankza

Member
I've spent last forty minutes trying to get my mind around this erratic behavior XF 2 has. It is also my first time to play around with XF:MG, so bear with me.

It seems that the thumbnails for embedded media just simply decides to construct a thumbnail or not, there is no exact pattern or reason just yet.

At Add media page, when you try to insert a direct image from IMGUR, for instance a example,
Code:
https://i.imgur.com/rzocQcD
as the content

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

As you can notice the embed is missing metadata (and no thumbnail generated) if I try to go ahead fill out a dummy metadata

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

The picture does get displayed, but it's thumbnail fails, in contrast if I choose different URL scheme (from same picture and same entity from imgur) this time as "gallery" URL which looks like this:
Code:
https://imgur.com/gallery/Isq3n

https://i.imgur.com/OPSy3dy.png
https://i.imgur.com/Ns0xAOK.png

So the gallery links are working, on other hand, if I try a youtube video:
Code:
https://www.youtube.com/watch?v=lFfYV3mXa9o

https://i.imgur.com/X9kDOlU.png
https://i.imgur.com/43dnXXB.png
https://i.imgur.com/Ltbp9qt.png

As you can see, the thumbnails are broken, so it's not just IMGUR or YT, but something else appears to be broken, because "some parts" of IMGUR appears to work, but sometime it doesn't. I do not use upload functions, my media are never uploaded, they are always sourced by IMGUR and YT as you can see thumbnails are quite important as well automatically importing metadata.

Thanks for any help in advance.
 
Last edited:
Not really. It should just work. Your server is most likely using cURL to perform the HTTP request. I'm not sure if it's possible to enable any sort of verbose logging for that.

The only significant difference between this and any other link:
Code:
https://i.imgur.com/rzocQcD
Is that this performs a redirect to:
Code:
https://imgur.com/rzocQcD

We handle redirects though, and as you can see it should work (I used the i.imgur.com link here).

If cURL is involved then it might be worth looking to see if any upgrades to cURL are available and whether they solve the issue. Your host might have more advice in terms of troubleshooting any connectivity problems in terms of HTTP requests between your server and a remove server.
 
Other thing is that, as I understand the code/system relies on the "BBcode media sites", if I try to embed the youtube video, it does things just fine.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
XFMG does use the BB code media site system but the unique thing it does is perform a HTTP request to fetch a thumbnail and title and description.

I don’t really have any further suggestions but as we’ve had no other reports of this and the system seems to be generally working fine, it really just points to some internal issue with your server making those requests.

Sorry I can’t be more help.
 
I’m not particularly looking to blame any thing, but here’s really not a lot to go wrong here.

If you’d like to submit a ticket and provide FTP and forum log in details then I’ll see if I can add some logging code to trap the actual underlying error.
 
Back
Top Bottom