Last modified: 2012-04-12 13:54:22 UTC
My hosting provider logs all PHP errors to a separate file. In a month I got a 7MB+ file filled with the following error message: Unknown modifier 'p' in /wiki/includes/EditPage.php on line 1106 You can find my $wgSpamRegex from the LocalSettings.php on the following address: http://pastebin.com/EHH7fyDi I copied it from a location you provided.
It's a regex at fault/an error with the version of the PCRE libraries that your hosting provider is using At a guess, it's "height:\s*[0-4]px", but it's valid regex...
It's an error in your regex: "\<</span>\s*a\s*href|". //This blocks <a href links entirely, forcing wiki syntax The regex is enclosed in /regex here/ , so the / in the span tag needs to be escaped, like so: \/span
Yes, you're right, I fixed that; thank you! I don't remember from where I copied this snippet. I googled for it but I don't find to fix that.