Page MenuHomePhabricator

CharInsert generates an error in Linker.php
Closed, InvalidPublic

Description

Author: adamcox82

Description:
Warning: preg_match() [function.preg-match]: Empty regular expression in /home/zeldaw/public_html/includes/Linker.php on line 1466

After upgrading to MediaWiki 1.17.0 and PHP 5.3.2, I found that this extension generated the above error on our wiki. Since I couldn't find anywhere in CharInsert.php which was obviously making a call to this (or any) function in Linker.php, I instead went to includes/Linker.php to analyse the indicated line.

I found that I could work around this by modifying Linker.php to comment out line 1459 (if ( $regex === false ) {) and the closing brace on line 1462, such that the error is no longer generated.


Version: unspecified
Severity: major

Details

Reference
bz31130

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:50 PM
bzimport added a project: CharInsert.
bzimport set Reference to bz31130.
bzimport added a subscriber: Unknown Object (MLST).

code is different in 1.18. Probably will be solved by an upgrade to that version (tarball to be released shortly, but you can use the 1.18 branch since that is live on WMF wikis).