jpahullo/moodle-tool_mergeusers

Merging Fails If Turnitin Activity is not Found

Closed this issue · 2 comments

Merging is failing if for some reason turnitin activity that it needs is not found. Any ideas how this can be resolved?

Moodle 3.11.10
turnitintooltwo $plugin->version = 2022051201;

Error from the merge below:

Exception thrown when merging: 'Can not find turnitintooltwo activity with id 3995".

Trace:
#0 /var/www/site/admin/tool/mergeusers/lib/mergeusertool.php(271): MergeUserTool->updateGrades('682639', '802738')
#1 /var/www/site/admin/tool/mergeusers/lib/mergeusertool.php(192): MergeUserTool->_merge('682639', '802738')
#2 /var/www/site/admin/tool/mergeusers/index.php(135): MergeUserTool->merge('682639', '802738')
#3 {main}

Hi @nbozhkov-ucl ,

Thanks for contacting.

My answer would resemble like the one from #217.

Please, try what suggested from #217 and let us know how it was.

The error was due to bad data in the moodle database. Closing this issue.