Page MenuHomePhabricator

Internal error when viewing /view/en/Special:WhatLinksHere
Closed, ResolvedPublicPRODUCTION ERROR

Description

https://www.wikifunctions.org/view/en/Special:WhatLinksHere/Z802

[4f3ff6c0-7baf-46a4-8c1b-777e70c6e23b] 2023-07-28 15:18:14: Fatal exception of type "InvalidArgumentException"

Related Objects

Event Timeline

Change 942679 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] SpecialViewObject: Catch errors from trying to create the language

https://gerrit.wikimedia.org/r/942679

Jdforrester-WMF changed the task status from Open to In Progress.Jul 28 2023, 3:27 PM
Jdforrester-WMF claimed this task.
Jdforrester-WMF moved this task from To triage to In Progress on the Abstract Wikipedia team board.
Jdforrester-WMF changed the subtype of this task from "Task" to "Production Error".Jul 28 2023, 3:50 PM

Change 942679 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] SpecialViewObject: Catch errors from trying to create the language

https://gerrit.wikimedia.org/r/942679

Change 942739 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@wmf/1.41.0-wmf.19] SpecialViewObject: Catch errors from trying to create the language

https://gerrit.wikimedia.org/r/942739

Change 942739 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@wmf/1.41.0-wmf.19] SpecialViewObject: Catch errors from trying to create the language

https://gerrit.wikimedia.org/r/942739

It's OK to redirect to the Main Page, but I was wondering if we could redirect

https://www.wikifunctions.org/view/en/Special:WhatLinksHere/Z802

to

https://www.wikifunctions.org/wiki/Special:WhatLinksHere/Z802?uselang=en ?

(Shall I file an additional task for that?)

It's OK to redirect to the Main Page, but I was wondering if we could redirect

https://www.wikifunctions.org/view/en/Special:WhatLinksHere/Z802

to

https://www.wikifunctions.org/wiki/Special:WhatLinksHere/Z802?uselang=en ?

(Shall I file an additional task for that?)

Please do, though I worry about "search for something that looks like a ZID and redirect the user to that view page" when we don't (yet) display a notice that the user was redirected and why.

It's OK to redirect to the Main Page, but I was wondering if we could redirect

https://www.wikifunctions.org/view/en/Special:WhatLinksHere/Z802

to

https://www.wikifunctions.org/wiki/Special:WhatLinksHere/Z802?uselang=en ?

(Shall I file an additional task for that?)

Please do, though I worry about "search for something that looks like a ZID and redirect the user to that view page" when we don't (yet) display a notice that the user was redirected and why.

If we try to fix it we should also fix https://www.wikifunctions.org/view/en/w:test

If we try to fix it we should also fix https://www.wikifunctions.org/view/en/w:test

I don't think that's related. I also don't agree that we should fix bad URLs like that.

Filed T343405 for the followup.

Redirecting to the Main Page is better than an exception, but… the whole behavior of that URL is strange. First, when being logged in with a non-English UI language, it does not redirect to the project main page, but to the (nonexisting) localized default main page name in the language. (E.g. for me, https://www.wikifunctions.org/view/en/Special:WhatLinksHere/Z802 redirects to https://www.wikifunctions.org/wiki/Hlavn%C3%AD_strana) When I tried to reproduce that, I went to https://www.wikifunctions.org/view/en/Special:WhatLinksHere/Z802?uselang=cs which… just shows the contents of Z802 directly? (As does https://www.wikifunctions.org/view/en/Special:WhatLinksHere/Z802?uselang=en, only the language differs… I guess there is an unsolved confusion between view/xx/... and ?uselang=yy there generally.)