Question
New installation:
Attempting to use the login link gives me an error page that says:
Undefined subroutine &TWiki::getViewUrl called at /usr/lib/cgi-bin/twiki/logon line 47.
Registration login worked ok. However, after logging out, it failed when I tried to login again.
I checked lib/TWiki.pm and there is no reference to getViewUrl().
It is, however, defined in lib/TWiki/Func.pm.
How can I fix this?
Environment
--
ScottHerman - 18 Feb 2006
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.
Ok... So I changed the call on line 47 to
TWiki::Func::getViewUrl(), and now I get:
Can't call method "redirectCgiQueryHandler" on an undefined value at /var/lib/twiki//TWiki.pm line 716.
--
ScottHerman - 18 Feb 2006
I just checked my bin/logon from 4.0.x, and it doesn not contain a call to getViewUrl - so i'm wondering if you don't have an older version of that script for some reason
sub main
{
my $user = $query->remote_user();
my $session = new TWiki( $user, $query );
my $url = $session->getScriptUrl(
0, 'view', $session->{webName}, $session->{topicName} );
-----> this is line 47 for me <---------
$url .= ( '?' . $query->query_string() ) if $query->query_string();
$session->redirect( $url );
}
--
SvenDowideit - 19 Feb 2006
Thanks. Apaarently I did have an older version of logon. ...leftover from the previous installation.
--
ScottHerman - 20 Feb 2006