Last modified: 2014-02-12 23:55:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52784, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50784 - Call to undefined method SkinMobile::getLanguages()
Call to undefined method SkinMobile::getLanguages()
Status: RESOLVED INVALID
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: Ryan Kaldari
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-05 04:31 UTC by Mark Redekop
Modified: 2014-02-12 23:55 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark Redekop 2013-07-05 04:31:15 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
Comment 1 Max Semenik 2013-07-05 16:53:08 UTC
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.
Comment 2 Mark Redekop 2013-07-05 22:25:38 UTC
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
Comment 3 Mark Redekop 2013-07-05 22:29:47 UTC
this leads me to believe it's some sort of cache issue on my set up and nothing to do with the code.
Comment 4 Jon 2013-07-05 23:29:51 UTC
SkinMobileBase doesn't exist in latest MobileFrontend so this suggests a caching issue or points at running old code...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links