天天看点

Testlink 1.8.5 安装错误的解决方法

  [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消失!

最新内容请见作者的github页:http://qaseven.github.io/