Page MenuHomePhabricator

Search: Deselected article namespace does not result in the vanishing of the "no article exists" hint
Open, LowestPublic

Description

Deselected article namespace does not result in the vanishing of the "no article exists" hint

Event Timeline

Restricted Application added a project: TCB-Team. · View Herald TranscriptNov 29 2017, 3:01 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I'm get the following JS-error on console:

Uncaught TypeError: Cannot read property 'replace' of undefined
    at getNamespacePrefix (<anonymous>:179:1720)
    at Title.getNamespacePrefix (<anonymous>:186:88)
    at Title.getPrefixedDb (<anonymous>:186:648)
    at Title.getUrl (<anonymous>:187:108)
    at i (<anonymous>:265:926)
    at <anonymous>:263:927
getNamespacePrefix @ VM784:179
getNamespacePrefix @ VM784:186
getPrefixedDb @ VM784:186
getUrl @ VM784:187
i @ VM784:265
(anonymous) @ VM784:263
requestIdleCallback (async)
./src/index.js @ VM784:263
t @ VM784:244
(anonymous) @ VM784:244
mw.loader.implement.css @ VM784:244
runScript @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:162
checkCssHandles @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:162
(anonymous) @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:162
fire @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:46
fireWith @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:47
fire @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:47
fireCallbacks @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:157
addEmbeddedCSS @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:157
(anonymous) @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:157
requestAnimationFrame (async)
addEmbeddedCSS @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:157
execute @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:163
handlePending @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:159
markModuleReady @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:161
runScript @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:162
checkCssHandles @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:162
(anonymous) @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:162
fire @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:46
fireWith @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:47
fire @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:47
fireCallbacks @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:157
addEmbeddedCSS @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:157
(anonymous) @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:157
requestAnimationFrame (async)
addEmbeddedCSS @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:157
execute @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:163
implement @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:169
(anonymous) @ VM784:29
DOMEval @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:1
globalEval @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:4
(anonymous) @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:166
requestIdleCallback (async)
asyncEval @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:166
work @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:167
enqueue @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:164
load @ VM742 load.php?debug=false&lang=de-formal&modules=jquery%2Cmediawiki|mediawiki.legacy.wikibits&only=scripts&skin=vector&version=1b46sjy:171
(anonymous) @ index.php?advancedSearchOption-original=Michael+Schönitzer+WMDE&search=Michael+Schönitzer+WMDE&title=Spezial:Suche&profile=default&fulltext=1&advancedSearchOption-filetype=&advancedSearch-current={"options"%3A{}%2C"namespaces"%3A["2"%2C"3"%2C"4"]}&ns2=1&ns3=1&ns4=1&searchToken=ccykra0n90yl9xx6u4tssv6y0:11
startUp @ VM741 load.php?debug=false&lang=de-formal&modules=startup&only=scripts&skin=vector:82
script.onload @ VM741 load.php?debug=false&lang=de-formal&modules=startup&only=scripts&skin=vector:82
Lea_WMDE updated the task description. (Show Details)Nov 29 2017, 3:27 PM
Lea_WMDE renamed this task from Advanced Search: Namespace Filters not working in dewiki to Search: Deselected article namespace does not result in the vanishing of the "no article exists" hint.Nov 29 2017, 3:35 PM
Lea_WMDE edited projects, added Discovery; removed Advanced-Search.
Lea_WMDE updated the task description. (Show Details)

Due to confusion this ticket was edited multiple times and has now been split into two. The original Bug is now handled at the Task T181644 – here it's just about the note "no article exists…".

It is possible the fix for T181644 will also fix this.

I don't think this is related to the AdvancedSearch extension. If I have the betafeature disabled, and only search in the "user" namespace, I still get the message that the "article" doesn't exist.

Also, IMO the JS error and the article-not-exist message seem to not be related. The JS error seems more related to T181644 and might be fixed with that issue. However, I was not able to reproduce the JS error locally, so I cannot confirm.

thiemowmde moved this task from Incoming to Advanced Search on the TCB-Team board.Jun 18 2018, 9:47 AM
thiemowmde triaged this task as Lowest priority.
thiemowmde added a subscriber: thiemowmde.

The message reported here is a local override that only exists in the German Wikipedia. The original English message is untouched: https://de.wikipedia.org/wiki/MediaWiki:Searchmenu-new/en. It's the German override that talks about the "article" namespace: https://de.wikipedia.org/wiki/MediaWiki:Searchmenu-new.

One way to improve this situation is to ask the community to replace the word "article" with "page".

But the link would still point to the main namespace. It always does. This is something MediaWiki cores SpecialSearch.php implementation does. I doubt it's worth improving this because of the complexity of such a task. One reasonable solution I can think of is to intentionally switch to a much more generic message without a link when the main namespace is not selected.