Tags:
create new tag
, view all tags

Bug: Registration Error Reports Undefined Subroutine

On attempting to register myself as a user at twiki.org, I was presented with the following error:

Undefined subroutine &TWiki::registrationHandler called at /home/groups/t/tw/twiki/cgi-bin/register line 195

This also occurs if I attempt to register on my fresh install locally. I'm not up to speed on PERL, but I can see that the subroutine seems to be defined in Plugins.pm, so I've no idea where else to look.

Test case

twiki.org User Registration and local beta 29/12/02

Environment

TWiki version: latest beta
TWiki plugins: default
Server OS: debian 3
Web server: apache
Perl version: latest (I think)
Client OS: windows 2000
Web Browser: IE5

-- MichaelKearns - 02 Jan 2003

Follow up

Fix record

Thanks for reporting this - now fixed on TWiki.org and TWikiAlphaRelease, was introduced recently. I just re-registered on TWiki.org to test this, so you should be able to re-register OK - I deleted your previous partial registration since there isn't much to re-type in your home page (MichaelKearns).

To update your local beta, just download the latest register from CVSget:bin/register.

-- RichardDonkin - 02 Jan 2003

Thanks for updating TWiki.org. Here is the patch:

*** register.ori        Sun Dec 29 02:07:16 2002
--- register    Thu Jan  2 06:10:25 2003
***************
*** 26,31 ****
--- 26,32 ----
  use CGI;
  use TWiki;
  use TWiki::Net;
+ use TWiki::Plugins;

  if( $TWiki::OS eq "WINDOWS" ) {
      require MIME::Base64;
***************
*** 166,172 ****

      my $senderr = &TWiki::Net::sendEmail( $text );

!     # create user topic if not exist
      if( ! &TWiki::Store::topicExists( $TWiki::mainWebname, $wikiName ) ) {
          my $meta = "";
          my $row = "";
--- 167,173 ----

      my $senderr = &TWiki::Net::sendEmail( $text );

!     # create user topic if it does not exist
      if( ! &TWiki::Store::topicExists( $TWiki::mainWebname, $wikiName ) ) {
          my $meta = "";
          my $row = "";
***************
*** 192,198 ****
      }

      # Plugin callback to set cookies. Contrib by SvenDowideit
!     TWiki::registrationHandler( $webName, $wikiName, $remoteUser );

      # add user to TWikiUsers topic
      my $userTopic = addUserToTWikiUsersTopic( $wikiName, $remoteUser );
--- 193,199 ----
      }

      # Plugin callback to set cookies. Contrib by SvenDowideit
!     &TWiki::Plugins::registrationHandler( $webName, $wikiName, $remoteUser );

      # add user to TWikiUsers topic
      my $userTopic = addUserToTWikiUsersTopic( $wikiName, $remoteUser );

-- PeterThoeny - 02 Jan 2003

Topic revision: r3 - 2003-01-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.