Skip to content
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

Exception shown when a student submits their quiz attempt #789

Open
anieminen opened this issue Dec 20, 2024 · 3 comments
Open

Exception shown when a student submits their quiz attempt #789

anieminen opened this issue Dec 20, 2024 · 3 comments

Comments

@anieminen
Copy link

anieminen commented Dec 20, 2024

Hi,

We are seeing a problem after upgrading plagiarism_turnitin plugin. When Turnitin is activated in quiz settings and a user tries to submit their quiz attempt, an exception is thrown and the attempt is not submitted.

kuva

Moodle version: 4.1.15
plagiarism_turnitin version: 4.1+ (2024120501)

Debug info:
Error code: generalexceptionmessage
Stack trace:
line 2617 of /plagiarism/turnitin/lib.php: Error thrown
line 159 of /plagiarism/turnitin/classes/observer.php: call to plagiarism_plugin_turnitin->event_handler()
line ? of unknownfile: call to plagiarism_turnitin_observer::quiz_submitted()
line 155 of /lib/classes/event/manager.php: call to call_user_func()
line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
line 835 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
line 2310 of /mod/quiz/attemptlib.php: call to core\event\base->trigger()
line 2220 of /mod/quiz/attemptlib.php: call to quiz_attempt->fire_state_transition_event()
line 2030 of /mod/quiz/attemptlib.php: call to quiz_attempt->process_finish()
line 93 of /mod/quiz/view.php: call to quiz_attempt->handle_if_time_expired()

@davidscotson
Copy link

We hit this same issue, on 4.1.15 and plagiarism_turnitin version: 4.1+
(2024121901)

From some initial investigation it seems as if the change to add namespaces in this commit might be the cause:

d7d6173

A slightly earlier change checks for the existence of that class before using it in order to support both 4.2 upwards and older version of Moodle, 4.1 being the current LTS version:

c00e3438aa620df217805a827fd66e308f8b3be8

This seems related to the quiz namespaces changes mentioned in the mod_quiz changelog for 4.2:

https://github.com/moodle/moodle/blob/main/mod/quiz/upgrade.txt

@davidscotson
Copy link

Tagging @carl-hostrander as this seems an issue with a straightforward fix, so hopefully can be prioritised.

@qchan-mindfield
Copy link

Yes, actually this is a huge issue.. It's affecting our quizzes that need to be automatically submitted for grading, nearing our midterm season.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants