Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.4
-
Fix Version/s: None
-
Component/s: Global search
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
The error:
Processing cron function for search....
-DELETE---
<br />
<b>Warning</b>: require_once(Zend/Search/Lucene/Exception.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>E:\Website Files\moodle\search\Zend\Search\Lucene.php</b> on line <b>22</b><br />
<br />
<b>Fatal error</b>: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Zend/Search/Lucene/Exception.php' (include_path='E:\Website Files\moodle;search;E:\Website Files\moodle/lib/pear;.;C:\php5\pear') in <b>E:\Website Files\moodle\search\Zend\Search\Lucene.php</b> on line <b>22</b><br />
Caused by the include path having a ; in it instead of a \.
Fix:
Line 28 of /search/delete.php should read:
ini_set('include_path', $CFG->dirroot.'\search'.PATH_SEPARATOR.ini_get('include_path'));
I ran into this problem on one of our test servers and this fix did the trick. Although it actually should be a / rather than a \ for none windows servers.