Question
I've launched the installer script from command line and I get the following output:
...
An existing /var/www/twiki/TemplateToolkitPlugin.tgz exists; would you like me to use it? [y/n] y
Got a local archive from /var/www/twiki/TemplateToolkitPlugin.tgz
Archive::Tar is not installed;
trying tar on the command-line
data/
data/TWiki/
data/TWiki/VarTEMPLATETOOLKIT.txt
data/TWiki/TemplateToolkitPlugin.txt
lib/
lib/TWiki/
lib/TWiki/Plugins/
lib/TWiki/Plugins/TemplateToolkitPlugin.pm
pub/
pub/TWiki/
pub/TWiki/TemplateToolkitPlugin/
pub/TWiki/TemplateToolkitPlugin/demowrapper.tt2
TemplateToolkitPlugin_installer
TemplateToolkitPlugin.zip
Archive unpacked
Install data/TWiki/VarTEMPLATETOOLKIT.txt, permissions 0764
Install lib/TWiki/Plugins/TemplateToolkitPlugin.pm, permissions 0764
Install pub/TWiki/TemplateToolkitPlugin/demowrapper.tt2, permissions 0755
Install data/TWiki/TemplateToolkitPlugin.txt, permissions 0764
Can't locate object method "findUser" via package "TWiki::Users" at ./TemplateToolkitPlugin_installer line 665, <STDIN> line 1.
That line is the following:
if( $twiki ) { my $user =$twiki->{users}->findUser($TWiki::cfg{AdminUserWikiName}, $TWiki::cfg{AdminUserWikiName});
All files seems to be unpacked fine and I see the plugin in the Configure but when I go to the 'Find More Extensions' page it appear as "not installed".
Someone can give me some suggestions?
Environment
--
DanieleBarzotti - 26 Sep 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.
Weeeeell... I must admit that I did not care too much for "my" plugin,
being pretty sure that it is close to useless in its current state,
but...
Messages about the same problem came around recently in
CantLocateObjectMethodfindUser. The reason is, that apparently in
TWiki 4.2 some interface has been removed which is being used by the
installers.
The bad news is that the installer is a piece of autogenerated code,
and I am not sure whether it is possible to create that code in a
fashion to work with TWiki versions 4.0 and 4.2. Currently, I don't
have a working TWiki development environment, so my chances to fix it
are rather limited...
But I think you can simply complete the installation manually.
Apparently the perl module has already been installed by the script
(that's why you are seeing it in
configure
), but the documentation
files are missing:
-
TWiki.TemplateTookitPlugin
- the plugin topic (which probably is looked for by the extension finder)
-
TWiki.VarTEMPLATETOOLKIT
- the documentation for the variable supported by the plugin
-
.../pub/TWiki/TemplateToolkitPlugin/demowrapper.tt2
- the demo template
Simply extract them from the
.tgz
file and you should be done.
I wonder whether this has been taken into account in recent patch
releases, so that
findUser
will be somehow emulated?
--
HaraldJoerg - 26 Sep 2008
Seems to be answered, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.
--
PeterThoeny - 07 Nov 2008