Best practice forum (Archived)

Error in Global Search block

 
? ?
Error in Global Search block
by ? ? - Monday, 18 April 2011, 6:46 PM
 

I added in the Global Search block to my home page and when i try to use it i get this error:

Zend_Search_Lucene_Exception: Utf8 compatible lower case filter needs mbstring extension to be enabled.

I'm not sure what this means or how to fix it...

Simon Coggins
Re: Error in Global Search block
by Simon Coggins - Monday, 18 April 2011, 7:28 PM
Group Totara

The cause of the error appears to be that you don't have the 'mbstring' PHP extension installed on your server.

The problem, according to this moodle tracker issue, is that the mbstring extension is recommended but not required at installation:

http://tracker.moodle.org/browse/MDL-26115

You should be able to fix it by installing the extension. See here for details:

http://www.php.net/manual/en/mbstring.installation.php

If your server is running Fedora/Redhat, it should be as simple as running:

yum install php-mbstring

to install, then:

httpd -k restart

to refresh the configuration (you'll need root access).


? ?
Re: Error in Global Search block
by ? ? - Thursday, 28 April 2011, 11:02 PM
 
I installed the php mbstring and restarted the server, global search seems to work now.

How often do you need to refresh the index for it? Or is this done in the maintenance cron?
Simon Coggins
Re: Error in Global Search block
by Simon Coggins - Saturday, 30 April 2011, 1:46 AM
Group Totara

I had a quick look, it appears to run on the moodle cron, as long as "enable file indexing" is set via Site Admin > Plugins > Blocks > Global Search.

Simon