MediaWiki migrated from Tiger to Snow Leopard throwing an exceptions
Posted
by Matt S
on Super User
See other posts from Super User
or by Matt S
Published on 2010-06-07T00:59:20Z
Indexed on
2010/06/07
1:02 UTC
Read the original article
Hit count: 401
I had an old laptop running Mac OS X 10.4 with macports for web development: Apache 2, PHP 5.3.2, Mysql 5, etc.
I got a new laptop running Mac OS X 10.6 and installed macports. I installed the same web development apps: Apache 2, PHP 5.3.2, Mysql 5, etc. All versions the same as my old laptop.
A Mediawiki site (version 1.15) was copied over from my old system (via the Migration Assistant). Having a fresh Mysql setup, I dumped my old database and imported it on the new system.
When I try to browse to mediawiki's "Special" pages, I get the following exception thrown:
Invalid language code requested
Backtrace:
#0 /languages/Language.php(2539): Language::loadLocalisation(NULL)
#1 /includes/MessageCache.php(846): Language::getFallbackFor(NULL)
#2 /includes/MessageCache.php(821): MessageCache->processMessagesArray(Array, NULL)
#3 /includes/GlobalFunctions.php(2901): MessageCache->loadMessagesFile('/Users/matt/Sit...', false)
#4 /extensions/OpenID/OpenID.setup.php(181): wfLoadExtensionMessages('OpenID')
#5 [internal function]: OpenIDLocalizedPageName(Array, 'en')
#6 /includes/Hooks.php(117): call_user_func_array('OpenIDLocalized...', Array)
#7 /languages/Language.php(1851): wfRunHooks('LanguageGetSpec...', Array)
#8 /includes/SpecialPage.php(240): Language->getSpecialPageAliases()
#9 /includes/SpecialPage.php(262): SpecialPage::initAliasList()
#10 /includes/SpecialPage.php(406): SpecialPage::resolveAlias('UserLogin')
#11 /includes/SpecialPage.php(507): SpecialPage::getPageByAlias('UserLogin')
#12 /includes/Wiki.php(229): SpecialPage::executePath(Object(Title))
#13 /includes/Wiki.php(59): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#14 /index.php(116): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#15 {main}
I tried to step through Mediawiki's code, but it's a mess. There are global variables everywhere. If I change the code slightly to get around the exception, the page comes up blank and there are no errors (implying there are multiple problems).
Anyone else get Mediawiki 1.15 working on OS X 10.6 with macports? Anything in the migration from Tiger that could cause a problem? Any clues where to look for answers?
© Super User or respective owner