Linux下TWiki安装LDAP时提示错误怎么办
TWiki是一款多功能的wiki程序,需要运行于Perl环境,Linux系统中,TWiki在安装LDAP时提示错误,遇到这种情况该如何解决呢?下面学习啦小编就给大家介绍下Linux TWiki安装LDAP提示错误的解决方法。
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
上面就是Linux中TWiki安装LDAP时报错的解决方法的介绍了,本文一共介绍了2种解决方法,先删除文件中的defined,再对I18N.pm文件进行处理。