TestLink所需環境為PHP+MYSQL (支持MS
SQL等),系統推薦使用PHP5.2,安裝成功以后,如果運行時出錯,主要兩種錯:
[1].HP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in XXX
解決該錯誤的方法是找到錯誤的PHP文件,打開
1、在php文件頭加上:date_default_timezone_set("PRC");
2、更改php.ini種date.timezone的屬性值為PRC,同時去掉前面的注釋就可以了。
[2].Deprecated: Function ereg_replace() is deprecated in D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\testlink\lib\functions\lang_api.php on line 173
解決該錯誤的方法是打開PHP.INI文件,將
;extension=php_mbstring.dll
改為
extension=php_mbstring.dll
以及將
;mbstring.func_overload = 0
修改為:
mbstring.func_overload = 7
修改之后,系統成功運行
進去之后,還會發現一個WARNING:
There are security warnings for your consideration. To disable any reference to these checkings, set $tlCfg->config_check_warning_mode = 'SILENT';
這需要打開TestLink下config.inc.php文件,將
$tlCfg->config_check_warning_mode = 'FILE';
改為
$tlCfg->config_check_warning_mode = 'SILENT';
再運行,WARNING消失!