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
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/diannaorumen/)2、在/var/www/twiki/lib/TWiki/I18N.pm文件
第一种:
my $tag = shift;
if ( not $tag ) { return ‘’ } # fix
第二种:
my $tag = shift;
$tag = lc($tag || ‘’ ); # fix
上面就是Linux中TWiki安装LDAP时报错的解决方法的介绍了,本文一共介绍了2种解决方法,先删除文件中的defined,再对I18N.pm文件进行处理。
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/diannaorumen/)