Support Forum

Image Errors

LI lisalew
lisalew
Member

Ok, after updating the uploader plugin I have users who are reporting a few errors:

 

Error 999 – Unknown Server Error – this error happens if the physical size (not the file size) is over about 1500 pixels.  I have a file upload limit of 400 kb, but many of the files that are producing this error are far less than that, so it appears to be the actual size causing the problem.

 

Error 109: Image Already Exists – If they try to upload their images again after re-sizing them, they will get an “image already exists” error if they do not re-name them.  This is really annoying to someone who just spent time re-sizing, only to come back and get another error.  Is there a way to allow images of the same name if the original images failed?  maybe append a random number to the file name or something/

15 Answers

New Answer

MP Mr Papa
Mr Papa
Member

there is not much we can do if the server errors out on us…  but display server returned an unknown error…  with an image of that size, its very possible and maybe likely that you are running out of php memory…   image processing like that is very,very cpu intensive… and if the image pixel size is greater than what is allowed, we try to resize it…  you might try upping your php memory… our wiki gives you a simple way to do that…

not sure I follow the second one…  if the image failed, are you saying the file was still uploaded?  hmmm… if that was because the server crapped out with the 500 error, wonder if it left the image around…  I can try to see if we get the server error about making sure the uploaded file is removed if the server left it there…

LI lisalew
lisalew
Member

Mr Papa said

not sure I follow the second one…  if the image failed, are you saying the file was still uploaded?

This “image already exists” error seems to happen anytime someone tries to upload an image that previously failed, even for images that never appeared to upload successfully.

MP Mr Papa
Mr Papa
Member

the only way I can find the uploaded image attempt left around is on the server error (msg 999)… and thus far, I have not found a way to go back and delete it… all other known image errors appear to clean up after themselves…

LI lisalew
lisalew
Member

Ok, thanks for looking into this.  I increased my memory in the php file according to your wiki instructions.  I am still getting the 999 error on large files.  Is there a way for me to customize the error to instruct people to decrease their image size?

MP Mr Papa
Mr Papa
Member

out of curiosity, how large is large? we, for example, have a 50 kb limit… a lot you can do in that size…

I will see about outputting some text into the uploader about the allowed file sizes and see if I can tweak the error message a bit…

MP Mr Papa
Mr Papa
Member

I added some info below the uploader regarding constraints (ie size and dimensions)… you can see it here…  I also made if filterable so uses can change or add more info/messages if they want…

I also ‘may’ have figured out how to remove the file on msg 999…  not sure it will always work since with a server error I cannot guarantee where it stopped, but might work for some at least…

LI lisalew
lisalew
Member

I uploaded the nightly plugin build, and now I can’t upload any images at all (small, big, .jpg or .JPG).  They all immediately return a 999 error.  Also, in the new area that says what my upload size limitations are, it says “unlimited” for most of them even though I have limits.

 

I tried a 20 kb, 100 X 67 pixel .jpg image on your forum just now, and received the same error.

MP Mr Papa
Mr Papa
Member

oh crap. I left my debug code in there. Since I cannot make 500 errors happen on my server, I had to force it in the code…

and, well, forgot to remove it… will commit a change here in few minutes…

sorry…

MP Mr Papa
Mr Papa
Member

Lisalew (and others)… because of the debug cruft and subsequent fix, I went ahead and updated the nightly builds again so you should be able to grab a new one if you want…

LI lisalew
lisalew
Member

Thank you!! I appreciate your support on this. 

  1. The .JPG error is fixed!  
  2. I increased my memory limit in my php5.ini file and I haven’t been able to replicate the 999 error – so that one is taken care of too. 
  3. I am recieving the “Image already exists error” – but I think this is now only occuring for images that really do already exist, so it likely is working as intended (unfortunate they don’t assign a new name to the file every time so people can upload the same file more than once if necessary.)  
  4. The image upload constraint section is not displaying the correct info (it still says “unlimited” for most even though I have limits set).  Also, this section is appearing on firefox but not ie for some reason. 
MP Mr Papa
Mr Papa
Member

I will have to check IE… which IE? only one that comes close to being real browser is IE 9… the IE 10 prieviews are promising too…

are you sure thats true for users? admins dont have most of the sizes applied to them…

as to files, also remember that they are stored in monthly folders… so they would have to do it in the same month…

Earlier in the development I played with some random string at end of number for version, but it was problematic with the js library I am using… When I have a chance, I do plan to revisit…

MP Mr Papa
Mr Papa
Member

The constraints do show in IE 9…  I will see if I can dig up an older version of IE…

MP Mr Papa
Mr Papa
Member

actually, the constraints info shows for me in IE 7, IE 8 and IE 9…  make sure you clear your browser cache since there was js changes…

LI lisalew
lisalew
Member

Oh, I forgot admin priveleges are different.  I cleared the cache in ie9 and they are there now. 

I have one more image bug report that I haven’t been able to duplicate (Error 113: Unable to get image size information”).  It only happens on a mac using Safari (when one of the users with the problem tried firefox, it wasn’t an issue).  I’ll contact the user and see if she is still receiving the error, but wondered if you had heard of it.

One more question – will performance (like site load time) be affected by increasing my php memory limit? I set it at 128M.  Is this a good amount?