-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all!
I have been writing an extension
http://www.mediawiki.org/wiki/Extension:DynamicTabs that works just
fine in my test-wiki. Now I have tried to install it on another wiki
and the whole thing crash when I try to create the config page on
wiki, called Mediawiki:DynamicTabs:
*Fatal error*: Call to undefined method Article::getRawText() in
*/var/www/mickenordin/mediawiki/extensions/DynamicTabs/DynamicTabs.php*
on line *85
*
This is the relevant part of the code:
$DynTabsPage =
Article::newFromId(Title::newFromText("Mediawiki:DynamicTabs")->getArticleId());
if(isset($DynTabsPage))
{
$DynTabsText = explode("*", $DynTabsPage->getRawText()); //Line 85*
* *a bunch of other stuff here*
I can't figure out what is wrong, so I thought I'd shoot you all an
email to see if any one has some insight to share. The rest of the
code of the extension can be found here:
http://micke.googlecode.com/files/DynamicTabs-0.2.tar.gz
Since Article::getRawText() clearly isn't undefined I must be doing
something else wrong... Also it seems strange that the code works in
one wiki, but not another set up on the same server.
/Micke
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAkn5zUMACgkQzdNqVVhZvLw5VACdGzS/rAbSQgSYSag+dBXXJA+n
XosAniKhbb15tUIMaDBMUzcazeCgEr8+
=5FUW
-----END PGP SIGNATURE-----