Koozali.org: home of the SME Server

Spamassassin problem

Troy

Spamassassin problem
« on: September 19, 2003, 03:09:39 AM »
Hi List,
Under server-manager, spamassassin link there is a button allowing you to add a WBL entry. In order to speed things up for adding entrys I decided to add an extra button at the top of the page rather than scrolling down each time after a new entry.
So I copied the text in /etc/e-smith/web/functions/spamassassin

print $q->p ($q->a ({href => $q->url (absolute => 1). . "?state=wbladd"},
                            'Click here.');
                 'to add a new WBL entry.');

and created another copy in at line 161.

Before doing this I also created a backup copy of the original file.
Trying it failed and came back with an error
"Can't call method "get" on an undefined value at /etc/e-smith/web/panels/manager/cgi-bin/spamassassin line 124."
This file is just a link to the above mentioned.

The line it refers to is "my %sme_conf = $dbh_sme->get('spamassassin')->props;"

I replaced the original file back and still the same error. After thinking that I've gone nuts tried it again with exactly the same setup on another machine and came back with same error.
I've tried restarting services and the machine but to no avail.

Running SME 5.5 Update 6. With Spamassassin 2.55 as downloaded from mirror.contribs.org/smeserver/contribs/jprice/beta/e-smith-spamassassin/

Please help, I'm sure it's only something simple.
Cheers,
Troy

Jon Blakely

Re: Spamassassin problem
« Reply #1 on: September 19, 2003, 04:40:42 PM »
Troy,

You are correct, it is simple. Check the permissions of your file compared to the other files.
You need to chmod 4650
otherwise the script cannot access the configuration database.

Jon