Question
My
BatchUploadPlugin doesn't work, it fails getting enabled.
-At
InstalledPlugins it's noted as Disabled; Plugin Diagnostics says: TWiki::Plugins::BatchUploadPlugin::initPlugin is not defined.
-I think I followed the
instruction correctly, plus the instruction at
http://twiki.org/cgi-bin/view/Codev/TWikiVMDebianStable#Adding_plugins
because I use the TWiki VM Ware Virtual Machine.
I doubt it's a problem with the Plugin code, since it should work as-is..
Attachment:
TWiki_Configuration.mht
Environment
--
RoelofVanHemmen - 07 Oct 2008
Answer
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.
TWikiVMDebianStable is too old and not updated. Did you install the dependencies? (
CPAN:Archive::Zip
). Check also the installed twiki plugin version (
http://twiki.org/cgi-bin/view/TWiki04/TWikiPlugins#Plugin_Version_Detection
),
BatchUploadPlugin needs VERSION 1.024.
You should consider to update to TWiki 4.2.
--
EnriqueCadalso - 07 Oct 2008
Thanks
EnriqueCadalso! TWiki plugin version OK (1.1), but the
CPAN:Archive::Zip
was NOT present. Unfortunately I didn't manage to install it properly (installing using
ActiveState shell (not found) and CPAN commands (too complicated - got stuck in configuration) ), so I tried just extracting the files from the downloaded archive (
http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Archive-Zip-1.24.tar.gz
) to the TWiki folder \\twiki-vm\twiki\lib\CPAN. Then added the folder to \\twiki-vm\twiki\bin\localLib.cfg because of a Plugin error message saying "Can't locate Archive/Zip.pm in
@INC
..." but with no success. I'm currently considering a fresh install of TWiki 4.5 instead of my VMWare TWiki 4.0, since upgrade to TWiki 4.5 seems like a step too big..
--
RoelofVanHemmen - 08 Oct 2008
I'm still getting the error:
TWiki::Plugins::BatchUploadPlugin could not be loaded. Errors were:
Can't locate Archive/Zip.pm in
@INC
(
@INC
contains: /home/httpd/twiki/lib/CPAN/lib/Archive/lib/Archive, /home/httpd/twiki/lib/CPAN/lib/Archive/lib/Archive/Zip, /home/httpd/twiki/lib/CPAN/lib/, //twiki-vm/twiki/lib/CPAN/lib /home/httpd/twiki/lib/CPAN/lib//arch/ /home/httpd/twiki/lib/CPAN/lib//5.8.4/i386-linux-thread-multi/ /home/httpd/twiki/lib/CPAN/lib//5.8.4/ /home/httpd/twiki/lib/CPAN/lib// /home/httpd/twiki/lib . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /home/httpd/twiki/lib/TWiki/Plugins/BatchUploadPlugin.pm line 28.
BEGIN failed--compilation aborted at /home/httpd/twiki/lib/TWiki/Plugins/BatchUploadPlugin.pm line 28.
Compilation failed in require at (eval 33) line 1.
BEGIN failed--compilation aborted at (eval 33) line 1.
I found out that I didn't correctly list the right folder to
@INC
in the localLib.cfg. Had this corrected, but still getting an error 'Can't locate Archive/Zip.pm in
@INC
'
What could be wrong?
--
RoelofVanHemmen - 10 Oct 2008
Install
CPAN:Archive::Zip
using CPAN. In the WM write
sudo cpan. If it is the first time the configuration will ask you a lot of questions, most of them can be set as default, only focus on the downloads locations to choose the closest to you. When the initial configuration process is over you can enter cpan promt using
sudo cpan. There using install command the cpan modules can be installed, e.g
cpan> install Archive::Zip (This will trigger the installation of a lot of dependencies).
--
EnriqueCadalso - 14 Oct 2008
Yes, guess it should work like that! Unfortunately, I'm getting all kinds of error messages which I don't understand - decided to switch to the Windows version, which I will understand better!
However, Thanks a lot Enrique!
--
RoelofVanHemmen - 03 Nov 2008