[Pkg-mediawiki-devel] Bug#619159: Parameter 1 to Language::getMagic() expected to be a reference, value given

Graham graham.knap at gmail.com
Mon Mar 21 17:01:59 UTC 2011


Package: mediawiki
Version: 1.15.5-2

MediaWiki 1.15.x causes some of my extensions to fail. The apache2
error log contains this:

PHP Warning:  Parameter 1 to Language::getMagic() expected to be a
reference, value given in /usr/share/mediawiki/includes/StubObject.php
on line 58

The solution I found by searching the web was to modify Language.php as follows:

-       function getMagic( &$mw ) {
+       function getMagic( $mw ) {

This works for me, and I would like to see it included in the Debian
package, if it is indeed the right solution. Thanks.

-- graham





More information about the Pkg-mediawiki-devel mailing list