Fixed an error when installing LDAP in TWiki
When LDAP is installed in TWiki, the following error occurs:
[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 shoshould 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
Solution:
1. Delete defined from row 286 of/var/www/twiki/lib/CPAN/lib // Locale/Maketext/Lexicon. pm.
2. In the/var/www/twiki/lib/TWiki/I18N. pm File
First:
My $ tag = shift;
If (not $ tag) {return ''} # fix
Second:
My $ tag = shift;
$ Tag = lc ($ tag | ''); # fix
Install and use TWiki on Ubuntu
Install and configure TWiki in Linux
TWiki details: click here
TWiki: click here
This article permanently updates the link address: