Cron job not completing - Moodle 3.1.11+

Cron job not completing - Moodle 3.1.11+

by Hoang Vuong -
Number of replies: 0

Hello

After I completed my upgrade from 3.1 to 3.1.11, my cron job does not complete running. It does not go beyond the overdue quiz attempts. I turned on debug mode on developer level and it did not showed the error below while browsing the site. However nothing new showed when i ran the job. I restored some courses I had on version two of Moodle to this one. Any ideas how I can clear this up so the job completes running? 

PHP version: 5.4.45

Linux Server

Moodle 3.1.11+ (Build: 20180329)

Thanks


Execute scheduled task: Procesamiento heredado de extensiones (core\task\legacy_plugin_cron_task)
... started 22:46:21. Current memory use 19.1MB.
Running auth crons if required...
Running enrol crons if required...
Starting activity modules
Processing module function assign_cron ...
... used 4 dbqueries
... used 0.14632201194763 seconds
done.
Processing module function quiz_cron ...

  Looking for quiz overdue quiz attempts...

Notice: Undefined property: stdClass::$section in /mod/quiz/attemptlib.php on line 668
.
.
.
Fatal error: Call to undefined method question_null_step::get_qt_data() in /question/behaviour/adaptive/behaviour.php on line 180

Average of ratings: -