Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18679

Search stops cron due to bad include path + fix

    XMLWordPrintable

    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'));

        Attachments

          Activity

            People

            Assignee:
            vf Valery Fremaux
            Reporter:
            mattgibson Matt Gibson
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: