Page 1 of 1

better error reporting

Posted: 31 May 2012, 13:35
by singlanhn
If any user try to post an image with larger size or resolution than the specified one, it gives a blank screen after processing for some time and in the front side it shows the space for the image with title but no image as shown.
Image
Also, if the user again try to upload same image, it says file already exist.
So, my point is if the file does not meet the requirements, it shuld not be loaded even in the directory. And their should be a better error reporting to user, rather than this blank screen or showing some php technical error.

Re: better error reporting

Posted: 04 Jun 2012, 12:14
by Jan
Hi, check the error which was displayed there. Unfortunatelly, php fatal erros cannot be managed - e.g. if you get fatal error about memory, there is no memory to manage this error (e.g. to say to users, there is some error), see similar posts in this forum, where I have explained the problem about catching fatal errors, etc.

Jan