better error reporting

Phoca Gallery - image gallery extension
singlanhn
Phoca Member
Phoca Member
Posts: 11
Joined: 11 May 2012, 22:50

better error reporting

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: better error reporting

Post 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
If you find Phoca extensions useful, please support the project
Post Reply