Support Forum

problems with image attachements and the plupload plugin

OV ovizii
ovizii
Member

I reply to a topic, write my text, upload an image, after uplaoding the image is automatically inserted into my post and I can see it. I click the post button and then when I review my reply, it still contains my text but no longer has my image, it simply says: [Image Can Not Be Found] 

 

check here: http://screencast.com/t/CcL6dweY

 

I then edit my post and I can again see the image in the editor the html code is this: 

<img src=”http://www.die-kellerkinder.eu/wp-content/uploads/admin/2012/02/2012-02-23_1145.png” alt=”2012-02-23_1145.png” />

 

But the image link is working !?

15 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

So is this on ALL images? And they never display?

I am a bit confused by the screencast shot because I don’t see any image yet you seem to being saying that there is one!

Can you expand on this a bit?

OV ovizii
ovizii
Member

sorry for the confusion, I uploaded the wrong screen shot.

 

let me rather try and describe it again:

 

I create a new topic, upload a picture with the upload plugin, and it gets automatically inserted, looks lke this: http://screencast.com/t/problem-with-post-edit-buttondewAhsc0m

 

Then I click on submit and the resulting topic looks liek this: http://screencast.com/t/dwwgHX1N

 

I then edit this topic and it looks like this: http://screencast.com/t/qkExAhzCv

 

And the HTML looks like this. weird. http://screencast.com/t/ghOwi7KENuFR

YS Yellow Swordfish
Yellow Swordfish
Member

Can you do something for me?

Go to the forum error log and clear it out.

Make a post with an uploaded image.

Check the error log.

Anything reported?

OV ovizii
ovizii
Member

cleaned the logs, posted an image, checked the error logs and there aren’t any 🙁 

still the same problem: http://screencast.com/t/HmyekmVO

YS Yellow Swordfish
Yellow Swordfish
Member

I can explain what is happening but I can not, at the moment, explain why. So – explanation….

To use the image enlargement popup feature we need to know the width of an image. If the width attribute has been included in the image tag then all is well. If it has NOT been specified in the tag then we need to try and find it. When the post saves it will try and access the image using the php call getImageSize() which returns information on an image file. if this is successful, we add the width attribute and save the post. If this fails then we save the post without it.

When the post is displayed it will again look for the width and, if not present, make another call using getImageSize(). If it fails then you end up with the message you are seeing.

So the question is – why is the call to getimagesize() failing on your system? You may know this so I will let you respond at this point!

OV ovizii
ovizii
Member

Honestly, I don’t know why that call fails. I checked the server error logs and can’t find anything.

here is my php.info though, maybe you can spot something problematic? http://zice.ro/info.php

 

Any other checks I can do? Would you want to have admin access to check it out?

MP Mr Papa
Mr Papa
Member

weird that it would fail… standard php command and does not require GD or any other library?  can your host provide any feedback?

OV ovizii
ovizii
Member

nope, its my own root server. and as I said: I was watching the error logs with “tail -f error.log” while uploading the picture and didn’t see any error 🙁

OV ovizii
ovizii
Member

any other ideas guys? this is a bit annoying 🙁 

its mostly happening when I uplaod .png files, shall I try jpg? my favorite screen shot tool does png by default 🙁

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry – it looks like this thjead feel between the cracks in the floorboards!

So it doesn’t happen ALL the time? I had the impression it was constant. Not that that makes it any less puzzling. In fact – it probably makes it more puzzling.

hang on – one thing worth looking into. Do your image file names have spaces in them?

OV ovizii
ovizii
Member

well, I don’t often upload images, so I tried again this is a .png and the problem persists. no spaces in the filename: http://screencast.com/t/xfHDZMDwI

 

the same test with a .jpg http://screencast.com/t/Px6aEIig

 

both didn’t work. I haven’t tried any other format though… http://screencast.com/t/61DDA8YOUHO5

YS Yellow Swordfish
Yellow Swordfish
Member

Are you up for some core code edits? This is probably going to be the only way we can trace this and even then I am unsure whether we will. But it is probably the next thing to try.

OV ovizii
ovizii
Member

sure. I can do that. you could also get admin access if that would be easier?

MP Mr Papa
Mr Papa
Member

will let Andy get back with the code edits…   admin might not help because we still cannot see the data… and in the wp plugin editor, we can only get at a few of our files…  ftp access is the best but hardest to come by wink