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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Mollum Problems

Go to End

2 Posts   980 Views


Community Member, 545 Posts

18 December 2009 at 11:18am

I'm having trouble with the mollum module, I've switched over from the recaptcha, when I submit a form with content like "Super Awesome Viagra" it still passes. The report shows its configured correctly. Here is my Form Code

function UserProductReviewForm() {
      // Create fields
	$fields = new FieldSet(
		new TextField('Name','Name:'),
		new EmailField('Email','E-Mail Address:'),
		new TextField('Location','Location:'),
		new OptionsetField('Rating','Rating',array(
			'1' => '1',
			'2' => '2',
			'3' => '3',
			'4' => '4',
			'5' => '5',
		new TextField('Title','Review Title:'),
		new TextareaField('Review'),
		new HiddenField('ProductID', '', $this->ID),
		new HiddenField('ProductName','',$this->Title)
      // Create actions
      $actions = new FieldSet(
         new FormAction('doReview', 'Submit')
	$form = new Form($this, 'UserProductReviewForm', $fields, $actions);
	$protector = SpamProtectorManager::update_form($form);
	if($protector) $protector->setFieldMapping('Name', 'Email', 'Title', 'Review');
	return $form;

Any ideas?


Forum Moderator, 5523 Posts

18 December 2009 at 12:05pm

I'm not sure about Mollom, could be something in the library but one thing to note is it takes alot more then just the content of the post into account, it takes into User Agents, IPs etc etc to generate a score. One thing you could try is digging into the MollomServer::checkCaptcha() function to see what score molloms returning.