Fixed an error when installing LDAP in TWiki

Source: Internet
Author: User
Tags i18n

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.