Page MenuHomePhabricator

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

Description

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.


Version: 1.18.x
Severity: normal

Details

Reference
bz30934
TitleReferenceAuthorSource BranchDest Branch
Fixed feature to view old search resultstoolforge-repos/wiki-gpt!10kevinbaziramainmain
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:47 PM
bzimport set Reference to bz30934.
bzimport added a subscriber: Unknown Object (MLST).

Might be the same in trunk, at line 460

Perhaps. Though for some reason I only get it in 1.18.

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-General.

I would recommend to make update.php to purge or regenerate the localisation caches.

(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?

(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?

r101499

Just needs 1.18 backporting now

(In reply to comment #7)

r101499

Just needs 1.18 backporting now

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