Last modified: 2013-03-26 11:24:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18706, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16706 - Search engine hangs for certain keywords
Search engine hangs for certain keywords
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
lucene-search-2 (Other open bugs)
unspecified
All All
: Highest critical with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://fr.wikipedia.org/wiki/Special:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-19 08:21 UTC by Rémi Kaupp
Modified: 2013-03-26 11:24 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rémi Kaupp 2008-12-19 08:21:11 UTC
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
Comment 1 Guillaume Paumier 2008-12-19 09:06:07 UTC
Works for me, it must have been a temporary glitch
Comment 2 Niklas Laxström 2008-12-19 09:08:59 UTC
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

Comment 3 Guillaume Paumier 2008-12-19 09:47:15 UTC
Well, that's weird. It still does work for me.
Comment 4 Robert Stojnic 2008-12-19 13:28:38 UTC
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.. 
Comment 5 Rémi Kaupp 2008-12-19 22:35:04 UTC
OK, it works for me now. I'll bear in mind your recommendations. I guess you can close the bug?
Comment 6 Robert Stojnic 2008-12-19 22:37:17 UTC
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. 
Comment 7 Niklas Laxström 2008-12-21 09:54:54 UTC
Still doesn't work for me, but français moderne and parlée works, for example.
Comment 8 Melancholie 2008-12-21 10:18:31 UTC
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 
Comment 9 Rémi Kaupp 2008-12-21 10:36:09 UTC
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. 
Comment 10 Guillaume Paumier 2008-12-21 10:45:52 UTC
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
Comment 11 Robert Stojnic 2008-12-21 12:58:35 UTC
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.
Comment 12 Robert Stojnic 2008-12-24 12:31:45 UTC
Since r44802 is now synced, re-enabling interwiki hits for fr.wp. 
Comment 13 Andre Klapper 2013-03-26 11:24:50 UTC
[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links