Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Anti-spam frustration

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 4129 Views
  • SightUnseen
    Avatar
    Community Member
    28 Posts

    Anti-spam frustration Link to this post

    We attempted to add mollum and spamprotection to a site, and have spent hours with no result.

    We first attempted to use the stable builds, and this gave no result, so tried with the latest builds of mollum, spamprotection, and userforms. Now not only is the the anti spam not present, but the addition of the line:

    SpamProtecterManager::set_spam_protecter('MollomSpamProtector');

    in the config.php file causes the following to be displayed on all pages (including the ../build ../flush ../admin, etc)

    Fatal error: Class 'SpamProtecterManager' not found in /home/trainer/public_html/mysite/_config.php on line 30

    Changing ' to " or 'SpamProtecterManager' to SpamProtectorManager' as indicated in other threads has not remedied the situation.

    Has anyone else encountered this, and found a solution?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Anti-spam frustration Link to this post

    If you are using the latest trunk builds of mollom and spam protection then the following code should work

    SpamProtectorManager::set_spam_protector('MollomSpamProtector');

    Note we had to fix the 'set_spam_protector' vs 'set_spam_protecter' throughout the code and I may have overlooked the docs. Try that and let me know how you get on.

  • SightUnseen
    Avatar
    Community Member
    28 Posts

    Re: Anti-spam frustration Link to this post

    Still no luck; website won't function with the code in place.

    Fatal error: Class 'SpamProtectorManager' not found in /home/trainer/public_html/mysite/_config.php on line 30

    Appreciate the help.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Anti-spam frustration Link to this post

    Well the error - 'SpamProtectorManager' lets start there - Do you have a 'SpamProtectorManager.php' file with a class inside it called 'SpamProtectorManager'. Also make sure this file starts with a '<?php' not just '<? ' as some servers won't pick it up with php shorttags.

    It should be located in spamprotection/code/. If so next thing to check is you have a '_config.php' file in spamprotection/ (so SS loads the code). Next thing is to run site.com/dev/build to rebuild the manifest (to include all the php files).

  • SightUnseen
    Avatar
    Community Member
    28 Posts

    Re: Anti-spam frustration Link to this post

    This morning I decided to start from scratch, and have deleted the old modules, and uploaded the latest:

    mollom-trunk-r78454
    modules_spamprotection_trunk-r80521

    I ran /dev/build (and flushed the cache) and visiting the site, all works as it should, except that the anti-spam elements are not present on the page (I also tested from another browser and machine, both of which weren't logged in). As I understand it the latest releases should install the necessary elements automatically; is this correct?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Anti-spam frustration Link to this post

    Is this in page comment form?.

    Can you check in the CMS -> Reports Section to see if your mollom key is valid

  • SightUnseen
    Avatar
    Community Member
    28 Posts

    Re: Anti-spam frustration Link to this post

    The key is shown as valid.

    This is for the contact form:

    If it helps, the URI is http://trainersinmotion.co.nz/contact-us/

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Anti-spam frustration Link to this post

    Have you added a Spam Protection Field to the form in the CMS? Can you see that as an option?

    4129 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.