PDA

View Full Version : Images not always posting correctly


RichieBoy67
08-30-2016, 05:58 PM
Trust me, I know this was a common issue and i know the main things that usually cause this but i believe I have something else going on here.

It does not happen all the time but occasionally I will see that someone has uploaded an image and instead of the image I see a link to the attachment with the attachment id number like Attachment 11938 for example. The link is always broken. It has happened to me as well.

The image appears to upload properly and I can see it inside the post but after saving I will sometimes see the link and not the image.

My settings are to display inline images.

What is making this hard to troubleshoot is that it only happens on occasion and I cannot really see anything particular about the images it happens to. I first thought it was perhaps the size but that does not seem to be the problem.

What do you guys think this could be?

--------------- Added 31 Aug 2016 at 13:23 ---------------

I thought this could be a Cloudflare issue but I have no idea how to test this theory because this happens so sporadically.

RichieBoy67
09-16-2016, 09:18 AM
Hey all,

I am still looking for a solution to this issue.

Thanks

--------------- Added 16 Sep 2016 at 23:03 ---------------

##Update

I do believe this is some type of a resource issue though I cannot understand why. It is our busiest weekend and we have tons of traffic tonight and every time an image is uploaded it shows as a link. It shows fine though when using the attachment manager.

Yes I tried disabling plug ins to no avail.

Can anyone please help me with a work around? I had a weaker server last year and did not have these issues..

--------------- Added 17 Sep 2016 at 01:25 ---------------

I am sorry to bump this but I wanted to add more information.

#When I use the attachment manager there are no problems. Uploading images using the bbcode icon is when we get the links. What is confusing is that uploading both ways still use ..the attachment works the other doesn't..

Not a good weekend for this to happen to my site.. before it was random but now it is constant.

I just noticed some images like png use ATTACH=CONFIGand those upload correctly. I am willing to donate to someone that can help me fast.

Jonm
09-17-2016, 07:56 PM
I've seen this in the past also but not found a fix

Dave
09-17-2016, 08:17 PM
So the same image sometimes displays correctly, but sometimes it doesn't?
You'd have to dig deep into attachment.php and the attachment packages inside of vBulletin and put breakpoints to see where it's failing. I've seen this before (and actually dealt with it before) and it was some kind of permission check where it failed.

RichieBoy67
09-21-2016, 02:41 AM
So the same image sometimes displays correctly, but sometimes it doesn't?
You'd have to dig deep into attachment.php and the attachment packages inside of vBulletin and put breakpoints to see where it's failing. I've seen this before (and actually dealt with it before) and it was some kind of permission check where it failed.Thanks Dave, Can you be more specific as to permissions? I cannot find anything wrong.

RichieBoy67
11-02-2016, 11:25 PM
Can anyone assist me with this?

RichieBoy67
11-08-2016, 05:56 AM
I just realized that all my attachments using either the manager or the bbcode are showing

###

When they used to show:

###

In addition, I used to see the image in the editor after uploading and now I just see ###

MarkFL
11-08-2016, 06:20 AM
I recall some time back, at MHB we had a very similar issue with inline attached images in the WYSIWYG editor. I wrote a javascript function to fix the HTML and attached it to the "onclick" attribute of the submit buttons, but that was before I knew much about PHP.

I may be wrong, but I suspect that if you upgrade to vB 4.2.3+, you won't have this issue. :)

RichieBoy67
11-08-2016, 06:37 AM
Thanks Mark,

I actually have 4.2.3 patch 2.. Should I try one of the alpha patches?

MarkFL
11-08-2016, 06:49 AM
Thanks Mark,

I actually have 4.2.3 patch 2.. Should I try one of the alpha patches?

I was under the impression that this was an issue specific to vB 4.2.2, and that 4.2.3+ fixed it, so I doubt upgrading further will have any effect on this issue.

Does the issue only occur with the WYSIWYG editor?

RichieBoy67
11-08-2016, 06:52 AM
Yep, only the editor. Attachment manager works fine.

Thanks

MarkFL
11-08-2016, 06:55 AM
What I mean is, does this issue only happen when using the WYSIWYG editor, but not the Standard editor?

At MHB, this was the case for us, only our WYSIWYG editor users were experiencing issues similar to what you have described.

RichieBoy67
11-08-2016, 06:57 AM
I believe so but I'll have to verify that. Thanks Mark, appreciate it.

MarkFL
11-08-2016, 07:02 AM
I believe so but I'll have to verify that. Thanks Mark, appreciate it.

Okay, if it's the case that only the WYSIWYG editor is involved in the issue, I can give you the same fix I put into place at MHB, but it will involve some simple template edits (to add the javascript and to add "onclick" attributes to the submit buttons) because I don't have it made into a product.

edit: Or if you want to wait, I can see about turning it into a product with auto-template edits, etc. :)

RichieBoy67
11-08-2016, 07:06 AM
Outstanding Mark!
Template edits are no problem.

4 am here so I'll check this out a little later and will get back to you.

I can't like your post because it says I'm maxed out on you. :)

MarkFL
11-08-2016, 07:12 AM
Outstanding Mark!
Template edits are no problem.

4 am here so I'll check this out a little later and will get back to you.

I can't like your post because it says I'm maxed out on you. :)

Yeah, same time here, gonna hit the rack soon...hopefully, I will have something for you to test very soon. :)

RichieBoy67
11-08-2016, 01:33 PM
Hey Mark,

I just did some testing and it appears you are correct. Granted I only tested about 10 image posts but through out that testing only the standard editor seemed to fail.

I really have to spend more time learning how the attachment system works because both editors appear to look exactly the same using ### only the standard editor always just posts a broken link.

It would be great to have that advanced editor open every time.

I also do not understand why this has changed from

Thanks

MarkFL
11-08-2016, 02:26 PM
Hello Richie,

The issue we had was that the WYSIWYG editor failed, not the Standard editor. If you want, send the login credentials to a temporary admin account to your site via PM to me, and I will come investigate the issue and see if I can figure out a fix. :)

RichieBoy67
11-08-2016, 02:41 PM
That would be amazing Mark!

Thank you

RichieBoy67
03-06-2017, 03:57 PM
Strange that the issue disappeared for along time and now it is back with no site changes of any kind other than having to upload many images.

We were covering an event over the weekend and uploading tons of pictures at once when this issue started to happen again.

I am going to contact Cloudflare though I am not sure that is the issue. Could this be something related to nginx or something?

Thanks