Hello All,
First off, many thanks to Alessandro for creating this application.
For the most part it is intalled and "almost" working like a charm
on a test server with the following set up.
ezmlm-www(v1.4.1)
index.cgi is suid to a qmail user able to read the list archive.
Using standard vanilla qmail-1.03 ezmlm-0.53 ezmlm-idx-0.40 setup
perl version is -
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform: osname=solaris, osvers=2.8, archname=sun4-solaris
Here are the config.pm settings.
#-- Mailing list configuration goes here:
push @$lists, {
name => 'dn...@fo...',
local_part => 'dnatest',
host_part => 'foobar.state.oh.us',
description => 'Results of DNA threading',
archive => Mail::Ezmlm::Archive->new('/path/to/list/dnatest'),
conceal_senders => 1,
subscription_info => 1,
descending_by_default => 1,
default_sorting => 'thread', #may be 'thread', 'date' or 'subject'
show_html => 1,
highlight => 1
};
Now to the problem part.
I am getting the following errors when selecting either
a date(d:d) or subject(a:s) display ordering on an archived list.
From the apache error_log file
[1] ezmlm-www.pl: Can't use string ("1") as a HASH ref while
"strict refs" in use at ./ezmlm-www.pl line 161.
[2] ezmlm-www.pl: Can't use string ("1") as a HASH ref while
"strict refs" in use at ./ezmlm-www.pl line 155.
Case [1] occurs whenever selecting the "order by date" option.
The line referred to in ezmlm-www.pl follows.
161 print '<a href="?' . $WebRequest{ListID} . '::' . $_ . '">' .
$Messages{$_}->{subject} . "</a>"
Case [2] occurs when selecting "order by subject" and the
referenced line from ezmlm-www.pl is
155 # let's sort by date
Here is the surrounding code
if ($by eq 'd') {
# let's sort by date
@MessageIDs = $start..$end;
elsif ($by eq 's') {
#\312let's sort by subject
@MessageIDs = sort { $Messages{$a}->{subject} cmp $Messages{$b}->{subject}
} keys %Messages;
}
Whenever selecting to Order by subject(ascending, descending)
this error is not generated for either ascending or descending.
Also, there are no problems with a threading display.
Trying to get a better grip on what or where this problem
resides I searched on the error message with the following
page as one of the results.
http://www.troubleshooters.com/codecorn/littperl/perlfuncorder.htm
I am an inexperienced perl programmer at best and am not sure
if the problem described in the document would be applicable here.
I definitely know that I am uncomfortable going in and messing around
with Alessandro's code at this stage. Perhaps someone with a better grasp could
help
out or point me in the right direction? Many Thanks.
Regards, Rhonda
|