I am having some trouble running the sample Special Page despite following the steps described, i.e. having included the file in LocalSettings and making appropriate changes to names, etc. Any pointers on how to deal with this issue will be greatly appreciated.
The sample Special Page I'm referring to is at: http://meta.wikimedia.org/w/index.php?title=Writing_a_new_special_page
After including the file in LocalSettings, I will get the following error from PHP: Fatal error: Call to undefined function: includable() in /var/www/mediawiki-1.4.9/extensions/ExampleSpecialPage.php on line 27
None of the SpecialPage files inside the include/ directory have the includable() function so I just went ahead and commented it out, and then I will receive the following error: Fatal error: Cannot redeclare class specialpage in mediawiki-1.4.9/includes/SpecialPage.php on line 101 which is referring to the class SpecialPage declaration.
The problem code section is
class ExampleSpecialPage extends SpecialPage { function ExampleSpecialPage() { SpecialPage::SpecialPage( 'ExampleSpecialPage' ); $this->includable( true ); } ... }