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

foreach() argument must be of type array|object, null given #157

Open
Richardvi opened this issue Sep 5, 2023 · 2 comments
Open

foreach() argument must be of type array|object, null given #157

Richardvi opened this issue Sep 5, 2023 · 2 comments

Comments

@Richardvi
Copy link

We see this in our log files (PHP 8.0, Moodle 4.2.2)

[05-Sep-2023 13:59:32 Europe/Amsterdam] PHP Warning: foreach() argument must be of type array|object, null given in /home/learn/public_html/plagiarism/turnitinsim/backup/moodle2/restore_plagiarism_turnitinsim_plugin.class.php on line 115

@adnbes
Copy link

adnbes commented Jan 11, 2024

Hi,

we get the same warnings after duplicating a section with a quiz. (PHP 8.0, Moodle 4.2.5)

Warning: Undefined property: stdClass::$tsrestore in {path_to_public}/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 {path_to_public}/plagiarism/turnitinsim/backup/moodle2/restore_plagiarism_turnitinsim_plugin.class.php on line 115

@lassnj
Copy link

lassnj commented Jan 3, 2025

Hi, 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
Development

No branches or pull requests

4 participants