From TeamWeaverWiki
Failure to initialise on MediaWiki 1.16.0
Environment
- MediaWiki 1.16.0
- PHP 5.2.9-1 (apache2handler)
- MySQL 5.1.32-community
Description
After upgrading from MediaWiki 1.15.4 to 1.16.0 the following error is received on all pages:
Fatal error: Call to a member function getDBKey() on a non-object in
C:\WebSite\htdocs\Wiki\extensions\Woogle\includes\WoogleHooks.php on line 278
Failed with Woogle 1.0.0-RC2, updated from SVN to 3988 but still got the same issue.
-- Jbattersby 16:25, 5 August 2010 (UTC)
- I have found the problem. My Wiki had $wgLanguageCode = "en-gb"; in its LocalSettings.php. Changing this to "en" fixed the problem.
- -- Jbattersby 06:47, 6 August 2010 (UTC)
- Thanks for pointing that out. The problem seems to occur for all languages which are not shipped yet with Woogle. The bug is now filed under http://octopus13.fzi.de:8080/browse/WOO-454
- -- --Happel 15:54, 9 August 2010 (UTC)
- Changing line 28 in a language-file in extensions/woogle/languages/ to the actually used language-code resolves this issue. For example, in my case, my Wiki uses language "de-formal" (configured in LocalSettings.php), so I changed line 28 in the german woogle-language-pack from
return 'de';
to return 'de-formal';
- Maybe it would help to define a default (fallback) language to load, when the appropriate language-file is not found.
- Modmatt 14:23, 2 September 2010 (UTC)
- http://octopus13.fzi.de:8080/browse/WOO-454 is now fixed. A new release 1.0-RC3 will soon be available; until then you might use the code from SVN HEAD
- --Happel 16:11, 13 September 2010 (UTC)