SID-02418: DBCacheContrib installation
| Status: |
Answered |
TWiki version: |
6.1.0 |
Perl version: |
5.022004 (linux) |
| Category: |
DBCacheContrib |
Server OS: |
Linux 3.13.0-042stab134.8 (x86_64-linux) |
Last update: |
6 years ago |
I tried to install
DBCacheContrib. First by
configure, then from the command-line and manually editing LocalSite.cfg ($TWiki::cfg{Plugins}{DBCacheContrib}{Enabled} = 1;). However,
DBCacheContrib is not shown in de Plugin list of
configure.
The Twiki log says: "
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /var/www/mytwiki.com/twiki/lib/TWiki/Contrib/DBCacheContrib/Array.pm line 266.
Compilation failed in require at /var/www/mytwiki.com/twiki/lib/TWiki/Contrib/DBCacheContrib/Map.pm line 23.
How to solve this?
--
Emiel Van Riel - 2019-10-24
Discussion and Answer
Now my Warn Log says:
TWiki::Plugins::DBCacheContrib could not be loaded. Errors were: Can't locate TWiki/Plugins/DBCacheContrib.pm in @INC
(you may need to install the TWiki::Plugins::DBCacheContrib module) (@INC
contains:...........
BEGIN failed--compilation aborted at (eval 25) line 1.
--
Emiel Van Riel - 2019-10-24
The first problem can be eliminated by just omitting the
defined() as suggested by the error message. This construct is fatal since Perl 5.22, and after a glance at the code I'm pretty sure that this is what the author intended.
As for the second problem, you should just check whether the plugin's files are available at the expected place under the
lib directory of your TWiki installation, and if they are, whether they are readable by the web server's user id.
--
Harald Jörg - 2019-10-25
Thank you, Harald. I solved these problems with your advise. All this to to try to install
TopicClassificationAddOn extention, which still gives me problems, see SID-02417.
--
Emiel Van Riel - 2019-10-26
--
Emiel Van Riel - 2019-10-26
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.