Email Header:
PHP Notice: Coding problem: unsupported modification of PAGE->context from 70 to 70* line 1064 of /lib/pagelib.php: call to debugging()
Email Body
PHP Notice: Coding problem: unsupported modification of PAGE->context from 70 to 70* line 1064 of /lib/pagelib.php: call to debugging()
* line 88 of /mod/customcert/classes/task/email_certificate_task.php: call to moodle_page->set_context()
* line 248 of /lib/cronlib.php: call to mod_customcert\task\email_certificate_task->execute()
* line 120 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
* line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
* line 79 of /admin/cli/cron.php: call to cron_run() in /var/www/vhosts/academy.lernyx.com/httpdocs/lib/weblib.php on line 3249
It seems to be sending emails every time the CronJob runs, then exceeds the email limit. Any ideas?