Last modified: 2007-12-01 03:18:14 UTC
Using MediaWiki 1.7 on Debian Etch I'm receiving the error: Fatal error: Class 'StubObject' not found in /var/lib/mediawiki1.7/extensions/ParserFunctions/ParserFunctions.php on line 318 I'm using the latest versions of the three component files as linked from the installation instructions at: http://meta.wikimedia.org/wiki/Help:ParserFunctions#Installation For reference, I think the version of ParserFunctions.php is 27946. Line 318 contains the only reference from the three files to StubObject: root@spider:/var/lib/mediawiki1.7/extensions/ParserFunctions# grep Stub * ParserFunctions.php: if ( !StubObject::isRealObject( $wgParser ) ) { It should be noted that I'm attempting to install the Todo_Tasks extension (http://www.mediawiki.org/wiki/Extension:Todo_Tasks) which relies in part on Parser Functions. No other extensions are installed besides the related dependencies. Thanks for your time.
The StubObject class is not present in MediaWiki 1.7, which is a very old version of the software and likely not compatible with some current extensions. Upgrade to a current release (eg 1.11).
(In reply to comment #1) > The StubObject class is not present in MediaWiki 1.7, which is a very old > version of the software and likely not compatible with some current extensions. > Upgrade to a current release (eg 1.11). > Thanks for the help. That's not mentioned on the wiki page near the installation instructions, and it's also absent around the download area. It would be helpful if the minimum version of Mediawiki required for the latest release of the extension was listed in those areas, especially since the page explicitly refers to several different versions of Mediawiki. This would assist users who are unfamiliar with the extensions. I may look at tracking Debian's testing release so that I can use the latest Parserfunctions. Thanks again.