Last modified: 2012-04-12 13:53:41 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 T27242, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25242 - Cannot search with mediawiki 1.16
Cannot search with mediawiki 1.16
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.16.x
All All
: Normal critical (vote)
: ---
Assigned To: Max Semenik
:
Depends on:
Blocks: sqlite
  Show dependency treegraph
 
Reported: 2010-09-22 01:53 UTC by biowongyc
Modified: 2012-04-12 13:53 UTC (History)
1 user (show)

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


Attachments
FTS3 support checker (262 bytes, text/plain)
2010-09-22 14:49 UTC, Max Semenik
Details

Description biowongyc 2010-09-22 01:53:45 UTC
I use SQlite database in my webhost company.  I upgraded the wiki to v1.16.  However, I still cannot use the search function of the mediawiki to search for the whole wiki installed.  It always gives no return.  How to solve the problem?
Comment 1 Max Semenik 2010-09-22 04:16:47 UTC
Is your SQLite compiled with FTS3 support?

You can learn this by running php maintenance/eval.php

and then typing:
$db=new DatabaseSqliteStandalone(':memory:'); var_dump($db->getFulltextSearchModule());
Comment 2 Max Semenik 2010-09-22 06:00:04 UTC
And have you tried running php maintenance/rebuildtextindex.php ?
Comment 3 biowongyc 2010-09-22 07:26:13 UTC
I used only a free webhost provider, I don't know where to type in 

$db=new DatabaseSqliteStandalone(':memory:');
var_dump($db->getFulltextSearchModule());
Comment 4 Max Semenik 2010-09-22 07:56:40 UTC
Did you run the updater after uploading the 1.16 files?
Comment 5 biowongyc 2010-09-22 10:40:53 UTC
I tried to clear the wiki and re-install it again.  However, I still could not use the search function.
Comment 6 Max Semenik 2010-09-22 14:49:18 UTC
Created attachment 7696 [details]
FTS3 support checker

Then looks like your SQLite is compiled without the FTS3 module, which is needed for search. Gotta add this information to Special:Version for clarity.

If you want to verify that this is really the case, put the attached file to your MediaWiki installation root (where index.php is) and visit it with a browser.

The requirement of FTS3 is documented here: http://www.mediawiki.org/wiki/SQLite#Search_engine
Comment 7 biowongyc 2010-09-23 11:44:49 UTC
my website is tested, and it does not support.  Is it true that I can do nothing? or just wait until there is a new version?
Comment 8 Max Semenik 2010-09-23 12:09:00 UTC
All versions of SQLite starting from 3.5.3 released in November 2007 are built with FTS3 by default. I don't know when PHP started using it, but it seems to have happened long ago. So either your PHP is outdated, or it was explicitly built without FTS3 by "smart" packagers or server admins.

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


Navigation
Links