Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Mollom Install - Tab showing in admin


Go to End


2 Posts   1193 Views

Avatar
merrick_sd

Community Member, 99 Posts

17 April 2014 at 1:52am

Edited: 18/04/2014 12:58am

Mollom does not seem to be installing ..well nothing showing in the admin area.

when i do dev/build i cannot see any tables relating to mollom are created.

I have used composer to download spamprotection and mollom.
I have created a yml file in eg: mysite -> _config ->spamprotection.yml

---
name: spamprotection
---
FormSpamProtection:
  default_spam_protector: MollomSpamProtector
Mollom:
  public_key: <a2the-rest-of- my-key-ends-here>
  private_key: <43the-rest-of- my-key-ends-here>

i do dev/build?flush=1 but the results don't show anything relating to Mollom

..there used to be a tab in the admin, so you knew it was installed

I always managed to get it installed before.

this is my first attempt since we can't use the _config.php any more
//SpamProtectorManager::set_spam_protector('MollomSpamProtector');

// Configure Mollom API keys
//these are for *.myserverdomain and nothing else
//please signup for you free one at http://mollom.com eg add site mydomain.co.uk if you wish to use mollom
//for http://ccsw.co.uk
//MollomServer::setPublicKey('a2fffffffff');
//MollomServer::setPrivateKey('43fffffff');

Am i doing something wrong regards to the yml file maybe ...i don't have any errors.

I have looked at tickets on github

it should be FormSpamProtectionExtension: not FormSpamProtection

not that iit has made any difference.

Avatar
rosie

Community Member, 2 Posts

29 April 2014 at 3:53pm

Hi,

I have just been trying to install mollom and finding it quite confusing.
I put the same details in the spamprotection.yml

After a lot of errors the main problem seemed to be that there was no mollom.class.inc file in folder vendor/mollom/client.
I downloaded the module https://github.com/mollom/MollomPHP and put it in this folder and this has made the errors go away.
Not sure if that was a problem for you also?

I also don't get a menu item in admin either.

I haven't being able to work out where I put the instruction below from the SpamProtection module from https://github.com/silverstripe/silverstripe-spamprotection (I am rather new to silverstripe, probably obvious to others), can someone tell me?

To add spam protection to your form instance call enableSpamProtection.

// your existing form code
$form = new Form( .. );
$form->enableSpamProtection();

Cheers
Rosie