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

Cannot reproduce Problem with attachments

teletubbi

Well-known member
#1
I came into a situation that I had to edit a post where attachments are double.

After editing the attachments don't show up as a picture only as a link.

If I look into this post there is the normal bbcode attach=full.

My solution was to copy the link to this attachment and paste it into the post with the img code.

After the pictures there are still the links to this attachments.
 

Optic

Well-known member
#2
Hi @teletubbi,

Yes unfortunately this is a limitation of the XF1 editor - you will only see images inside the editor when you create a new post/thread.

If you edit it later the images will always appear as BBCode only, even if you preview it.

But the final result will be fine after you submit the changes.

XF2 has a new editor which fixes this.
 

Optic

Well-known member
#4
Does the attachment appear below the post? Is it still in the attachment list when you edit the post? (maybe it got deleted?)
 

Optic

Well-known member
#6
Then it sounds like the attachment has become orphaned and detached from the original post, you can confirm by using the Attachment Browser:
/admin.php?attachments/

Find the attachment and check if the host content link is correct or missing..

Do you have any add-ons that are adding or changing attachments without using the post editor?

Maybe worth making a ticket so XF staff can check your database..
 

teletubbi

Well-known member
#7
To illustrate how it looks like.
Screenshot made with mobile so can't see all. But I think it's enough to understand.

First one is the post in the forum like the members can see.

Screenshot_20170718-170030.jpg

Second is the post opened in the editor in ASCII mode.

Screenshot_20170718-170120.jpg
 

Mike

XenForo developer
Staff member
#8
Based on that picture, the attachment referenced in the post body aren't the attachments that are actually in it. You can see there's a mix of img tags and that appears to be what's displaying as an image.

If you hover over the attachments below the message, I suspect you'll see that their IDs (in the URLs, after the "." near the end) don't actually match the ones referenced in the message.
 

teletubbi

Well-known member
#9
As you can see all ID are the same.

Screenshot_1.jpg

The mix comes because the picture don´t shows up.
So i copy with a right click the url from the attachments below and paste it with the img Code into the post.
Than the pics are visible.
 

Mike

XenForo developer
Staff member
#10
Can you reproduce this consistently across posts? Can you reproduce it with add-ons diabled (and on a default style)?
 

dutchbb

Well-known member
#11
I have the same problem on my forum with some posts. This was after using the convert image all add-on i think, but not sure. You have used that add-on also i see.

I had duplicate images in a combination of full attachments and not inserted in post. After removing the not inserted i also got an attachment link in the post that i could not fix.
 

Optic

Well-known member
#13
The mix comes because the picture don´t shows up.
/admin.php?attachments/

Try to find the attachment, then compare the link "View Host Content" with the thread that has the issue. Does it match?

attachment-browser.png

Maybe you can correct it here by deleting the faulty attachment and re-uploading it as a fresh attachment from the thread editor.
 

teletubbi

Well-known member
#14
There are no faulty attachments.
If I click the link the right picture shows up.

They are only not visible in the post itself as pictures.