Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4574

Strange behaviour from importnow.php when run by cron

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.5.1
    • Enrol: Banner/LMB
    • None
    • 2013080202
    • MOODLE_25_STABLE

      1. Configure lmb enrollment plugin in the normal way making sure that icgorldi.xml and lmb.log files are presnet
      2. Execute importnow.php using a crontab entry similar to :
      45 06 * * * root /usr/local/bin/wget -O - --no-check-certificate https://moodle.xxx.edu/enrol/lmb/importnow.php
      3. The system demands login authentication before it will proceed.
      4. Attempt to run the importnow.php with /usr/local/bin/php instead of wget gives error 'Command line scripts must define CLI_SCRIPT before requiring config.php'

      This is a major change from 1.9 and one which I could not find documented anywhere.
      We circumvented the problem by checking the box 'check XML file during cron' which executes importnow via cron.php.

            emerrill Eric Merrill
            markpearson Mark Pearson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.