Last modified: 2012-04-19 21:22:17 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 T32934, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30934 - Warning: Invalid argument supplied for foreach() in /languages/Language.php on line 423
Warning: Invalid argument supplied for foreach() in /languages/Language.php o...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.18.x
All All
: Normal normal (vote)
: 1.18.0 release
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-16 15:29 UTC by Daniel Friesen
Modified: 2012-04-19 21:22 UTC (History)
4 users (show)

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


Attachments

Description Daniel Friesen 2011-09-16 15:29:31 UTC
I've been getting this error on a test wiki I have the latest 1.18 checked out on. The error shows up when I visit the edit page.

Warning: Invalid argument supplied for foreach() in /languages/Language.php on line 423

Note that this test wiki has CACHE_NONE set since I'm developing. That could be related to the situation where that error shows up.
Comment 1 Sam Reed (reedy) 2011-09-16 15:34:23 UTC
Might be the same in trunk, at line 460
Comment 2 Daniel Friesen 2011-09-16 15:35:46 UTC
Perhaps. Though for some reason I only get it in 1.18.
Comment 3 Daniel Friesen 2011-09-16 16:08:31 UTC
This seams to be related to the LocalizationCache. Running `php maintenance/rebuildLocalisationCache.php --force` does get rid of the error.

The problem though is why was that not when I upgraded the wiki with update.php? If we aren't rebuilding the cache when wikis upgrade we can expect a lot of people complaining in #mediawiki.
Comment 4 Niklas Laxström 2011-09-16 16:28:30 UTC
I would recommend to make update.php to purge or regenerate the localisation caches.
Comment 5 Mark A. Hershberger 2011-10-28 15:17:51 UTC
(In reply to comment #3)
> This seams to be related to the LocalizationCache. Running `php
> maintenance/rebuildLocalisationCache.php --force` does get rid of the error.

Release notes?
Comment 6 Siebrand Mazeland 2011-10-28 15:26:43 UTC
(In reply to comment #4)
> I would recommend to make update.php to purge or regenerate the localisation
> caches.

That's what I just wanted to add to this thread when I saw Niklas had already added it. Niklas, can you add this?
Comment 7 Sam Reed (reedy) 2011-11-01 05:24:02 UTC
r101499

Just needs 1.18 backporting now
Comment 8 Phillip Patriakeas 2011-11-01 06:46:06 UTC
(In reply to comment #7)
> r101499
> 
> Just needs 1.18 backporting now

I think you meant r101449; 101499 hasn't been checked in yet. ;)

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


Navigation
Links