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

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:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-11-28 - 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.