Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x04
TWiki plugins: SpreadSheetPlugin, CommentPlugin, EditTablePlugin, InterwikiPlugin, PreferencesPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, WysiwygPlugin.
Server OS: Linux Debian stable, v3.1 (released December 20th, 2005)
Web server: ?
Perl version: Perl 5.8.4
Client OS: MS Windows XP
Web Browser: IE7
Categories: Plugins

-- RoelofVanHemmen - 07 Oct 2008

Answer

ALERT! 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

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmht TWiki_Configuration.mht r1 manage 180.2 K 2008-10-07 - 12:24 UnknownUser  
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2008-11-03 - RoelofVanHemmen
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.