Giter Club home page Giter Club logo

Comments (3)

danmarsden avatar danmarsden commented on August 14, 2024

I think the fix is to wrap the calls to:
$assignment->setAnonymousMarking($turnitintooltwoassignment->turnitintooltwo->anon);

in a check for if ($config->useanon) {

from moodledirectv2.

exing1984 avatar exing1984 commented on August 14, 2024

What's setting for Anonymous Marking? Yes or No.
I got error message when I query SELECT * FROM mdl_events_queue_handlers WHERE status > 0.
The Mysql return 4 rows.
Eash rows has different error:
The first one:
"Handler function of component plagiarism_turnitin: s:17:""event_mod_updated""; threw exception :turnitintooltwo/There was an error trying to create the assignment in Turnitin

Fault Code: invaliddata | File: /var/www/mod/turnitintooltwo/sdk/assignmentsoap.class.php | Line: 33 | Message: anonymous_marking_enabled - cannot set anonymous_marking_enabled field
| Code: 0

  • line 488 of /mod/turnitintooltwo/lib.php: call to print_error()
  • line 132 of /mod/turnitintooltwo/turnitintooltwo_comms.class.php: call to turnitintooltwo_print_error()
  • line 773 of /mod/turnitintooltwo/turnitintooltwo_assignment.class.php: call to turnitintooltwo_comms::handle_exceptions()
  • line 1119 of /plagiarism/turnitin/lib.php: call to turnitintooltwo_assignment::create_tii_assignment()
  • line 1362 of /plagiarism/turnitin/lib.php: call to plagiarism_plugin_turnitin->sync_tii_assignment()
  • line 1973 of /plagiarism/turnitin/lib.php: call to plagiarism_plugin_turnitin->event_handler()
  • line ? of unknownfile: call to event_mod_updated()
  • line 299 of /lib/eventslib.php: call to call_user_func()
  • line 343 of /lib/eventslib.php: call to events_dispatch()
  • line 450 of /lib/eventslib.php: call to events_process_queued_handler()
  • line 45 of /lib/classes/task/events_cron_task.php: call to events_cron()
  • line 73 of /lib/cronlib.php: call to core\task\events_cron_task->execute()
  • line 61 of /admin/cli/cron.php: call to cron_run()"

The second one: Handler function of component plagiarism_turnitin: s:22:"event_content_uploaded"; requested resending of event!

The third one: Handler function of component plagiarism_turnitin: s:19:"event_file_uploaded"; requested resending of event!

The last one: Handler function of component plagiarism_turnitin: s:26:"event_assessable_submitted"; requested resending of event!

from moodledirectv2.

jmcgettrick avatar jmcgettrick commented on August 14, 2024

Thanks for the fix Dan, this has been merged in.

from moodledirectv2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.