Results 1 to 6 of 6

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

  1. #1
    tam's Avatar
    tam
    tam is offline Registered User
    Join Date
    Jan 2009
    Posts
    10
    Downloads
    1
    Uploads
    0

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

    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:

    Code:
    [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

  2. #2
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,207
    Downloads
    6
    Uploads
    0

    Default

    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 Patches: Sieverules, SpamAssassin Prefs, and more…

  3. #3
    tam's Avatar
    tam
    tam is offline Registered User
    Join Date
    Jan 2009
    Posts
    10
    Downloads
    1
    Uploads
    0

    Default

    Hi,

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

    I have installed form here now: http://www.tehinterweb.co.uk/roundcube/#pimarkasjunk2
    Seems to work. Thanks.
    Last edited by tam; 01-26-2012 at 05:58 PM.

  4. #4
    tam's Avatar
    tam
    tam is offline Registered User
    Join Date
    Jan 2009
    Posts
    10
    Downloads
    1
    Uploads
    0

    Default

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

    This is part of my config:
    Code:
    $rcmail_config['markasjunk2_spam_cmd'] = '/usr/bin/dspamc --user dspam --class=spam --source=error --signature=%xds';
    If I call
    Code:
    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?

  5. #5
    JohnDoh is offline Super Moderator
    Join Date
    May 2007
    Posts
    1,207
    Downloads
    6
    Uploads
    0

    Default

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

  6. #6
    tam's Avatar
    tam
    tam is offline Registered User
    Join Date
    Jan 2009
    Posts
    10
    Downloads
    1
    Uploads
    0

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •