Last modified: 2014-10-27 13:26:16 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 T48885, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46885 - Fatal error after installation when using LocalisationUpdate
Fatal error after installation when using LocalisationUpdate
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.22.0
All All
: High major (vote)
: ---
Assigned To: Niklas Laxström
: testme
: 59614 59948 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-04 11:54 UTC by Markus Glaser
Modified: 2014-10-27 13:26 UTC (History)
10 users (show)

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


Attachments

Description Markus Glaser 2013-04-04 11:54:21 UTC
I installed MW1.21rc1 on Windows and IIS with all extensions enabled. I then got a fatal error of type MWException. The details show that I had no cache directory configured. This was not a (mandatory) option in the install dialogue, though.

No cache directory configured

Backtrace:

#0 C:\Inetpub\wwwroot\wikidata\extensions\LocalisationUpdate\LocalisationUpdate.class.php(553): LocalisationUpdate::filename('de')
#1 C:\Inetpub\wwwroot\wikidata\extensions\LocalisationUpdate\LocalisationUpdate.class.php(36): LocalisationUpdate::readFile('de')
#2 [internal function]: LocalisationUpdate::onRecache(Object(LocalisationCache), 'de', Array)
Comment 1 Nemo 2013-04-04 12:01:03 UTC
It's an installer problem, adding Mark.
The installer should be able to do the configuration steps as described by [[mw:MLEB]].
Comment 2 Sam Reed (reedy) 2013-05-26 10:19:10 UTC
(In reply to comment #1)
> It's an installer problem, adding Mark.
> The installer should be able to do the configuration steps as described by
> [[mw:MLEB]].

Why is it? And why should it?

The installer doesn't have support for $random extension configuration
Comment 3 Nemo 2013-05-26 10:30:08 UTC
(In reply to comment #2)
> The installer doesn't have support for $random extension configuration

Please define $random. This is only about extensions bundled with the installer.
Comment 4 Sam Reed (reedy) 2013-05-26 10:35:14 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > The installer doesn't have support for $random extension configuration
> 
> Please define $random. This is only about extensions bundled with the
> installer.

Random being any extension.

We don't bundle LocalisationUpdate

	# Export extensions for inclusion
	if dir > '1.20':
		extensions = ['ConfirmEdit', 'Gadgets', 'Nuke', 'ParserFunctions', 'PdfHandler', 'Renameuser', 'SpamBlacklist', 'Vector', 'WikiEditor']
	elif dir > '1.17':
		extensions = ['ConfirmEdit', 'Gadgets', 'Nuke', 'ParserFunctions', 'Renameuser', 'Vector', 'WikiEditor']
	else:
		extensions = []
Comment 5 Nemo 2013-05-26 10:41:53 UTC
(In reply to comment #4)
> We don't bundle LocalisationUpdate

I don't know if it was bundled properly, but it was: see bug 43815 comment 6.
https://www.mediawiki.org/w/index.php?title=MediaWiki_1.21&oldid=695111#Bundled_extensions still says so.
Comment 6 Mark A. Hershberger 2013-05-26 12:50:47 UTC
I just did a sanity test after bundling and made sure it worked.  More testing wasn't done on my part.

I do not remember who requested LU -- me? -- but I did say it would be bundled more than once.  If there was a reason not to bundle it, there was plenty of chance to raise the issue then.

Finally, I know there isn't currently support for bundling $RANDOM_EXTENSION in MW, but I would like to get that problem fixed for most extensions.
Comment 7 Nemo 2013-05-26 17:17:06 UTC
(In reply to comment #6)
> I just did a sanity test after bundling and made sure it worked.

Then that's call this one bug fixed; other issues will need other reports.
Comment 8 Jesús Martínez Novo (Ciencia Al Poder) 2014-01-11 18:44:57 UTC
Fresh install of MediaWiki 1.22.0. Only the bundled LocalisationUpdate extension was enabled in the installer. Navigating to any page after setup and using the generated LocalSettings.php (adding error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); $wgShowExceptionDetails = true; to get a stack trace):

[95fa66e8] /index.php Exception from line 549 of /home/www/lib/mediawiki-1.22.0/extensions/LocalisationUpdate/LocalisationUpdate.class.php: No cache directory configured

Backtrace:

#0 /home/www/lib/mediawiki-1.22.0/extensions/LocalisationUpdate/LocalisationUpdate.class.php(561): LocalisationUpdate::filename(string)
#1 /home/www/lib/mediawiki-1.22.0/extensions/LocalisationUpdate/LocalisationUpdate.class.php(36): LocalisationUpdate::readFile(string)
#2 [internal function]: LocalisationUpdate::onRecache(LocalisationCache, string, array)
#3 /home/www/lib/mediawiki-1.22.0/includes/Hooks.php(199): call_user_func_array(string, array)
#4 /home/www/lib/mediawiki-1.22.0/includes/GlobalFunctions.php(3877): Hooks::run(string, array)
#5 /home/www/lib/mediawiki-1.22.0/includes/cache/LocalisationCache.php(853): wfRunHooks(string, array)
#6 /home/www/lib/mediawiki-1.22.0/includes/cache/LocalisationCache.php(442): LocalisationCache->recache(string)
#7 /home/www/lib/mediawiki-1.22.0/includes/cache/LocalisationCache.php(365): LocalisationCache->initLanguage(string)
#8 /home/www/lib/mediawiki-1.22.0/includes/cache/LocalisationCache.php(281): LocalisationCache->loadSubitem(string, string, string)
#9 /home/www/lib/mediawiki-1.22.0/languages/Language.php(2337): LocalisationCache->getSubitem(string, string, string)
#10 /home/www/lib/mediawiki-1.22.0/includes/cache/MessageCache.php(802): Language->getMessage(string)
#11 /home/www/lib/mediawiki-1.22.0/includes/cache/MessageCache.php(729): MessageCache->getMessageFromFallbackChain(LanguageEs, string, string, boolean)
#12 /home/www/lib/mediawiki-1.22.0/includes/Message.php(878): MessageCache->get(string, boolean, LanguageEs)
#13 /home/www/lib/mediawiki-1.22.0/includes/Message.php(560): Message->fetchMessage()
#14 /home/www/lib/mediawiki-1.22.0/includes/Message.php(649): Message->toString()
#15 /home/www/lib/mediawiki-1.22.0/includes/Title.php(375): Message->text()
#16 /home/www/lib/mediawiki-1.22.0/includes/Wiki.php(121): Title::newMainPage()
#17 /home/www/lib/mediawiki-1.22.0/includes/Wiki.php(137): MediaWiki->parseTitle()
#18 /home/www/lib/mediawiki-1.22.0/includes/Wiki.php(530): MediaWiki->getTitle()
#19 /home/www/lib/mediawiki-1.22.0/includes/Wiki.php(467): MediaWiki->main()
#20 /home/www/lib/mediawiki-1.22.0/index.php(49): MediaWiki->run()
#21 {main}
Comment 9 Jesús Martínez Novo (Ciencia Al Poder) 2014-01-11 19:33:54 UTC
*** Bug 59948 has been marked as a duplicate of this bug. ***
Comment 10 bennylin 2014-01-14 17:29:08 UTC
*** Bug 59614 has been marked as a duplicate of this bug. ***
Comment 11 bennylin 2014-01-14 17:32:36 UTC
I had this error to and I found the solution:

I'm using MW 1.22.1 that I downloaded today, and got the same error. 

Following the instruction on mw.org ([[mw:Extension:LocalisationUpdate]] and https://www.mediawiki.org/w/index.php?title=MediaWiki_Language_Extension_Bundle&oldid=864409#Add.2Fupdate_your_LocalSettings.php),
you only need to add the following code in the LocalSettings.php

$wgLocalisationUpdateDirectory = "$IP/cache";
Comment 12 Niklas Laxström 2014-03-21 08:49:08 UTC
I might have accidentally fixed this in my rewrite https://gerrit.wikimedia.org/r/#/c/119944/

Does someone want to test with this patch?
Comment 13 Nemo 2014-03-21 08:59:54 UTC
Lovely! Once merged to master, also needs to be backported to 1.21 and 1.22 (it's compatible with 1.19 too in theory).
Comment 14 Mark A. Hershberger 2014-05-08 09:07:18 UTC
Doesn't cherry-pick cleanly.  If someone wants to take this on, then we can do it.
Comment 15 Niklas Laxström 2014-05-15 11:52:51 UTC
You would be better off by just picking the master of LU. It has been rewritten (with compatibility in mind) to support the json i18n format.
Comment 16 Mark A. Hershberger 2014-06-21 19:57:51 UTC
Removing target milestone that was in the past.

If you want this in a specific release, have a good reason AND you are willing to find resources to fix this bug, feel free to change it to something appropriate.
Comment 17 Andre Klapper 2014-10-07 21:38:17 UTC
Status of this ticket is unclear (whether the patch in comment 12 fixed this).
Does anybody know? Has this still happened after that patch had been included?

Also removing 'Backport_to_Stable' flag request as per comment 14 to 16.
Comment 18 Nemo 2014-10-08 06:40:19 UTC
The patch is in another branch, it can't have helped yet.
Comment 19 Andre Klapper 2014-10-08 09:51:44 UTC
Nemo: So where is the "patch to review" located? 
I don't see any link to a patch which still needs a review...
Comment 20 Nemo 2014-10-08 10:13:37 UTC
(In reply to Andre Klapper from comment #19)
> I don't see any link to a patch which still needs a review...

The patch and review (test) request is in comment 12.
Comment 21 Andre Klapper 2014-10-08 11:25:18 UTC
(In reply to Nemo from comment #20)
> (In reply to Andre Klapper from comment #19)
> > I don't see any link to a patch which still needs a review...
> 
> The patch and review (test) request is in comment 12.

The patch has already been reviewed and merged, hence removing PATCH_TO_REVIEW status again and setting status to UNCONFIRMED as it's unclear whether this bug still exists. Testing whether the merged patch fixes this bug report is welcome but expressed via the keyword 'testme' already.
Comment 22 Nemo 2014-10-08 11:31:58 UTC
The patch has NOT been merged in REL1_22
Comment 23 Andre Klapper 2014-10-27 13:26:16 UTC
There is no patch yet in Gerrit to review and potentially merge into REL1_22...

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


Navigation
Links