Last modified: 2011-09-24 17:56:15 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 T33130, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31130 - CharInsert generates an error in Linker.php
CharInsert generates an error in Linker.php
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
CharInsert (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-24 05:45 UTC by Adam Cox
Modified: 2011-09-24 17:56 UTC (History)
2 users (show)

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


Attachments

Description Adam Cox 2011-09-24 05:45:36 UTC
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.
Comment 1 Mark A. Hershberger 2011-09-24 17:56:15 UTC
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).

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


Navigation
Links