Hello,
this is my first post here at the cloudron forum with the need of any helping input for fixing this (big) problem...
On 2 instances (VM's) with cloudron and the moodle app we have the problem that e-mails from forums and maybe other activities are not send.
Outgoing E-Mails (SMTP) are ok and tested. Also ok and tested are direct (mass-)messages from a course to enrolled users as e-mails.
It seems that the cron can not be completed while running / idle scheduled tasks.
In both instances found the following PHP Error in the scheduled task "core\task\messaging_cleanup_task"
Moodle Backend - Task-Logdata (../admin/tasklogs.php):
Execute scheduled task: Hintergrundprozess für Mitteilungen (core\task\messaging_cleanup_task)
... started 10:53:17. Current memory use 20.2 MB.
Notice: Undefined property: stdClass::$dirroot in /app/data/moodle/message/output/popup/message_output_popup.php on line 26
Warning: require_once(/message/output/lib.php): failed to open stream: No such file or directory in /app/data/moodle/message/output/popup/message_output_popup.php on line 26
Fatal error: require_once(): Failed opening required '/message/output/lib.php' (include_path='/app/data/moodle/lib/pear:.:/usr/share/php') in /app/data/moodle/message/output/popup/message_output_popup.php on line 26
Notice: Undefined property: stdClass::$debugdeveloper in /app/data/moodle/lib/dml/moodle_database.php on line 1100
Notice: Undefined property: stdClass::$debugdeveloper in /app/data/moodle/lib/dml/moodle_database.php on line 1100
Cloudron / Moodle App - Log:
Aug 02 10:44:17 ==> Run cron script
Aug 02 10:44:17 PHP Warning: require_once(): https:// wrapper is disabled in the server configuration by allow_url_include=0 in /app/data/moodle/message/output/popup/message_output_popup.php on line 26
Aug 02 10:44:17 PHP Warning: require_once(https://{moodle.cloudrondomain.de}/message/output/lib.php): failed to open stream: no suitable wrapper could be found in /app/data/moodle/message/output/popup/message_output_popup.php on line 26
Aug 02 10:44:17 PHP Fatal error: require_once(): Failed opening required 'https://{moodle.cloudrondomain.de}/message/output/lib.php' (include_path='/app/data/moodle/lib/pear:.:/usr/share/php') in /app/data/moodle/message/output/popup/message_output_popup.php on line 26
Aug 02 10:44:17 PHP Notice: Undefined property: stdClass::$debugdeveloper in /app/data/moodle/lib/dml/moodle_database.php on line 1100
Aug 02 10:44:17 PHP Notice: Undefined property: stdClass::$debugdeveloper in /app/data/moodle/lib/dml/moodle_database.php on line 1100
What i found so far:
The variable "CFG->$dirroot" is not declared in the configuration (in config.php = CFG ->$wwwroot), but in message_output_popup.php on line 26.
Following Debugging / Checks are done:
/app/code/new/admin/cli# php checks.php
OK: Alle 'status' Überprüfungen sind in Ordnung.
/app/code/new/admin/cli# php check_database_schema.php
Database structure is ok.
/app/code/new/admin/cli# php fix_course_sequence.php --courses=* --fix
Checking 9 courses...
Course [1] is OK
Course [14] is OK
Course [13] is OK
Course [2] is OK
Course [7] is OK
Course [15] is OK
Course [12] is OK
Course [11] is OK
Course [4] is OK
...All courses are OK
Thanks for every hint