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



Form Tools
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! Smile