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 encountered moodle 4.1 PHP 8.1 #33

Open
katcher opened this issue Oct 3, 2023 · 1 comment
Open

Error encountered moodle 4.1 PHP 8.1 #33

katcher opened this issue Oct 3, 2023 · 1 comment

Comments

@katcher
Copy link

katcher commented Oct 3, 2023

Encountered the following error when attempting to use the plugin:

PHP Notice: Exception encountered in event observer '\local_course_template\observers::course_created': Backup is missing XML file: /data/moodledata/temp/backup//4017/course/filters.xml

  • line 181 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
  • line 191 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
  • line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
  • line 408 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
  • line 156 of /local/course_template/classes/backup.php: call to restore_controller->execute_plan()
  • line 56 of /local/course_template/classes/helper.php: call to local_course_template\backup::restore_backup()
  • line 51 of /local/course_template/classes/observers.php: call to local_course_template\helper::template_course()
  • line ? of unknownfile: call to local_course_template\observers::course_created()
  • line 155 of /lib/classes/event/manager.php: call to call_user_func()
  • line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
  • line 835 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
  • line 2282 of /course/lib.php: call to core\event\base->trigger()
  • line 167 of /course/edit.php: call to create_course()
in /public/home/lib/weblib.php on line 3341, referer: https://moodle4-dev.xxx.xx/course/edit.php?category=0

@katcher
Copy link
Author

katcher commented Oct 3, 2023

Just attempted to perform a backup with filters selected and it worked. Is there a requirement for backing up filters for the plugin to function?

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

No branches or pull requests

1 participant