LTI Question Type (External Tool)

Question types ::: qtype_lti
Maintained by ETHzETH Zürich
External Question Type (based on LTI)
Latest release:
59 sites
41 downloads
2 fans

External Question Type (based on LTI) is a question type that can connect to external systems (LTI-enabled providers). Originally built to integrate (in simplistic LTI manner) with CodeExpert (A web-based IDE to teach programming in the classroom).

Screenshots

Screenshot #0

Contributors

ETHz
ETH Zürich (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Fri, Jun 21, 2019, 4:50 PM
    Approval issue created: CONTRIB-7761
  • Paul
    Fri, May 8, 2020, 6:19 PM
    Can you give me a contact at the ETH to discuss any possible work together please?
  • ETHz
    Fri, May 8, 2020, 6:31 PM
    Hi Paul, the person in charge with moodle is Thomas Korner and can be contacted via email: thomas.korner@let.ethz.ch
  • Tue, Dec 8, 2020, 5:35 PM
    Hello! I have some errors using plugin, can I ask a question?
  • ETHz
    Tue, Dec 8, 2020, 5:36 PM
    Hi, what errors you are encountering?
  • Tue, Dec 8, 2020, 10:08 PM
    After I click the "check" button, I get the following error: https://drive.google.com/file/d/1_sjdkxowsz79-iiR57gfzqlvfSGxMbPf/view?usp=sharing
    If required, I can also send the task settings.

    Text of message:

    An error occurred while processing your responses (Error writing to database (Unknown column 'NAN' in 'field list' INSERT INTO mdl_question_attempt_steps (questionattemptid,sequencenumber,state,fraction,timecreated,userid) VALUES(?,?,?,?,?,?) [array ( 0 => '62795', 1 => 1, 2 => 'gradedwrong', 3 => NAN, 4 => 1607436079, 5 => '2', )])). Click continue to return to the page you were on and try again.

    Debug info: Unknown column 'NAN' in 'field list'
    INSERT INTO mdl_question_attempt_steps (questionattemptid,sequencenumber,state,fraction,timecreated,userid) VALUES(?,?,?,?,?,?)
    [array (
    0 => '62795',
    1 => 1,
    2 => 'gradedwrong',
    3 => NAN,
    4 => 1607436079,
    5 => '2',
    )]
    Error code: errorprocessingresponses

    Stack trace:
    line 2410 of /mod/quiz/attemptlib.php: moodle_exception thrown
    line 89 of /mod/quiz/processattempt.php: call to quiz_attempt->process_attempt()

    Output buffer:
    Notice: Undefined property: qtype_lti_question::$order in /var/www/html/question/type/lti/question.php on line 36

    Warning: Invalid argument supplied for foreach() in /var/www/html/question/type/lti/question.php on line 36

    Notice: Undefined property: qtype_lti_question::$order in /var/www/html/question/type/lti/question.php on line 52

    Warning: Division by zero in /var/www/html/question/type/lti/question.php on line 52

    Thank you!
  • ETHz
    Tue, Dec 8, 2020, 10:18 PM
    It seems your LTI provider returns an invalid grade (NAN in your case). The result needs to be from 0 up until 1. (Fractions allowed)
  • Tue, Jan 26, 2021, 5:08 PM
    Thanks for the answer!
    LTI provider (LTI v1.1) uses to send a score to a moodle POST request to lis_outcome_service_url with parameters from the LTI-launch request (lis_outcome_service_url, lis_result_sourcedid, oauth_consumer_key), and sent score is displayed in gradebook (for standart External tool).

    However, when working with the plugin, we catch this error (to data in database). Where should the required scores be located so that the plugin handles everything correctly when I click "Check"? (Since the plugin does not make requests to LTI provider)
  • Fri, Feb 5, 2021, 10:17 PM
    I reported a bug named "Selecting a preconfigured tool does not save the secure tool URL" (in the Bug Tracker).
    Could anyone try to reproduce and/or comment?
Please login to post comments