turnitin / moodle-plagiarism_turnitin

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

Error on ad-hoc task on Moodle 4.4 #714

Open izendegi opened 3 weeks ago

izendegi commented 3 weeks ago

After upgrading a site from 4.3 to Moodle 4.4 the plagiarism_turnitin\task\send_submissions ad-hoc task returns an error every time it is executed:

Scheduled task failed: Send Queued Files from the Turnitin Plagiarism Plugin (plagiarism_turnitin\task\send_submissions),syntax error, unexpected token "private"
Backtrace:
* line 322 of /plagiarism/turnitin/vendor/composer/ClassLoader.php: call to Composer\Autoload\includeFile()
* line 12 of /plagiarism/turnitin/vendor/Integrations/phpsdk-package/src/ClassSoap.php: call to Composer\Autoload\ClassLoader->loadClass()
* line 444 of /plagiarism/turnitin/vendor/composer/ClassLoader.php: call to include()
* line 322 of /plagiarism/turnitin/vendor/composer/ClassLoader.php: call to Composer\Autoload\includeFile()
* line 838 of /plagiarism/turnitin/vendor/Integrations/phpsdk-package/src/TurnitinAPI.php: call to Composer\Autoload\ClassLoader->loadClass()
* line 430 of /plagiarism/turnitin/lib.php: call to Integrations\PhpSdk\TurnitinAPI->findClasses()
* line 2943 of /plagiarism/turnitin/lib.php: call to plagiarism_plugin_turnitin->test_turnitin_connection()
* line 46 of /plagiarism/turnitin/classes/task/send_submissions.php: call to plagiarism_turnitin_send_queued_submissions()
* line 410 of /lib/classes/cron.php: call to plagiarism_turnitin\task\send_submissions->execute()
* line 208 of /lib/classes/cron.php: call to core\cron::run_inner_scheduled_task()
* line 125 of /lib/classes/cron.php: call to core\cron::run_scheduled_tasks()
* line 186 of /admin/cli/cron.php: call to core\cron::run_main_process()

We have installed the latest version of the plugin (2024032901) and it happens with both Moodle 4.4.0 and 4.4.1