The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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 Wink


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

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.

Are you using the API, btw? Or just posting it to process.php?

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

Warning: Cannot modify header information - headers already sent by (output started at /path/to/domain/and/file/process.php:249) in /path/to/domain/and/file/uploadsystem/process.php on line 286

Thank you for your help, I really appreciate it! Smile)


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.

Are you using the API, btw? Or just posting it to process.php?

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

Warning: Cannot modify header information - headers already sent by (output started at /path/to/domain/and/file/process.php:249) in /path/to/domain/and/file/uploadsystem/process.php on line 286

Thank you for your help, I really appreciate it! Smile)

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