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 ("1") as an ARRAY ref while "strict refs" 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
--
SteveJonesST - 08 Sep 2006
Answer
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