• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5488: Error in subscribe

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension SubscribePlugin Normal Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

_Copied from http://twiki.org/cgi-bin/view/Plugins/SubscribePluginDev_

Using TWiki 4.1.1 and the SubscribePlugin version 13787 - 18 May 2007 (mind you, even the latest version from 20 Feb 2008 is still version 13787 in the source code and it still has the same bit of problem code). When you define the level of children topics you want to subscribe to in the WebNotify topic (e.g. MyTopic (3)) the Subscribe Plugin fails when it uses the MailerContrib isSubscribedTo function because it doesn't pass a $db variable and thus the getParent function is undefined. In the SubscribePlugin.pm file in the first else statement of _getbutton, somewhere after the #checking if the user has subscribed for that topic already comment but before the if ( $subscriber-> isSubscribedTo... you have to add

<verbatim>
require TWiki::Contrib::MailerContrib::UpData;
my $db = new TWiki::Contrib::MailerContrib::Updata( $session, $web );
</verbatim>
and then the above if statement becomes

=if ( $subscriber->isSubscribedTo($stopics, $db) ) {=

Hope that makes sense, sorry the lack of a patch file.


-- TWiki:Main.DavidPatterson - 31 Mar 2008

Thanks David, i merged your patch.

-- CrawfordCurrie - 25 May 2008

ItemTemplate
Summary Error in subscribe
ReportedBy TWiki:Main.DavidPatterson
Codebase

SVN Range TWiki-5.0.0, Sun, 09 Mar 2008, build 16496
AppliesTo Extension
Component SubscribePlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:16832
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2008-05-25 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback