[Mediawiki-l] Warning with Captcha Extensions

Brion Vibber brion at wikimedia.org
Fri Aug 3 09:16:27 UTC 2007

Emufarmers Sangly wrote:
> I'm getting this warning after saving an edit, when the system prompts me
> for the captcha.  This seems to occur whether I'm using the default
> SimpleMath, or ReCAPTCHA.  It still works fine, but this warning appears at
> the top of the screen every time:
> Warning: preg_match() [function.preg-match]: Unknown modifier 'd' in
> /home/[snip]/includes/EditPage.php on line 634

Your $wgSpamRegex is set incorrectly, probably you have a '/' character
which isn't escaped.

You may be setting it manually in LocalSettings.php, or maybe you have
the SpamRegex extension or another which sets it for you.

-- brion vibber (brion @ wikimedia.org)

More information about the MediaWiki-l mailing list