Tags:
create new tag
, view all tags

Question

Hi. Can't seem to get actionnotify to work on 4.0.4. I'm trying to debug on the command line (not cron), typing :

cd <bin>
../tools/actionnotify state="late"

and all I get is :

<H1>Software error:</H1>
<CODE>Can't use string (&quot;1&quot;) as an ARRAY ref while &quot;strict refs&quot; in use at /design/TWiki/twiki/lib/TWiki/Func.pm line 1620.
</CODE>
<P>
For help, please send mail to this site's webmaster, giving this error message 
and the time and date of the error.

[Fri Sep  8 12:50:57 2006] actionnotify: Can't use string ("1") as an ARRAY ref while "strict refs" in use at /design/TWiki/twiki/lib/TWiki/Func.pm line 1620.

Please can someone (Crawford ?) help me debug this. The install is live, and users on three continents are moaning. Thanks, Steve.

-- SteveJonesST - 08 Sep 2006

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH7.2
Web server: Apache 1.3
Perl version: 5.6.0
Client OS: XP
Web Browser: Firefox
Categories: Plugins

-- SteveJonesST - 08 Sep 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Steve, on line 1620 of Func.pm, just before the return, add the following:

return '' unless $user && scalar $user->emails();
That should mask the problem sufficiently for you to proceed. But it doesn't explain why one of your users appears to have no email address.

-- CrawfordCurrie - 11 Oct 2006

Sorry, closing after more than 30 days...

-- PeterThoeny - 28 Nov 2006

 
Change status to:
Topic revision: r3 - 2006-11-28 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, 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.