Last modified: 2014-02-12 23:55:32 UTC
I'm running the trunk version of mediawiki and the mobile front end extension and I'm running into errors on seemingly random pages. If the user is logged in and goes to http://aiowiki.com/wiki/Category:Albums it works fine, if they are logged out and go to the same page they get this error: MediaWiki internal error. Original exception: exception 'MWException' with message 'Call to undefined method SkinMobile::getLanguages' in /home/aiowiki/aiowiki/w/includes/Skin.php:1563 Stack trace: #0 /home/aiowiki/aiowiki/w/extensions/MobileFrontend/includes/skins/SkinMobileBase.php(172): Skin->__call('getLanguages', Array) #1 /home/aiowiki/aiowiki/w/extensions/MobileFrontend/includes/skins/SkinMobileBase.php(172): SkinMobile->getLanguages() #2 /home/aiowiki/aiowiki/w/extensions/MobileFrontend/includes/skins/SkinMobile.php(10): SkinMobileBase->prepareTemplate() #3 /home/aiowiki/aiowiki/w/extensions/MobileFrontend/includes/skins/SkinMobileBase.php(124): SkinMobile->prepareTemplate() #4 /home/aiowiki/aiowiki/w/includes/OutputPage.php(2034): SkinMobileBase->outputPage() #5 /home/aiowiki/aiowiki/w/includes/Wiki.php(572): OutputPage->output() #6 /home/aiowiki/aiowiki/w/includes/Wiki.php(458): MediaWiki->main() #7 /home/aiowiki/aiowiki/w/index.php(59): MediaWiki->run() #8 {main} Exception caught inside exception handler: exception 'MWException' with message 'Call to undefined method SkinMobile::getLanguages' in /home/aiowiki/aiowiki/w/includes/Skin.php:1563 Stack trace: #0 /home/aiowiki/aiowiki/w/extensions/MobileFrontend/includes/skins/SkinMobileBase.php(172): Skin->__call('getLanguages', Array) #1 /home/aiowiki/aiowiki/w/extensions/MobileFrontend/includes/skins/SkinMobileBase.php(172): SkinMobile->getLanguages() #2 /home/aiowiki/aiowiki/w/extensions/MobileFrontend/includes/skins/SkinMobile.php(10): SkinMobileBase->prepareTemplate() #3 /home/aiowiki/aiowiki/w/extensions/MobileFrontend/includes/skins/SkinMobileBase.php(124): SkinMobile->prepareTemplate() #4 /home/aiowiki/aiowiki/w/includes/OutputPage.php(2034): SkinMobileBase->outputPage() #5 /home/aiowiki/aiowiki/w/includes/Exception.php(227): OutputPage->output() #6 /home/aiowiki/aiowiki/w/includes/Exception.php(272): MWException->reportHTML() #7 /home/aiowiki/aiowiki/w/includes/Exception.php(643): MWException->report() #8 /home/aiowiki/aiowiki/w/includes/Exception.php(713): MWExceptionHandler::report(Object(MWException)) #9 /home/aiowiki/aiowiki/w/includes/Wiki.php(461): MWExceptionHandler::handle(Object(MWException)) #10 /home/aiowiki/aiowiki/w/index.php(59): MediaWiki->run() #11 {main} however if the user is logged out and goes to http://aiowiki.com/w/index.php?title=Category:Albums&sadf=asd the pages loads completely fine I was running the 1.21 release of mediawiki the 1.21 of the mobile frontend and was running into the same error, I thought that updating might help so I switched to nightly builds
What do you call a "trunk version"? Looks like your MW is not new enough: in git master, SkinTemplate has getLanguages(), but not in 1.21 release.
i guess trunk is more of a svn thing, I'm using a nightly build of 1.22 from yesterday. I've check the copy on the server and SkinTemplate has getLanguages() on line 131
this leads me to believe it's some sort of cache issue on my set up and nothing to do with the code.
SkinMobileBase doesn't exist in latest MobileFrontend so this suggests a caching issue or points at running old code...