Page MenuHomePhabricator

Fix & restore the "Find a language" search box on www.wikipedia.org portal - API bug?
Open, Needs TriagePublic

Description

Fix the "Find a language" search box formerly on www.wikipedia.org so it can be included again on the page (or wherever else that functionality is useful).

The search box was disabled in T126409, citing an API bug. (Filing as a separate bug since the former feature was simplified to 'remove the buggy box'; it seemed like the UI element would have been useful if it could be fixed.)

Event Timeline

Sj created this task.Mar 15 2016, 10:17 PM
Restricted Application added a project: Discovery. · View Herald TranscriptMar 15 2016, 10:17 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Sj updated the task description. (Show Details)Mar 15 2016, 10:18 PM
Sj updated the task description. (Show Details)
debt added a subscriber: debt.Mar 16 2016, 1:11 AM

Yes....what's the bug? :)

It doesn't seem to work for existing wikis; only shows a blank page. Wp/<lang>&goto=mainpage also seems to be broken (I guess it's related).

It's failing for Wikipedias only, not other projects. $wmincProjectDatabases['p'] is set to wikiand this is used to retrieve the value of wgServer through wgConf. See WikimediaIncubator::getSubdomain() and WikimediaIncubator::getConf(). Recently wmf-config changed wiki to wikipediaso it's now failing since wiki key is not set in wgServer configuration and is falling back to some weird default. L1340. I guess we need to do some major refactoring to fix this in a non-hackish way?

Restricted Application added a subscriber: Hydriz. · View Herald TranscriptMar 20 2016, 5:49 PM