LMSouq
moodle-core Open

Scheduled tasks not running on moodle

MA
Marc Hypolite
1 month ago
3 views
Problem Description
When the cron job for moodle runs I get this output: Execute scheduled task: Clean up ad hoc task metadata (core\task\task_lock_cleanup_task) !!! Exception - Class 'IntlTimeZone' not found !!! Fatal error: Uncaught Error: Call to a member function real_escape_string() on null in /home/cbisacok/public_html/lib/dml/mysqli_native_moodle_database.php:1145 Stack trace: #0 /home/cbisacok/public_html/lib/dml/mysqli_native_moodle_database.php(1274): mysqli_native_moodle_database->emulate_bound_params('SELECT RELEASE_...', Array) #1 /home/cbisacok/public_html/lib/dml/moodle_database.php(1679): mysqli_native_moodle_database->get_records_sql('SELECT RELEASE_...', Array, 0, 0) #2 /home/cbisacok/public_html/lib/classes/lock/mysql_lock_factory.php(161): moodle_database->get_record_sql('SELECT RELEASE_...', Array) #3 /home/cbisacok/public_html/lib/classes/lock/lock.php(120): core\lock\mysql_lock_factory->release_lock(Object(core\lock\lock)) #4 /home/cbisacok/public_html/lib/classes/lock/lock.php(134): core\lock\lock->release() #5 [internal function]: core\lock\lock->__destruct() #6 {main} thrown in /home/cbisacok/public_html/lib/dml/mysqli_native_moodle_database.php on line 1145 I'm running moodle on shared hosting on namecheap. i'm on moodle version 4.1.4 and i'm using PHP Version 8.0.30 I have intl enabled in the php settings it looks like this: [![enter image description here](https://i.sstatic.net/VMmWJ.png)](https://i.sstatic.net/VMmWJ.png) and here is some addtional system information: [![enter image description here](https://i.sstatic.net/piG96.png)](https://i.sstatic.net/piG96.png) Please let me know if there is anymore information I can add that would be helpful. This problem causes non of the sheduled tasks in moodle to run I'm kind of at a lost on how to move forward debugging this problem...

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base