Page MenuHomePhabricator

Unknown modifier 'p' in EditPage.php on line 1106
Closed, InvalidPublic

Description

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.


Version: 1.16.x
Severity: normal

Details

Reference
bz26258

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:17 PM
bzimport set Reference to bz26258.
bzimport added a subscriber: Unknown Object (MLST).

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 &lt;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.