turnitin / moodle-plagiarism_turnitin

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

TypeError #526

Closed aspark21 closed 3 years ago

aspark21 commented 4 years ago

Moodle 3.7.7 PP v2020070801

Uncaught exception 'TypeError' with message 'Argument 2 passed to has_capability() must be an instance of context, null given, called in /path/to/moodle/plagiarism/turnitin/ajax.php on line 162' in /path/to/moodle/lib/accesslib.php:427 in has_capability called at /path/to/moodle/plagiarism/turnitin/ajax.php (162)

jmcgettrick commented 4 years ago

That's an odd one by the look of it. Is it happening on all module types for all users?

aspark21 commented 4 years ago

I've just noted two instances of that in the NewRelic logs in the last 24h so not that frequent

aspark21 commented 4 years ago

seems to have returned a 404 http status code with that. was a mod_assign

jmcgettrick commented 4 years ago

It's happening on viewing a rubric so probably not that frequent, we'll get it looked at

jmcgettrick commented 4 years ago

I can reproduce the issue, we'll get it fixed.

aspark21 commented 4 years ago

@jmcgettrick I didn't see this mentioned in the 2020072201 release, we are now seeing 400+ occurrences of this error on a daily basis so would be good to get this resolved. Is another release planned before the start of Academic Year?

jmcgettrick commented 3 years ago

Closing as this is a duplicate of #537 - we'll get this fixed in the next couple of weeks