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

Moodle cron not completing if PHP not 5.3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.1.2
    • Component/s: Libraries, Questions, Quiz
    • Labels:
      None
    • Environment:
      Apache version 2.2.19
      PHP version 5.2.17
      MySQL version 5.1.52
      Architecture i686
      Operating system linux

      Description

      While debugging cron (quiz email notifications were not being sent), I came across some an "unexpected T_PAAMAYIM_NEKUDOTAYIM" in the lib/cronlib.php - line 338:

      backup_cron_automated_helper::run_automated_backup();

      changed this to:

      $backup_cron_automated_helper->run_automated_backup();

      After correcting this instance, I received the same error in question/engine/lib.php - line 338 (?!) as well:
      return $class::get_required_behaviours();

      changed this to:

      return $class>>get_required_behaviours();

      And the cron script proceeded and I received quiz submission email notifications (finally). However, I am still receiving an error in my cron log:

      Starting processing the event queue...
      done.
      Starting the completion cron...
      Marking users as started
      Running completion_criteria_date->cron()
      Running completion_criteria_activity->cron()
      Running completion_criteria_duration->cron()
      Running completion_criteria_grade->cron()
      Running completion_criteria_course->cron()
      Aggregating completions
      done
      <br />
      <b>Notice</b>: Undefined variable: backup_cron_automated_helper in <b>/home/bugsbunny/public_html/moodle/lib/cronlib.php</b> on line <b>339</b><br />
      <br />
      <b>Fatal error</b>: Call to a member function run_automated_backup() on a non-object in <b>/home/bugsbunny/public_html/moodle/lib/cronlib.php</b> on line <b>339</b><br />

      It appears that I fixed the email notifications, but created this error in Not using the automated backup, however, it would be nice to figure this out and correct it.

        Attachments

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              rhettcorby Rhett Daniel
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

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