Last modified: 2012-04-12 13:54:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28258, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26258 - Unknown modifier 'p' in EditPage.php on line 1106
Unknown modifier 'p' in EditPage.php on line 1106
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-05 23:08 UTC by Szőts Ákos
Modified: 2012-04-12 13:54 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Szőts Ákos 2010-12-05 23:08:08 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.
Comment 1 Sam Reed (reedy) 2010-12-06 00:05:48 UTC
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...
Comment 2 Roan Kattouw 2010-12-07 16:23:46 UTC
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
Comment 3 Szőts Ákos 2010-12-07 16:30:24 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links