The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Warning: set_time_limit() error message. - 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: Warning: set_time_limit() error message. (/showthread.php?tid=28) |
Warning: set_time_limit() error message. - seacaptdon - Mar 3rd, 2009 When I try to finalize in the add form section in v2.0.0-beta, I get these warnings: In the header: Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /mounted-storage/home122c/sub009/sc67680-TSDG/www/form_tools/global/code/general.php on line 1064 In red message box at bottom: Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /mounted-storage/home122c/sub009/sc67680-TSDG/www/form_tools/global/code/forms.php on line 883 { success: 1, message: "" } I am not sure if this means I need to change the default settings of (60) and (300) respectively or not. I am thinking that what I need to change is the "safe mode" and I am not sure how to do that. Any suggestions? Thanks RE: Warning: set_time_limit() error message. - Ben - Mar 3rd, 2009 Hi Seacaptdon, "Safe Mode" is a PHP setting that was originally intended to get around security concerns that arise from running sites in shared environments. But in reality, it's usually it's not used in live environments. In fact, I think they're even dropping the option in the upcoming PHP 6 release. I'll be perfectly up front: I can't vouch for the script running perfectly in Safe Mode. But to get around the current warnings, just add this line to your /global/config.php file: PHP Code: $g_default_error_reporting = 1; I wouldn't worry about this particular problem. The code is simply trying to increase the duration of the maximum execution time for the request; it's done in a few places around the script for (potentially) very long queries. Hope this helps! RE: Warning: set_time_limit() error message. - seacaptdon - Mar 4th, 2009 The change worked and I no longer get that error message, thanks! RE: Warning: set_time_limit() error message. - Ben - Mar 4th, 2009 Excellent! |