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

Cron script no longer works properly in CLI 'mode' - needs warning operation has changed from 1.9

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1.1, 2.2
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Administration
    • Labels:
      None

      Description

      admin/cron.php's loading of config.php seems to have been simplified (compared to the 1.9) version and this results in it no longer working as a CLI script when called from cron. E.g...

      /usr/local/bin/php -f /home/moodle2/moodle/admin/cron.php

      results in config.php not being found. I suppose that adding a cd to the admin directory is a workaround but it seems like a backward step.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Oct/11