When a user enter's something in the guestbook (or a spambot does). He gets the below error message. For the guestbook I use the guestbook module (http://drupal.org/project/guestbook). Spam does not get published, but the error get's logged (so it's poluting my log).

preg_match_all() [<a href='function.preg-match-all'>function.preg-match-all</a>]: Compilation failed: missing terminating ] for character class at offset 4 in /customers/[website]/httpd.www/sites/all/modules/spam/spam.module on line 1100.

Comments

xl-network’s picture

Nothing yet...?

jeremy’s picture

Status: Active » Fixed

Is this still happening for you? If so, are you using custom filters? Offhand, I'm guessing this is an issue with one of your custom filters being badly formatted. There have been some major changes to the spam module since your bug report, so the line number is no longer useful. Please test again with the latest release, and if it's still a problem re-open this issue, pasting in the updated error message.

mygumbo’s picture

This was happening to me, too, and so I checked my custom filters, and I was trying to match "[url" - and thus, the error about a non-terminating ].

xl-network’s picture

I updated to the latest version and still it did nothing. Can you tell me where you fixed/changed the [url thingie?

xl-network’s picture

Never mind... I found it under /admin/settings/spam/custom. I removed the [url and [img thing and it worked.

Anonymous’s picture

Status: Fixed » Closed (fixed)