turnitin / moodle-plagiarism_turnitin

Turnitin Plagiarism plugin for Moodle
http://www.turnitin.com
45 stars 65 forks source link

Error on task plagiarism_turnitin\task\update_reports #677

Open steveorulez opened 9 months ago

steveorulez commented 9 months ago

Hello, lately i got few of these errors.

Scheduled task failed: Update Report Scores for Turnitin Plagiarism Plugin (plagiarism_turnitin\task\update_reports),count(): Argument #1 ($value) must be of type Countable|array, stdClass given Backtrace:

Moodle: 4.1.4+ (Build: 20230721) turnitin plagiarism: 2023033001

christian

steveorulez commented 9 months ago

Is the patch applied in this commit fixing the problem?

Avoid passing non-arrays into count to prevent warnings in PHP8 https://github.com/turnitin/moodle-plagiarism_turnitin/commit/1b0970d1eed6b294dfd90a9a64423a71a2d88cc3

steveorulez commented 8 months ago

After upgrading the plugin the problem was resolved, you can close this.