-
Notifications
You must be signed in to change notification settings - Fork 3
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
Argument 2 passed to plagiarism_copyleaks_comms::submit_for_plagiarism_scan() must be of the type string, null given, called in #15
Comments
Hey, @qqtuyen it seems that the submission type is missing for this request, can you please tell me what kind of submission you have? ('File Upload', 'Text Content', 'Forum Post', 'Quiz Answer') |
The plugin is only setup to work on assignments and forums. Does that help narrow it down? Thank You, |
@qqtuyen yes thank you, I will be checking this ASAP |
@qqtuyen I installed the same version of Moodle & the same version of the plugin, and I wasn't able to recreate the issue, can you please provide a screenshot of your plugin settings & a screenshot of the submission that is stuck because of this? |
Hi I'm on the same team as @qqtuyen, having just done some further investigation of the issue on our end I can provide some more info:
So instead of the task catching it's own error and stepping gracefully over it, it crashes further down on submit_for_plagiarism_scan() after giving it a blank value for argument 2. Hope that helps! Let me know if there's any further info that I can provide for you here. |
Thanks, @nrosenquist, with your provided information I was able to fix the issue. new version with a fix was deployed v2022082100 |
Getting this error with the latest code
$plugin->version = 2022072100;
$plugin->release = "3.5+";
$plugin->requires = 2018051700;
$plugin->component = 'plagiarism_copyleaks';
$plugin->maturity = MATURITY_STABLE;
Moodle version 3.11.8
php 7.4
Scheduled task failed: Copyleaks plagiarism plugin - handle queued files (plagiarism_copyleaks\task\plagiarism_copyleaks_sendsubmissions),Argument 2 passed to plagiarism_copyleaks_comms::submit_for_plagiarism_scan() must be of the type string, null given, called in /var/www/name/plagiarism/copyleaks/classes/task/plagiarism_copyleaks_sendsubmissions.php on line 239
Backtrace:
The text was updated successfully, but these errors were encountered: