Page MenuHomePhabricator

every search results in "Query error" next to search results in hebrew wiki
Closed, ResolvedPublic

Description

query error bug

When searching in he.wiki any search returns "Query error".

This seems to be due to missing or invalid entity :

https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&ids=%D7%9E%D7%9B%D7%91%D7%99_%D7%AA%D7%9C_%D7%90%D7%91%D7%99%D7%91_%28%D7%9B%D7%93%D7%95%D7%A8%D7%92%D7%9C%29&callback=jQuery18306179546795319766_1400487787685&_=1400487788755

please see attached screen shot


Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0

Attached:

wikidata_query_error_bug.png (982×1 px, 138 KB)

Details

Reference
bz65472

Event Timeline

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

Can you both please provide links to where you see the error?

This isn't standard Wikidata functionality. Is it possible this is coming from https://it.wikipedia.org/wiki/MediaWiki:Common.js ? (See the second to last part.)

do you refer to:

if (mw.config.get('wgCanonicalSpecialPageName') === 'Search' || (mw.config.get('wgArticleId') === 0 && mw.config.get('wgCanonicalSpecialPageName') === false)) {
importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript");

in https://he.wikipedia.org/wiki/%D7%9E%D7%93%D7%99%D7%94_%D7%95%D7%99%D7%A7%D7%99:Common.js ?

Yes. I am not 100% certain but this seems like a good start.

https://en.wikipedia.org/wiki/MediaWiki_talk:Wdsearch.js#Query_error_next_to_search_results

In it.wiki the search works now, I think the latest changes at script "Wdsearch" fix this issue.
Thanks at all, and sorry for the inconvenience.