Issue Details (XML | Word | Printable)

Key: MDL-18679
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Valery Fremaux
Reporter: Matt Gibson
Votes: 1
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Search stops cron due to bad include path + fix

Created: 25/Mar/09 06:30 PM   Updated: 07/Apr/09 02:00 PM
Return to search
Component/s: Global search
Affects Version/s: 1.9.4
Fix Version/s: None

Participants: Jason Hardin, Matt Gibson and Valery Fremaux
Security Level: None
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
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'));

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jason Hardin added a comment - 07/Apr/09 02:00 PM
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.