XF 2.2 unfurl fails randomly - all links are just links to forum posts?

TUG

Active member
i do a "top 5 most popular threads" post each month with links to....the top 5 most popular threads for the month.

each time only 2 or 3 of the links actually unfurl? im pretty baffled by this and have verified:

1. the url unfurl code is identical on all the links.
2. all the links are valid and simply go to existing threads on the same forum
3. there are no errors in the unfurl checker


can see the live page here, for this month only 2 of the 5 links "unfurled". Certainly not a critical issue in any way shape or form, but it bugs me.

 
i did the same type of post last month with the same results.

perhaps its just something related to having multiple urls in a post?

ive never encountered an issue with unfurling a single url etc.
 
 
yea im at a bit of a loss. ive never encountered an unfurl error on my site before....though admittedly 99.9% of all urls posted are just one in a single thread vs a series of 5 in a row?

I did some tests in replies on that first post using the urls that DIDNT unfurl in the top 5 list, and they all unfurl fine on their own posts?
 
on the exact same thread, this thread did NOT unfurl in the original post, but unfurls fine in its own reply:

 
 
Code:
https://xenforo.com/community/threads/.225105
https://xenforo.com/community/threads/.225104
https://xenforo.com/community/threads/.225103
https://xenforo.com/community/threads/.225102

Remember: You shouldn’t need titles. Might make it easier to test.

 

ok so whats different here? just the numbers?
 
so bizarre, ive tried it every which way. removing all spaces, removing numbers, adding numbers in line... always the same 3 dont unfurl unless they are in a separate post.

another user suggested it might have something to do with the url length? is unfurl limited by url length by chance? though that doesnt explain why they all work fine on their own.
 

Attachments

  • nounfurl1.webp
    nounfurl1.webp
    42.2 KB · Views: 6
just wanted to mention here that unfurl only works if the link is in independent line without anything before or after. even a space before the link would bypass the unfurl feature iirc. but yeah, it is definitely weird if unfurl does not happen for fourth link in a post.

Without any space at the start.

With space at the left of the link.
https://www.google.com/
 
i tried it every which way i could think of in editing that first post with 5 links, including just 5 links on their own lines and removing all the numbers etc.

one super bizarre twist is that when I posted one of the links on its own in a reply, it not only unfurled fine...but the link in the OP now appeared unfurled.

this worked on 4 out of the 5 links. with one still remaining unfurled.
 
as it sits now.... every url is on its own line, no spaces or characters before or after each link on its own line.
 

Attachments

  • unfurl2.webp
    unfurl2.webp
    42.1 KB · Views: 4
and all 5 of the links unfurl fine in that very same thread if they are included in their own individual replies. (including line 2 which still wont unfurl in the op)
 
one super bizarre twist is that when I posted one of the links on its own in a reply, it not only unfurled fine...but the link in the OP now appeared unfurled.

yeah xenforo uses existing data for unfurled urls. so basically you can try unfurling the fifth url in a new post and see if it works in the post with five links as well. i can only imagine that this is hitting some sort of a limit on the server because xenforo itself does not seem to have any restrictions on number of unfurled urls in a post. (update: i guess it didn't work as per your post #18 above)

even hitting the preview button in post editor would process the link and add the unfurl data in database which can be used for existing links in posts. it does come quite handy to update links.
 
Back
Top Bottom