Support Forum

image doesn't insert with internet explorer

PE Petra
Petra
Member

I use the Plugin File Uploader with Plupload (1.2.6), with SP Version: 5.1.4.

When uploading in Google Chrome I can upload images and place them in the topic. Using Internet Explorer I get the response from users, they can upload an image, but cannot place them into the topic.

Tested it on an other computer and with the account of the user. And have the same problem. Thought it had something to do with permissions, but cannot find what can cause this problem. 

Where can I look to solve this problem (if this is something I’m doing wrong)?

41 Answers

New Answer

MP Mr Papa
Mr Papa
Member

cannot place them in post??  what do you mean by this?  users dont place images in posts with the uploader – its automatic… are  you saying this is not occurring for you?

link to site would help…

PE Petra
Petra
Member

site is www.capelle-fotografeert.nl/forum-4

I know the system should place them, and that’s the problem. It doesn’t do that, it does however upload the images to the server, because if you use the button View Existing Image Uploads, it shows the uploaded image(s). 

If you then try to put the image in the post (by clicking on the images shown) it doesn’t work.

MP Mr Papa
Mr Papa
Member

something on your site is forcing IE to load in IE 7 standards mode… are you doing this on purpose?

<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ />

this is not very friendly…  IE 7 is quite outdated…  perhaps your wp theme is outdated?

either way, we only officially support IE 8 and 9…  I cannot actually try an upload, but guessing that is the issue…

PE Petra
Petra
Member

I wasn’t aware of the IE7 reference, so I try to fix that. Used a general theme of WP (twentyeleven), but didn’t fix the problem. In the meanwhile made a new theme. After I checked that, there was no reference for IE7 Emulate anymore. So that’s fixed as far as I’m concerned.

Back to the problem again, because it still isn’t resolved :( .

Found this when I looked at the html in editor

IE upload:

<img src=”http://www.capelle-fotografeert.nl/wp-content/sp-resources/forum-image-uploads/jokem/2012/11/padejapanse-053.JPG” alt=”padejapanse-053.JPG” width=”1″ height=”1″ /></p>

 

Chrome upload:

<p><img src=”http://www.capelle-fotografeert.nl/wp-content/sp-resources/forum-image-uploads/jokem/2012/11/padejapanse-051.JPG” alt=”padejapanse-051.JPG” width=”600″ height=”600″ /></p>

 

The last one is correct, because that is what I put in the plugin for Plupload. But where the settings for IE come from is a mystery to me. Please advise on how to proceed from here.

I am looking in to the CSS of the theme, although I for the live of me cann’t remember to put that anywhere.

YS Yellow Swordfish
Yellow Swordfish
Member

Steve (Mr Papa) is going to be absent for a couple of days so I need to pick this up. A couple of things here. Are you saying those html fragments are from the post when it is displayed in the forum? I am assuming this is the case.

They also point to different image files. So when you look at it in IE and interrogate the SAME image does it still turn the width and height to a single pixel size?

PE Petra
Petra
Member

Could this have something to do with a problem we solved earlier? 

See:

https://simple-press.com/support-forum/sp5-plugin-topics/blog-post-linking-doesnot-show-images/page-2/

number 20 for edited file

PE Petra
Petra
Member

Did a quick test because of your question, same result

 

<img title=”padejapanse-051.JPG” src=”http://www.capelle-fotografeert.nl/wp-content/sp-resources/forum-image-uploads/jokem/2012/11/padejapanse-051.JPG” alt=”padejapanse-051.JPG” width=”1″ height=”1″ /></

YS Yellow Swordfish
Yellow Swordfish
Member

Petra said
Could this have something to do with a problem we solved earlier? 

See:

https://simple-press.com/support-forum/sp5-plugin-topics/blog-post-linking-doesnot-show-images/page-2/

number 20 for edited file

I don’t see any obvious connection. I WILL say that there is some sort of local problem your end for that function we removed not to work and we can currently see no way around leaving the code as it is. So we have to leave that alone but at the moment that is a different issue.

Petra said
Did a quick test because of your question, same result

<img title=”padejapanse-051.JPG” src=”http://www.capelle-fotografeert.nl/wp-content/sp-resources/forum-image-uploads/jokem/2012/11/padejapanse-051.JPG” alt=”padejapanse-051.JPG” width=”1″ height=”1″ /></

And again – this html is from the display of the page correct?

And if so then we could, perhaps, surmise from that that something active on your site – and that would almost certainly be some of the javascript – is manipulating the height and width of the image tag when IE is being used. The original html source code is going to be browser independent. If you look at the raw post content in the database I am betting that the width and height are set as they should be and were originally set when the page was being loaded correctly. Which suggests they are being manipulated in some way after the load and before the display.

Are you aware of any plugins that might be having some sort of effect along these lines? You do have quite a lot of scripts loading that I am not familiar with.

PE Petra
Petra
Member

That would suggest that the same problem will occur when you use a different browser (if it was a plugin).

I will look into it further but in the doc we changed there is a rule that does something with a check and set width and height to “1”.

I’m a photographer and not a website builder of any sort. So I do with a bit of common sense :) and try to solve the problem that way. As said, I looked into the changed .php and that is the only place I can find the width and height being actually set to 1. In all the other plugins .php and css I have not found anything of this sort.

YS Yellow Swordfish
Yellow Swordfish
Member

Petra said
That would suggest that the same problem will occur when you use a different browser (if it was a plugin).

Well bear in mind this was just a suggestion. The evidence we have so far suggests third party interference of some kind. My suggestion really was that something may be doing something very explicitly for IE. This is not as far fetched as it sounds because of the very non-standard nature of IE. I have been looking at a users site just earlier today where if IE is detected 4 extra CSS files are loaded and at least one extra javascript file. These are attempts to deal with the various inconsistencies and problems with IE. And work-arounds of this nature can have unexpected consequences.

I will look into it further but in the doc we changed there is a rule that does something with a check and set width and height to “1”.

Not in that code there isn’t. Sorry. But we don’t do that anywhere.

I’m a photographer and not a website builder of any sort. So I do with a bit of common sense :) and try to solve the problem that way. As said, I looked into the changed .php and that is the only place I can find the width and height being actually set to 1. In all the other plugins .php and css I have not found anything of this sort.

Ah.. are you referring to the statements like $width[1] by any chance? That is array element. $width[1] should actually hold the value of the image width.

As I say – it is just a suggestion and at the moment the only one I have. And if it were this, it would be a javascript file and I did notice several javascript files pertaining to images and/or graphic manipulation of some sort.

I do not haqve access to IE as a Mac user but I will ask Steve to take a look at your site when he gets back from his trip so he can see exactly what is loaded when IE is the agent browser.

PE Petra
Petra
Member

Hi Yellow Swordfish (the image looks like a bleu marlin btw laugh) thanks for your response. It make me look closer to the problem again. 

Got a bit more confused, but hopefully closer to the solution.

Okay starting to loose sight of what is going on but I try to explain and hope this is clear to you guys so the solution will be closequestion

First the problem doesn’t seem to be in the plupload. Because if I upload with IE it works fine. When I use the View Existing Uploads is when it starts to go wrong with width and height being set to 1 px. But this is a diferent plugin of SP. As far as I understand it now this is Upload Viewer, where nothing can be set for. This is done by the called php or js or whatever else is behind there.

Tried to de-activate several plugins (SP and WP) but didn’t resolve the issue.

Now I told the user to try a new upload, because that did work fine on my computer. Unfortunately now she gets a message that there is a system error. I tried the same on an other computer here and I get the message This methode is not supported for this object. Does this have something to do with installing Silverlight I wonder.

Because I get the feeling I’m jumping from one hole into the next I decided to drop a question here again, because I’m looking crosseyed confusedat my computer not knowing where to start first :) .

YS Yellow Swordfish
Yellow Swordfish
Member

If the message started to appear after you installed SilverLight then yes – almost certainly connected – but that is a local issue. Your other user wont be using your copy of SilverLight. And ‘System Error’ is a bit vague.

SilverLight is only going to be active when uploading and we know uploading isn’t an issue.

Tell me more about the Viewer. Are you now saying that the width/problem-with-post-edit-buttoneight are inly set to ‘1’ when using the viewer to add an existing image to a post? And only using IE?

PE Petra
Petra
Member

Silverlight = other problem. Deal with that later.

For now the width/problem-with-post-edit-buttoneight issue. Yes it only happens when using the viewer to add existing images, and yes only when using IE. 

YS Yellow Swordfish
Yellow Swordfish
Member

Curiouser and curiouser…
I will see if we can replcate that here.

Steve? Brandon? Any chance one of you guys could try this using IE?