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

Cron never runs through the CLI if 'allowedip' has been set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      PHP 5.2.8
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      'allowedip' is configured and works properly when accessing the site through a web browser.

      'cronclionly' is enabled.

      When the cron.php script is executed (from crontab using the php binary) nothing is processed and the following message is instead printed: "This site is not available currently."

      The function remoteip_in_list() in moodlelib.php doesn't seem like it will ever return true if cron.php has been run through the CLI.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poltawski Dan Poltawski
                Reporter:
                pholden Paul Holden
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10