https://bugzilla.wikimedia.org/show_bug.cgi?id=31130

       Web browser: ---
             Bug #: 31130
           Summary: CharInsert generates an error in Linker.php
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: CharInsert
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to