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

Moodle cron not completing if PHP not 5.3

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1, 2.2
    • 2.1.2
    • Libraries, Questions, Quiz
    • None
    • 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

            skodak Petr Skoda
            rhettcorby Rhett Daniel
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rajesh Taneja Rajesh Taneja
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Oct/11