[Pkg-mediawiki-devel] Bug#668601: mediawiki: PHP error in Special:Import page

Pascal Le Bail network at pascal.at
Fri Apr 13 10:40:58 UTC 2012

Package: mediawiki
Version: 1:1.15.5-2squeeze4
Severity: normal

An HTTP request to the Special:Import page on a freshly installed mediawiki package (squeeze and wheezy versions) leads to the following PHP error:

PHP Fatal error: Call to undefined method User::isAllowedAny() in
/usr/share/mediawiki/includes/specials/SpecialImport.php on line 59

A quick look at the source confirms that the "User" class has indeed no method of that name in Version 1.15.5. However, this method seems to appear in newer versions of mediawiki.

Replacing the file SpecialImport.php by the original upstream version (from release 1.15.5) resolves this error. I suspect that this bug was introduced by a Debian security update of that file.

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-028stab092.1 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mediawiki depends on:
ii  apache2                2.2.16-6+squeeze6 Apache HTTP Server metapackage
ii  apache2-mpm-prefork [h 2.2.16-6+squeeze6 Apache HTTP Server - traditional n
ii  debconf [debconf-2.0]          Debian configuration management sy
ii  mime-support           3.48-1            MIME files 'mime.types' & 'mailcap
ii  php5                   5.3.3-7+squeeze8  server-side, HTML-embedded scripti
ii  php5-mysql             5.3.3-7+squeeze8  MySQL module for php5

Versions of packages mediawiki recommends:
ii  mysql-server-5.1 [mysq 5.1.61-0+squeeze1 MySQL database server binaries and
ii  php5-cli               5.3.3-7+squeeze8  command-line interpreter for the p

Versions of packages mediawiki suggests:
pn  clamav                  <none>           (no description available)
pn  mediawiki-math          <none>           (no description available)
pn  memcached               <none>           (no description available)
ii  php5-gd                 5.3.3-7+squeeze8 GD module for php5

-- debconf information:
  mediawiki/webserver: apache2

More information about the Pkg-mediawiki-devel mailing list