Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Image Errors
Avatar
lisalew
Member
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2011 - 4:22 pm

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/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2011 - 12:08 am

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...

Avatar
lisalew
Member
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2011 - 12:50 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2011 - 1:40 pm

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...

Avatar
lisalew
Member
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2011 - 3:19 pm

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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2011 - 3:44 pm

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...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2011 - 6:07 pm

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...

Avatar
lisalew
Member
Free Members
sp_UserOfflineSmall Offline
Oct 8, 2011 - 12:39 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 8, 2011 - 1:14 pm

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...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 8, 2011 - 1:21 pm

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...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10120
Posts: 79607