[Pkg-mediawiki-devel] Bug#537134: mediawiki: Fatal error on Special:MostLinkedPages

Alexey Feldgendler alexey at feldgendler.ru
Wed Jul 15 11:46:49 UTC 2009

Package: mediawiki
Version: 1:1.15.0-1
Severity: normal
Tags: patch

Special:MostLinkedPages produces error message:
Fatal error: Call to a member function getPrefixedDBkey() on a
non-object in mediawiki/includes/specials/SpecialMostlinked.php on
line 64

A patch was made by Freek Dijkstra <http://www.mail-archive.com/wikibugs-l@lists.wikimedia.org/msg14505.html>:

--- includes/specials/SpecialMostlinked.php.orig        2009-07-15 13:39:45.000000000 +0200
+++ includes/specials/SpecialMostlinked.php     2009-07-15 13:40:32.000000000 +0200
@@ -61,7 +61,7 @@
         * @return string
        function makeWlhLink( &$title, $caption, &$skin ) {
-               $wlh = SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedDBkey() );
+               $wlh = SpecialPage::getTitleFor( 'Whatlinkshere', $title );
                return $skin->makeKnownLinkObj( $wlh, $caption );

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mediawiki depends on:
ii  apache2                   2.2.11-6       Apache HTTP Server metapackage
ii  apache2-mpm-prefork [http 2.2.11-6       Apache HTTP Server - traditional n
ii  debconf [debconf-2.0]     1.5.26         Debian configuration management sy
ii  mime-support              3.46-1         MIME files 'mime.types' & 'mailcap
ii  php5                      5.2.9.dfsg.1-4 server-side, HTML-embedded scripti
ii  php5-mysql                5.2.9.dfsg.1-4 MySQL module for php5

Versions of packages mediawiki recommends:
ii  mysql-server           5.0.51a-24+lenny1 MySQL database server (metapackage
ii  mysql-server-5.0 [mysq 5.0.51a-24+lenny1 MySQL database server binaries
ii  php5-cli               5.2.9.dfsg.1-4    command-line interpreter for the p

Versions of packages mediawiki suggests:
pn  clamav                 <none>            (no description available)
ii  imagemagick            7: image manipulation programs
pn  mediawiki-math         <none>            (no description available)
pn  memcached              <none>            (no description available)
ii  php5-gd                5.2.9.dfsg.1-4    GD module for php5

-- debconf information:
* mediawiki/webserver: apache2

More information about the Pkg-mediawiki-devel mailing list