Best practice forum (Archived)

Error in Global Search block

 
??
Error in Global Search block
?? 发表于 2011年04月18日 Monday 18:46
 

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...

CogginsSimon
Re: Error in Global Search block
CogginsSimon 发表于 2011年04月18日 Monday 19:28
小组 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
?? 发表于 2011年04月28日 Thursday 23:02
 
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?
CogginsSimon
Re: Error in Global Search block
CogginsSimon 发表于 2011年04月30日 Saturday 01:46
小组 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