Roundcube Community Forum

 

markasjunk2 error: Call to undefined method stdClass::set_flag()

Started by tam, January 26, 2012, 03:39:48 AM

Previous topic - Next topic

tam

Hi,

I just installed markasjunk2, configured it for dspam, but when I try to mark as spam within roundcube, roundcube says "server error" and my Apache error.log says:

[error] [client xxx.xx.xx.xx] PHP Fatal error:  Call to undefined method stdClass::set_flag()
in /var/www/roundcube/plugins/markasjunk2/markasjunk2.php on line 102


PHP version is PHP 5.3.2-1ubuntu4.11

JohnDoh

i cant recreate this but i'd guess that you are running the repo version of markasjunk2 against something other than the latest svn trunk version of roundcube. that wont work. you need to download the right version of markasjunk2 for your version of roundcube.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

tam

Hi,

I'm running roundcube 0.7.1 and I have downloaded markasjunk2 from here: https://github.com/JohnDoh/Roundcube-Plugin-Mark-as-Junk-2/downloads

I have installed form here now: http://www.tehinterweb.co.uk/roundcube/#pimarkasjunk2
Seems to work. Thanks.

tam

Ok, error msg has gone away, but dspam isn't called at all.

This is part of my config:
$rcmail_config['markasjunk2_spam_cmd'] = '/usr/bin/dspamc --user dspam --class=spam --source=error --signature=%xds';
If I call  su www-data -c "/usr/bin/dspamc --source=error --class=spam --user dspam --signature=bla" dspam runs nice, except the signature not found, of course.

Also, even if I set debug to true, I can't find any log containing something of interest.

Can you pls help once more?

JohnDoh

the logs are in [rc root]/logs/markasjunk2 by default. did you set the driver in the config to be cmd_learn?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

tam

No. :( Sorry, my fault. Now it works perkect. Thanks again for your help.