Skip to Content.
Sympa Menu

devel - Re: [sympa-users] "strict refs" error in List.pm

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Olivier Salaun <address@concealed>
  • To: John Douglass <address@concealed>
  • Cc: address@concealed, address@concealed
  • Subject: Re: [sympa-users] "strict refs" error in List.pm
  • Date: Wed, 17 Oct 2001 09:33:35 +0200

John Douglass wrote:
>
> I am using sympa-3.3a-vhost.10 on a Solaris 8 machine.
>
> When I attempt to request a list to be created (and I am NOT listmaster)
> I am getting the error:
>
> [client 128.61.2.35] [user address@concealed] [list
> apache-class] d_access_control
> notify listmaster
> List::send_notify_to_listmaster(request_list_creation,apache-class )
> Can't use string ("lists.gatech.edu") as a HASH ref while "strict refs"
> in use at /services/lists/bin/List.pm line 1148.
> [Tue Oct 16 12:34:50 2001] [error] [client 128.61.2.35] Premature end of
> script headers:
> /services/www/content/lists.gatech.edu/cgi-bin/wwsympa.fcgi

This is a bug (typo) in List::send_to_listmaster().
Here is a patch :
*** src/List.pm 2001/09/26 16:00:38 1.156
--- src/List.pm 2001/09/28 13:55:59 1.157
***************
*** 1152,1158 ****
}elsif ($operation eq 'request_list_creation') {
my $list = new List $param[0];

! $list->send_file('create_list_request', $Conf{'listmaster'},
$Conf{'host'}
{'to' => "listmaster\@$Conf{'host'}",
'email' => $param[1]});

--- 1152,1158 ----
}elsif ($operation eq 'request_list_creation') {
my $list = new List $param[0];

! $list->send_file('create_list_request', $Conf{'listmaster'},
$Conf{'host'},
{'to' => "listmaster\@$Conf{'host'}",
'email' => $param[1]});

> What is strange, however, is that it works fine when I am logged in as
> listmaster.

If you are listmaster, there is no notification sent to listmaster.

--
Olivier Salaün
Comité Réseau des Universités


  • Re: [sympa-users] "strict refs" error in List.pm, Olivier Salaun, 10/17/2001

Archive powered by MHonArc 2.6.19+.

Top of Page