Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error to apply a template on courses #33

Open
linsharon opened this issue May 16, 2022 · 1 comment
Open

error to apply a template on courses #33

linsharon opened this issue May 16, 2022 · 1 comment

Comments

@linsharon
Copy link

linsharon commented May 16, 2022

Operating System: Debian GNU/Linux 10 (buster)

Apache: 2.4.38-3+deb10u7

PostgreSQL: 11+200+deb10u4

Moodle version: Moodle 3.11.4+ (Build: 20211223) | Version 2021051704.12 | Stable version

PHP version: PHP 7.3.31-1~deb10u1

Error Log:===============================================================================

[Mon May 16 14:58:36.557096 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] instantiating restore controller cf83b34c1ec8fe601be6b6fc9370d485, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.565303 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] setting controller status to 100, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.570299 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] loading backup info, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.572240 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] loading controller plan, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.576494 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] setting controller status to 300, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.577089 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] applying restore defaults, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.579306 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] Unknown setting: questionbank, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.580192 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] setting controller status to 400, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.580694 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] checking plan security, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.581232 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] setting controller status to 600, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.581684 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] saving controller to db, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.582239 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] calculating controller checksum 16b11b6a575dfd72216366c0e170b9ab, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.603596 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] loading controller from db, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.679821 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] setting controller status to 700, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.680432 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] saving controller to db, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.681145 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] calculating controller checksum 0424f1f0e235c0fe6f66008be37b7541, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.685748 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] loading controller from db, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304
[Mon May 16 14:58:36.844629 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] PHP Notice: Undefined index: self in /var/www/lms/lib/enrollib.php on line 1150, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304

[Mon May 16 14:58:36.845841 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] Default exception handler: Exception - Call to a member function allow_unenrol() on null Debug: \n
Error code: generalexceptionmessage\n

  • line 1150 of /lib/enrollib.php: Error thrown\n
  • line ? of unknownfile: call to {closure}()\n
  • line 1152 of /lib/enrollib.php: call to array_filter()\n
  • line 5388 of /lib/moodlelib.php: call to enrol_course_delete()\n
  • line 1843 of /backup/util/dbops/restore_dbops.class.php: call to remove_course_contents()\n
  • line 382 of /backup/controller/restore_controller.class.php: call to restore_dbops::delete_course_content()\n
  • line 123 of /course/format/kickstart/classes/course_importer.php: call to restore_controller->execute_plan()\n
  • line 71 of /course/format/kickstart/classes/course_importer.php: call to format_kickstart\course_importer::import()\n
  • line 40 of /course/format/kickstart/import.php: call to format_kickstart\course_importer::import_from_template()\n
    , referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304

[Mon May 16 14:58:36.898645 2022] [php7:notice] [pid 1534] [client 133.15.62.91:64175] Potential coding error - existing temptables found when disposing database. Must be dropped!, referer: https://my_moodle_instance/course/format/kickstart/confirm.php?template_id=4&course_id=1304

@linsharon
Copy link
Author

linsharon commented May 16, 2022

This error only occurred for a list of previously created empty courses on their landing pages with a list of templates. No matter which template I chose they all led to error.
However, such error did not happen when I create new courses today, and also not with those courses which templates were already applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant