Topic on Project:Support desk

Search box spins and then returns "No match was found"

8
Summary by Taavi

Resolved using $wgResourceModules['wikibase.ui.entitysearch']['scripts'] = [];.

Txantimedia (talkcontribs)

Suddenly my search box stopped working. Previously, it would return previews of all matches. Now, no matter what you type, it displays a spinning wheel and then returns "No match was found"

Thinking I would fix the problem, I went to the trouble of installing the Extension:SphinxSearch, which requires also installing and configuring Sphinx. The search now returns all sorts of stuff, but I still get the No match was found and spinning wheel, making it appear that the search isn't working.

What do I look for to resolve this problem? I'm not seeing any errors in the console.

Site: wiki.vvfh.org

OS: FreeBSD 10.3

MediaWiki 1.29.1, PHP 7.1.10, MySQL 5.6.37

MarkAHershberger (talkcontribs)

I tried searching for "vietnam" on your site and saw the spinning wheel as you mention. If you want to try and figure this out you will probably need to use the debug log. I'm afraid I don't have any ready answers, though.

Txantimedia (talkcontribs)

The Wikibase extension was causing it. I've disabled it for now, while I figure out why.

Txantimedia (talkcontribs)

I'm getting Lua module errors because wikibase is missing. I tried installing both the client and the repository, but I still get the failures in the search bar. Is there some trick to installing Wikibase so it doesn't screw up the search function?

105.112.53.33 (talkcontribs)

Is there no one that have answer to this question: Is there some trick to installing Wikibase so it doesn't screw up the search function?

Cccefalon (talkcontribs)

I have the same problem. A solution would be highly appreciated.

Reception123 (talkcontribs)

I think the fix to this would be to set $wgWBRepoSettings['enableEntitySearchUI'] to false. (See Topic:Tr40pzd6qcpk2myo for more details

Cccefalon (talkcontribs)

Thank you very much, @Reception123 This led me the right way. While

$wgWBRepoSettings['enableEntitySearchUI'] = false;

did not worked for me - perhaps because I am running the 1.31 version, the addition of another line (described at https://phabricator.wikimedia.org/T205560)

$wgResourceModules['wikibase.ui.entitysearch']['scripts'] = [];

resolved the problem for my local wiki at my utmost satisfaction.