Moodle
  1. Moodle
  2. MDL-18679

Search stops cron due to bad include path + fix

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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
    • Rank:
      2353

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

        Activity

        Hide
        Jason Hardin added a comment -

        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.

        Show
        Jason Hardin added a comment - 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.
        Hide
        Michael de Raadt added a comment -

        Thanks for reporting this issue.

        We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

        If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

        Michael d;

        lqjjLKA0p6

        Show
        Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
        Hide
        Michael de Raadt added a comment -

        I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

        Show
        Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: