Page MenuHomePhabricator

Add language link fails with unknown error if there are no languages yet
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Message "An unknown error occurred" is shown.

This happens for both articles that are not connected to Wikidata and for those that have only one sitelink - to the currently seen page (so no foreign articles are present).

No Wikidata: https://pl.wikipedia.org/wiki/Nexhat_Hakiu?useskin=vector&uselang=en
Wikidata with one sitelink: https://pl.wikipedia.org/wiki/Mier_Hrabia?useskin=vector&uselang=en

What should have happened instead?:
A standard workflow to add a language is triggered.

Software version (skip for WMF-hosted wikis like Wikipedia): plwiki

Other information (browser name/version, screenshots, etc.):
The issue is reproducible in Vector 2022 too, provided that the ULS dialog ("Translate this page" / "Open language settings") will not load on clicking the language switcher button.