Page MenuHomePhabricator

Search engine hangs for certain keywords
Closed, ResolvedPublic

Description

Author: le.korrigan

Description:
Since the new search engine (Lucene search 2.1 I think) has been activated on fr.wikipedia, since yesterday in fact, some searches do return only a blanck page (i.e. nothing at all even when purging the cache). When trying searching with a slightly different URL but still with the same keyword, then a "Wikimedia Foundation error" is returned saying:

"PHP fatal error in /usr/local/apache/common-local/php-1.5/extensions/MWSearch/MWSearch_body.php line 252:
Call to a member function getNamespace() on a non-object"

This happens currently for the keywords "cinéma" (with accent) and "français". See http://fr.wikipedia.org/wiki/Special:Search?search=cin%C3%A9ma&fulltext=Rechercher or http://fr.wikipedia.org/wiki/Special:Search?search=fran%C3%A7ais&fulltext=Rechercher

These can be commonly-searched names.

Thanks


Version: unspecified
Severity: critical
URL: http://fr.wikipedia.org/wiki/Special:Search?search=fran%C3%A7ais&fulltext=Rechercher

Details

Reference
bz16706

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 21 2014, 10:24 PM
bzimport set Reference to bz16706.
bzimport added a subscriber: Unknown Object (MLST).

Works for me, it must have been a temporary glitch

First gives me blank page; second error page:

HTTP/1.x 500 Internal Server Error

Date: Fri, 19 Dec 2008 09:07:41 GMT

Server: Apache

X-Powered-By: PHP/5.2.4-2ubuntu5wm1

Cache-Control: private, s-maxage=0, max-age=0, must-revalidate

Content-Encoding: gzip

Vary: Accept-Encoding

X-Vary-Options: Accept-Encoding;list-contains=gzip

Content-Length: 20

Content-Type: text/html

X-Cache: MISS from sq30.wikimedia.org, MISS from knsq2.knams.wikimedia.org, MISS from knsq4.knams.wikimedia.org

X-Cache-Lookup: MISS from sq30.wikimedia.org:3128, MISS from knsq2.knams.wikimedia.org:3128, MISS from knsq4.knams.wikimedia.org:80

Via: 1.0 sq30.wikimedia.org:3128 (squid/2.6.STABLE21), 1.0 knsq2.knams.wikimedia.org:3128 (squid/2.6.STABLE21), 1.0 knsq4.knams.wikimedia.org:80 (squid/2.6.STABLE21)

Connection: close

Well, that's weird. It still does work for me.

rainman wrote:

The error seem to indicate that there is malformed title in the results, which is not true. Anyways, cannot reproduce the bug at the moment, and I also added additional check in r44802 so that would be resolved.

If this happens again, or if someone can still reproduce it, please try a query that won't hit vikiversity, e.g. français moderne, or a query that will hit frwiki but not any of the sister projects. Those queries should always work as I suspect there is some kind of problem with construction of interwiki titles in MWSearch..

le.korrigan wrote:

OK, it works for me now. I'll bear in mind your recommendations. I guess you can close the bug?

rainman wrote:

OK, closing bug then. Please reopen if the issue reappears, and if it does please try those two types of queries so we can narrow down the problem.

Still doesn't work for me, but français moderne and parlée works, for example.

Wiki.Melancholie wrote:

REOPEN-ing
Still get blank pages and server errors:
PHP fatal error in /usr/local/apache/common-local/php-1.5/extensions/MWSearch/MWSearch_body.php line 252:
Call to a member function getNamespace() on a non-object

le.korrigan wrote:

Oh yep indeed for me too at the moment (Firefox 3.0.4 and IE 7 on Windows Vista 32bit).

  • "cinéma" gives a blank page.
  • "français moderne" works, but "français" doesn't.
  • Queries which only hit frwiki (not sister projects) seem to work fine as far as I've tested.
  • After some more testing, searches which return results only from the Wiktionary ("vraquier"), Wikiquote ("bienvenue"), Wikisource ("français moderne"), Wikinews ("émeutes") and Wikibooks ("tarte") all work. However so far I haven't been able to make the search work with keywords when I'm sure to get results from Wikiversity (I have tried most of the "main articles" names on Wikiversity's main page). I get either blank pages or the PHP error mentioned above.

FWIW everything still works for me (Firefox 3.0.3, Ubuntu 8.10 Intrepid)

  • "cinéma" works and provides results from sister projects (Wiktionary, Wikinews & Wikisource)
  • "français" works and provides results from sister projects (Wiktionary, Wikibooks _& Wikiversity_)
  • other searches like "physique" also provides results from Wikiversity

rainman wrote:

Thanks for testing! I've poked around a bit but couldn't find any obvious reason why it works for some, but not for others, and why it consistently fails (even on different urls) at one time but not a couple of hours later.

For now I am going to disable interwiki hits for fr.wp until r44802 is synced.

rainman wrote:

Since r44802 is now synced, re-enabling interwiki hits for fr.wp.

[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]