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

Moodle 4.5: undefined $SESSION property in restore #192

Open
taraghi opened this issue Dec 13, 2024 · 1 comment
Open

Moodle 4.5: undefined $SESSION property in restore #192

taraghi opened this issue Dec 13, 2024 · 1 comment

Comments

@taraghi
Copy link

taraghi commented Dec 13, 2024

Hi,

How to reproduce

  • Turn debug display on (DEVELOPER)
  • Create a course with an assign activity
  • Duplicate the course (to trigger restore)
  • Execute the adhoc task \core\task\asynchronous_copy_task

Task report:

Execute adhoc task: core\task\asynchronous_copy_task
Adhoc task id: 6462560
Adhoc task custom data: {"backupid":"4c606b001ef4bac8abd35634c398d16c","restoreid":"a8e76b35d00d8731387c6fceddfde2dd"}
... started 15:01:31. Current memory use 38.8 MB.
Course copy: Processing asynchronous course copy for course id: 5320
Course copy: Backing up course, id: 5320
Course copy: Restoring into course, id: 5321

Warning: Undefined property: stdClass::$tsrestore in /home/main/src/moodle/plagiarism/turnitinsim/backup/moodle2/restore_plagiarism_turnitinsim_plugin.class.php on line 115

Warning: foreach() argument must be of type array|object, null given in /home/main/src/moodle/plagiarism/turnitinsim/backup/moodle2/restore_plagiarism_turnitinsim_plugin.class.php on line 115

restore_plagiarism_turnitinsim_plugin.class.php Line 115:

foreach ($SESSION->tsrestore as $data) {
@lassnj
Copy link

lassnj commented Jan 3, 2025

We also get this warning in Moodle 4.4.5

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

2 participants