Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Blog Module not working with Mollom/Spam Protection

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1930 Views
  • yume
    Avatar
    Community Member
    3 Posts

    Blog Module not working with Mollom/Spam Protection Link to this post

    I installed a fresh copy of Silverstripe 2.3.3 and the latest Blog Module [0.2.1], Mollom [v0.2], & Spam Protection [v0.2].

    I also enabled the spam protection in mysite/_config.php by including

    // The following 3 lines enables Mollom Spam Protection
    Mollom::setPublicKey("xxx");
    Mollom::setPrivateKey("xxx");
    SpamProtectorManager::set_spam_protector('MollomSpamProtector');

    Now when i go to my blog page and click on the sample blop entry title to go to

    http://yoursite.com/sample-blog-entry/

    i get a warning

    [Warning] Unknown class passed as parameter
    GET /sample-blog-entry/

    Line 420 in /sapphire/core/Object.php
    # is_subclass_of(SpamProtecterField,DataObject)
    Line 420 of Object.php
    # Object::prepare_statics(SpamProtecterField)
    Line 175 of Object.php
    # Object::get_static(SpamProtecterField,extensions)
    Line 264 of Object.php
    # Object::uninherited_static(SpamProtecterField,extensions)
    Line 488 of Object.php

    I notice that SpamProtecterField is spelled wrong and should be SpamProtectorField (with an O and not an E in protector)

    Anybody else facing this issue?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Blog Module not working with Mollom/Spam Protection Link to this post

    If you are using the latest mollom / spam (maybe try the daily builds instead) the typos should be fixed. Try http://yoursite.com/sample-blog-entry/?flush=1 Perhaps the spelling error is from an older version.

    You can also try the daily builds of mollom, spam and blog. These are available on their individual download pages and contain slightly more up to date code. Try these (remember to dev/build?flush=1 again).

    If after running the latest daily builds doesn't fix it can you do a search for 'SpamProtecterField' in your entire project and see what file (if any) this is referenced in.

  • yume
    Avatar
    Community Member
    3 Posts

    Re: Blog Module not working with Mollom/Spam Protection Link to this post

    Thanks willr,

    Installing the latest build of the SpamProtection Module & Mollom Module worked.

    Installing the latest build of the Blog Module also fixed another bug I was having where clicking on a link in the Browse by Date section produce an error.

    1930 Views
Page: 1
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.