The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Error msg on upload error? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Error msg on upload error? (/showthread.php?tid=132) |
Error msg on upload error? - zoltandragon - Apr 29th, 2009 Hi, I am using a form on a website where students can submit their papers by uploading them. I have set an upload size limit, and it works just fine - the only problem comes when the file size is exceeded. At that moment a php error message comes in instead of a humanly readable one... Is there any way to configure error messages like this one? Thank you very much for any solution in advance RE: Error msg on upload error? - Ben - Apr 29th, 2009 Quote:At that moment a php error message comes in instead of a humanly readable one... Blurgh! That shouldn't happen. Check your error_reporting levels. If you're using the API, it'll be using the default error reporting level found in library.php ($g_default_error_reporting = 2047). You'll want to lower that value to 1 to only display true errors. Just add that line to your config.php file (also found in your /global folder) with the value of 1. Are you using the API, btw? Or just posting it to process.php? If that's the source of the problem, changing that value should at least hide the error. But now we need to capture it... and there I'm drawing a blank. When a submission goes through there are a LOT of things going on, many of which can go wrong. Unless the problem is a show stopper (can't find the form, DB down etc), Form Tools blithely bypasses the minor problems and puts through the submission. Right now, there's no way to capture these errors. Give me a few more details about your case (including the error message that you're seeing) and I'll see if I can come up with a solution! - Ben RE: Error msg on upload error? - zoltandragon - Apr 29th, 2009 Quote:Check your error_reporting levels. If you're using the API, it'll be using the default error reporting level found in library.php ($g_default_error_reporting = 2047). You'll want to lower that value to 1 to only display true errors. Just add that line to your config.php file (also found in your /global folder) with the value of 1. No, I am using the process.php. Should I change the values in the config file anyway? Here is the error message: Quote:Notice: Undefined offset: 2 in /path/to/domain/and/file/process.php on line 249 Thank you for your help, I really appreciate it! ) RE: Error msg on upload error? - zoltandragon - May 1st, 2009 I tried to set the number to 1 in both of the suggested files, but now there is simply no error message upon exceeding the file limit - the user is forwarded to the thank you page without any notification on the unsuccessful upload... What can be the problem? RE: Error msg on upload error? - stech - Aug 29th, 2009 (Apr 29th, 2009, 9:43 PM)zoltandragon Wrote:Quote:Check your error_reporting levels. If you're using the API, it'll be using the default error reporting level found in library.php ($g_default_error_reporting = 2047). You'll want to lower that value to 1 to only display true errors. Just add that line to your config.php file (also found in your /global folder) with the value of 1. I'm having this same problem with a crapdaddy server. I tested fine using MAMP but soon as I upped to the server I get that on file uploads. HELP HELP |