Linux下TWiki安裝LDAP時(shí)提示錯(cuò)誤怎么辦
Linux下TWiki安裝LDAP時(shí)提示錯(cuò)誤怎么辦
TWiki是一款多功能的wiki程序,需要運(yùn)行于Perl環(huán)境,Linux系統(tǒng)中,TWiki在安裝LDAP時(shí)提示錯(cuò)誤,遇到這種情況該如何解決呢?下面學(xué)習(xí)啦小編就給大家介紹下Linux TWiki安裝LDAP提示錯(cuò)誤的解決方法。
TWiki中安裝LDAP出現(xiàn)報(bào)錯(cuò),如下:
[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時(shí)報(bào)錯(cuò)的解決方法的介紹了,本文一共介紹了2種解決方法,先刪除文件中的defined,再對(duì)I18N.pm文件進(jìn)行處理。