Page MenuHomePhabricator

404 error when changing between zh-hans, zh-hant, zh-hk, zh-sg etc. ("p-variants") at Chinese Wikivoyage
Closed, ResolvedPublic

Description

Just like the topic, when we change the language between zh-hans, zh-hant , zh-hk, zh-sg, zh-mo, zh-cn, etc. the websit will auto transfer to tools.wmflabs.org and tell me "page not found". Please fix this bug.


Version: wmf-deployment
Severity: major
URL: https://zh.wikivoyage.org/

Details

Reference
bz60473

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:05 AM
bzimport set Reference to bz60473.
bzimport added a subscriber: Unknown Object (MLST).

Please provide steps to reproduce, click by click, so somebody else could try to see the same problem too.

(In reply to comment #0)

Just like the topic, when we change the language between zh-hans, zh-hant ,
zh-hk, zh-sg, zh-mo, zh-cn, etc. the websit will auto transfer to
tools.wmflabs.org and tell me "page not found". Please fix this bug.

Redirecting to meta has some sense, redirecting to tools.wmflabs.org seems very unlikely...

I again wonder where that code is related (Gadget? Cannot see anything in https://zh.wikivoyage.org/wiki/MediaWiki:Common.css and .js)

(In reply to comment #2)

(In reply to comment #0)

Just like the topic, when we change the language between zh-hans, zh-hant ,
zh-hk, zh-sg, zh-mo, zh-cn, etc. the websit will auto transfer to
tools.wmflabs.org and tell me "page not found". Please fix this bug.

Redirecting to meta has some sense, redirecting to tools.wmflabs.org seems
very
unlikely...

Yes.It will redirect to zh.wikivoyage.org/wiki/Zh/* ,not tools.wmflabs.org.

(In reply to comment #0)

the websit will auto transfer to tools.wmflabs.org and tell me "page not found".

Which page in labs?

(In reply to comment #1)

Please provide steps to reproduce, click by click, so somebody else could try
to see the same problem too.

Go to zh.wikivoyage.org, and select an item from the dropdown next to the "talk" tab. You should get a page written in a different language variant (as seen on zhwiki, for example). Instead you get a 404.

Variants seems not to be enabled on zhwikivoyage. Maybe a missing setting in InitialiseSettings.

(In reply to comment #7)

Maybe a missing setting in InitialiseSettings.

or a missing Apache setup directive.

zh.wikivoyage.org/wiki/首页?variant=zh works.

(In reply to comment #8)

(In reply to comment #7)

Maybe a missing setting in InitialiseSettings.

or a missing Apache setup directive.

Yes, in https://noc.wikimedia.org/conf/main.conf there're some lines like

Alias /zh /usr/local/apache/common/docroot/wikipedia.org/w/index.php

which need to copied to the Wikivoyage section.

(In reply to comment #1)

Please provide steps to reproduce, click by click, so somebody else could try
to see the same problem too.

Andre could you please cc me for any similar issues related to variant configurations?

Change 110155 had a related patch set uploaded by TTO:
Add variant rewrites for zhwikivoyage

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

Liangent gave a -1 on https://gerrit.wikimedia.org/r/#/c/110155/ so you should discuss the patchset in Gerrit instead to reach agreement.

(In reply to comment #14)

Liangent gave a -1 on https://gerrit.wikimedia.org/r/#/c/110155/ so you
should
discuss the patchset in Gerrit instead to reach agreement.

That -1 is for some technical inconsistency between configuration files, not for any disagreement in consensus.

It isn't a normal bug ,please change the importance to "high" and change the severity to "critical". Because the bug blocks language converting completely.

@Andre / TTO / Dzahn / Faidon Liambotis: Any updates?

Obviously not yet, otherwise updates would be mentioned here. You can find out by clicking at the link in comment 17 and checking the status of the patch.

Also note that every comment added to Bugzilla creates bugmail that recipients need to read. :)

Change 110155 merged by Faidon Liambotis:
Add variant rewrites for zhwikivoyage

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

I just did. The links work from here but it's hard for me to test it properly. Please do and let us know!