Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x00
TWiki plugins: CommentPlugin, EditTablePlugin, InterwikiPlugin,PreferencesPlugin,SesionPlugin,SmiliesPlugin,SlideShowPlugin,spreadsheetPlugin, TablePlugin
Server OS: ubuntu 5.10
Web server: Apache/2.0.54
Perl version: 5.8.7
Client OS: ubuntu 5.10
Web Browser: Firefox/1.0.7 (Ubuntu package 1.0.7)
Categories: Installation, Authentication, Security, Authorisation, Fatal error, Plugins

-- ScottHerman - 18 Feb 2006

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.

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

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-02-22 - PeterThoeny
 
  • 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.