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

Background processing for gradebook (core\task\grade_cron_task) fails: Class 'grade_grade' not found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7, 3.7 regressions
    • Fix Version/s: 3.7.1
    • Component/s: Gradebook, Tasks
    • Labels:

      Description

      As seen on moodle.org:

      $ sudo -u www-data php admin/tool/task/cli/schedule_task.php --execute='\core\task\grade_cron_task'                                                                                           
      [PID 29648] Execute scheduled task: Background processing for gradebook (core\task\grade_cron_task)
      Default exception handler: Exception - Class 'grade_grade' not found Debug: 
      Error code: generalexceptionmessage
      * line 67 of /lib/classes/task/grade_cron_task.php: Error thrown
      * line 157 of /admin/tool/task/cli/schedule_task.php: call to core\task\grade_cron_task->execute()
       
      !!! Exception - Class 'grade_grade' not found !!!
      PHP Fatal error:  Uncaught Error: Call to a member function real_escape_string() on null in /var/www/html/lib/dml/mysqli_native_moodle_database.php:1112
      Stack trace:
      #0 /var/www/html/lib/dml/mysqli_native_moodle_database.php(1135): mysqli_native_moodle_database->emulate_bound_params('UPDATE lock_db\n...', Array)
      #1 /var/www/html/lib/classes/lock/db_record_lock_factory.php(179): mysqli_native_moodle_database->execute('UPDATE lock_db\n...', Array)
      #2 /var/www/html/lib/classes/lock/lock.php(102): core\lock\db_record_lock_factory->release_lock(Object(core\lock\lock))
      #3 /var/www/html/lib/classes/lock/lock.php(116): core\lock\lock->release()
      #4 [internal function]: core\lock\lock->__destruct()
      #5 {main}
        thrown in /var/www/html/lib/dml/mysqli_native_moodle_database.php on line 1112
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mudrd8mz David Mudrák (@mudrd8mz)
                Reporter:
                mudrd8mz David Mudrák (@mudrd8mz)
                Peer reviewer:
                Damyon Wiese
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 4 minutes
                  1h 4m