TWiki中安装LDAP出现报错,如下:
[Mon Dec 15 09:40:17 2014] [error] [client 172.17.60.125] [Mon Dec 15 09:40:17 2014] view: defined(%hash) is deprecated at /var/www/twiki/lib/CPAN/lib//Locale/Maketext/Lexicon.pm line 286., referer: http://172.17.200.51/twiki/bin/configure?t=1418607599
[Mon Dec 15 09:40:17 2014] [error] [client 172.17.60.125] [Mon Dec 15 09:40:17 2014] view: \t(Maybe you should just omit the defined()?), referer: http://172.17.200.51/twiki/bin/configure?t=1418607599
[Mon Dec 15 09:40:18 2014] [error] [client 172.17.60.125] [Mon Dec 15 09:40:18 2014] view: Use of uninitialized value $tag in lc at /var/www/twiki/lib/TWiki/I18N.pm line 64., referer: http://172.17.200.51/twiki/bin/configure?t=1418607599
解决:
1、删除/var/www/twiki/lib/CPAN/lib//Locale/Maketext/Lexicon.pm 的286行中的defined
2、在/var/www/twiki/lib/TWiki/I18N.pm文件
第一种:
my $tag = shift;
if ( not $tag ) { return ” } # fix
第二种:
my $tag = shift;
$tag = lc($tag || ” ); # fix
Ubuntu上TWiki安装和使用心得 http://www.linuxidc.com/Linux/2013-10/91850.htm
Linux下TWiki的安装配置过程 http://www.linuxidc.com/Linux/2013-10/91851.htm
TWiki 的详细介绍:请点这里
TWiki 的下载地址:请点这里
本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-12/110774.htm