• 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.

Item4326: SubscribePlugin is throwing an error when you try to subscribe to a topic.

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

I've just installed the SubscribePlugin and am running into a small issue. I am getting the following error every time I try to subscribe to a topic:

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.

fileparse(): need a valid pathname

Here's the error itself from the warn200706.txt file:

| 28 Jun 2007 - 13:07 | fileparse(): need a valid pathname at /opt/www/wiki/lib/TWiki/Store/RcsFile.pm line 112
 at /usr/local/lib/perl5/5.8.7/File/Basename.pm line 175
        File::Basename::fileparse('undef') called at /usr/local/lib/perl5/5.8.7/File/Basename.pm line 252
        File::Basename::dirname('undef') called at /opt/www/wiki/lib/TWiki/Store/RcsFile.pm line 112
        TWiki::Store::RcsFile::_mkPathTo('undef') called at /opt/www/wiki/lib/TWiki/Store/RcsFile.pm line 720
        TWiki::Store::RcsFile::_saveFile('TWiki::Store::RcsLite=HASH(0x3030f8c8)', 'undef', 'RichardHurt\x{a}1183050427') called at /opt/www/wiki/lib/TWiki/Store/RcsFile.pm line 609
        TWiki::Store::RcsFile::setLock('TWiki::Store::RcsLite=HASH(0x3030f8c8)', 1, 'RichardHurt') called at /opt/www/wiki/lib/TWiki/Store.pm line 1189
        TWiki::Store::lockTopic('TWiki::Store=HASH(0x300a1d70)', 'TWiki::User=HASH(0x309dfd44)', 'Sandbox', 'undef') called at /opt/www/wiki/lib/TWiki/Store.pm line 1011
        TWiki::Store::_noHandlersSave('TWiki::Store=HASH(0x300a1d70)', 'TWiki::User=HASH(0x309dfd44)', 'Sandbox', 'undef', '%MAKETEXT{"This is a subscription service to be automatically...', 'TWiki::Meta=HASH(0x30b7ab84)', 'HASH(0x30b7ab0c)') called at /opt/www/wiki/lib/TWiki/Store.pm line 806
        TWiki::Store::__ANON__() called at /opt/www/wiki/lib/CPAN/lib///Error.pm line 387
        eval {...} called at /opt/www/wiki/lib/CPAN/lib///Error.pm line 379
        Error::subs::try('CODE(0x30b7ab6c)', 'HASH(0x30b7ac50)') called at /opt/www/wiki/lib/TWiki/Store.pm line 809
        TWiki::Store::saveTopic('TWiki::Store=HASH(0x300a1d70)', 'TWiki::User=HASH(0x309dfd44)', 'Sandbox', 'undef', '%MAKETEXT{"This is a subscription service to be automatically...', 'undef', 'HASH(0x30b7ab0c)') called at /opt/www/wiki/lib/TWiki/Contrib/MailerContrib/WebNotify.pm line 75
        TWiki::Contrib::MailerContrib::WebNotify::writeWebNotify('TWiki::Contrib::MailerContrib::WebNotify=HASH(0x30b7a4a0)') called at /opt/www/wiki/lib/TWiki/Plugins/SubscribePlugin.pm line 166
        TWiki::Plugins::SubscribePlugin::_subscribe('Sandbox', 'WebPreferences', 'RichardHurt', 'RichardHurt', 0) called at /opt/www/wiki/lib/TWiki/Plugins/SubscribePlugin.pm line 56
        TWiki::Plugins::SubscribePlugin::_SUBSCRIBE('TWiki=HASH(0x3001d8c8)', 'TWiki::Attrs=HASH(0x30b5b20c)', 'WebPreferences', 'Sandbox') called at /opt/www/wiki/lib/TWiki/Func.pm line 1722
        TWiki::Func::__ANON__('TWiki=HASH(0x3001d8c8)', 'TWiki::Attrs=HASH(0x30b5b20c)', 'WebPreferences', 'Sandbox') called at /opt/www/wiki/lib/TWiki.pm line 2245
        TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x3001d8c8)', 'SUBSCRIBE', 'undef', 'WebPreferences', 'Sandbox') called at /opt/www/wiki/lib/TWiki.pm line 2164
        TWiki::_processTags('TWiki=HASH(0x3001d8c8)', '---+!! <nop>%WEB% Web Preferences\x{a}\x{a}The following settings are...', 'CODE(0x305da330)', 16, 'WebPreferences', 'Sandbox') called at /opt/www/wiki/lib/TWiki.pm line 2090
        TWiki::_expandAllTags('TWiki=HASH(0x3001d8c8)', 'SCALAR(0x305e9968)', 'WebPreferences', 'Sandbox') called at /opt/www/wiki/lib/TWiki.pm line 2433
        TWiki::handleCommonTags('TWiki=HASH(0x3001d8c8)', '---+!! <nop>%WEB% Web Preferences\x{a}\x{a}The following settings are...', 'Sandbox', 'WebPreferences') called at /opt/www/wiki/lib/TWiki/UI/View.pm line 320
        TWiki::UI::View::_prepare('---+!! <nop>%WEB% Web Preferences\x{a}\x{a}The following settings are...', 'TWiki=HASH(0x3001d8c8)', 'Sandbox', 'WebPreferences', 'TWiki::Meta=HASH(0x30a4b1e8)', 0) called at /opt/www/wiki/lib/TWiki/UI/View.pm line 304
        TWiki::UI::View::view('TWiki=HASH(0x3001d8c8)') called at /opt/www/wiki/lib/TWiki/UI.pm line 97
        TWiki::UI::__ANON__() called at /opt/www/wiki/lib/CPAN/lib///Error.pm line 387
        eval {...} called at /opt/www/wiki/lib/CPAN/lib///Error.pm line 379
        Error::subs::try('CODE(0x30a43a94)', 'HASH(0x30a7d854)') called at /opt/www/wiki/lib/TWiki/UI.pm line 146
        TWiki::UI::run('CODE(0x3006dbb4)') called

-- RichardHurt - 29 Jun 2007

Hmm, very wierd. Please check your setting of NotifyTopicName in configure. Might be an idea to paste a (filtered) copy of your LocalSite.cfg here.

CC

Our WebNotify process seems to be working fine, but I'm not sure what you mean by checking the topic in configure. Can you clarify?

Here is our current LocalSite.cfg.

$TWiki::cfg{DataDir} = '/opt/www/wiki/data';
$TWiki::cfg{Password} = 'blahblahblah';
$TWiki::cfg{Site}{Lang} = 'en';
$TWiki::cfg{LogFileName} = '/opt/www/wiki/log20 Jul 2007.txt';
$TWiki::cfg{ConfigurationLogName} = '/opt/www/wiki/configurationlog.txt';
$TWiki::cfg{LocalesDir} = '/opt/www/wiki/locale';
$TWiki::cfg{WarningFileName} = '/opt/www/wiki//warn20 Jul 2007.txt';
$TWiki::cfg{DebugFileName} = '/opt/www/wiki/debug.txt';
$TWiki::cfg{ScriptUrlPath} = '/bin';
$TWiki::cfg{Site}{FullLang} = 'en-us';
$TWiki::cfg{Site}{CharSet} = 'iso-8859-15';
$TWiki::cfg{Site}{Locale} = 'C';
$TWiki::cfg{PubUrlPath} = '/pub';
$TWiki::cfg{PubDir} = '/opt/www/wiki/pub';
$TWiki::cfg{TemplateDir} = '/opt/www/wiki/templates';
$TWiki::cfg{StoreImpl} = 'RcsLite';
$TWiki::cfg{LoginManager} = 'TWiki::Client::TemplateLogin';
$TWiki::cfg{Plugins}{NatSkinPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{WysiwygPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{RenderListPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{RedDotPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{FilterPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{EmptyPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{IfDefinedPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{BugzillaLinkPlugin}{Enabled} = 0;
$TWiki::cfg{Plugins}{BugzillaQueryPlugin}{Enabled} = 0;
$TWiki::cfg{DefaultUrlHost} = 'http://wiki.tgr.net';
$TWiki::cfg{Plugins}{GoogleAnalyticsPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{SubscribePlugin}{Enabled} = 1;
1;

-- TWiki:Main.RichardHurt - 20 Jul 2007

{NotifyTopicName} is one of the settings in configure. Please check it and make sure it's a valid topic name (it should usually be WebNotify)

I found that if {NotifyTopicName} is not set, you could get the error you give above. However this seems very unlikely to me.

You should also try downloading the latest rev of the plugin and checking if it still fails.

-- TWiki:Main.CrawfordCurrie - 09 Sep 2007

I'm sorry. I'm no longer able to debug this error as I've left the company to start my own (KangarooBox). I'll point this thread out to my successor in hopes that he has more luck.

Thanx! Richard

-- TWiki:Main.RichardHurt - 10 Sep 2007

No feedback from reporter and no sign of a repeat, so closing.

CC

ItemTemplate
Summary SubscribePlugin is throwing an error when you try to subscribe to a topic.
ReportedBy TWiki:Main.RichardHurt
Codebase 4.0.2
SVN Range TWiki-4.1.2, Thu, 28 Jun 2007, build 14298
AppliesTo Extension
Component SubscribePlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:14800
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r9 - 2008-01-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