Question
Using TWiki20010803beta and current CVS alpha,
why does the
TigerSkinPlugin always have the
following error?:
Undefined subroutine &TWiki::Func::getScriptName called at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 96.
.
- TWiki version: 03 Aug 2001
- Web server: Apache/1.3.19 (Unix)
- Server OS: SunOS 5.8
--
HectorTorresJr - 30 Aug 2001
ADDENDUM : Sorry about this, I think we've figured out some
of the answers. Here's what I worked on with Hector
already today ...
(I've updated us to TWiki20010825beta, and
using latest Alpha / CVS code )
On Codev/TigerSkin, it says --
o The
TigerSkin needs the Func.pm uploaded to
http://twiki.org/cgi-bin/view/Codev/OfficialCoreSubsForPlugins on 26-July-2001
o The
TigerSkin uses the new
http://twiki.org/cgi-bin/view/Codev/TWikiTemplatingSystem
I've downloaded and installed this Func.pm, and then
I re-installed
TigerSkinPlugin. Unfortunately, then I
again had to edit the following two functions --
(* in "lib/TWiki/Func.pm" : *)
sub getScriptName
{
#LC# return &TWiki::getScriptName();
return "";
}
(* in "lib/TWiki/Plugins/TigerSkinPlugin.pm" : *)
sub dispUser # conditional on presence of
SessionPlugin
{
my $dispUser = "";
if( &TWiki::Func::topicExists( &TWiki::Func::getTwikiWebname(), "SessionPlugin" ) && $guest ) {
$dispUser = "
%MAKETEXT{"Log In"}%";
} else {
#LC# my $wikiName = &TWiki::Func::getWikiName();
my $wikiName = &TWiki::Func::getTwikiWebname();
my $mainWeb = &TWiki::Func::getMainWebname();
$dispUser = "<A class=logon href=\"" .
&TWiki::Func::getScriptUrl( $mainWeb, $wikiName, "view" ) .
"\">$wikiName"
}
return $dispUser;
}
How come the last two function definition problems, above??
LarryCarver (working with
HectorTorresJr)
Answer
.