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
Lines 632-639:
# Check for spam $matches = array(); if ( $wgSpamRegex && preg_match( $wgSpamRegex, $this->textbox1, $matches ) ) { $this->spamPage ( $matches[0] ); wfProfileOut( "$fname-checks" ); wfProfileOut( $fname ); return false; }
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)
mediawiki-l@lists.wikimedia.org