LTI Question Type (External Tool)

Question types ::: qtype_lti
Maintained by ETHzETH Zürich
External Question Type (based on LTI)
Latest release:
57 sites
285 downloads
6 fans
Current versions available: 3

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)
Antonia Bonaccorso: Service owner, contact
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • ETHz
    Fri, 8 May 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, 8 Dec 2020, 5:35 PM
    Hello! I have some errors using plugin, can I ask a question?
  • ETHz
    Tue, 8 Dec 2020, 5:36 PM
    Hi, what errors you are encountering?
  • Татьяна Берленко
    Tue, 8 Dec 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, 8 Dec 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, 26 Jan 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)
  • João Rodrigues
    Fri, 5 Feb 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?
  • João Rodrigues
    Thu, 26 Aug 2021, 4:31 PM
    Has this been tested in Moodle 3.11?
  • ETHz
    Thu, 26 Aug 2021, 4:35 PM
    Hi João, its tested on 3.11 and we also have added more features. You can download the latest from github, or you can wait until October once we package the final version for the community here.
  • José Carvalho
    Thu, 26 Aug 2021, 6:05 PM
    Hi, I just reported an issue named "Error running plugin qtype_lti on Moodle v3.11.2+ (Build: 20210812)" on GitHub.
    Has anyone seen a similar behaviour?

    NOTE: On Github, the latest release (May 25) is identifyed as 0.3. However, file version.php states it is version 04 ($plugin->release = '0.4 for Moodle 3.5+';)
  • José Carvalho
    Thu, 26 Aug 2021, 7:51 PM
    For future reference, we were able to solve the issue we were having by installing plugin release = '0.4 for Moodle 3.5+' / version = 2021080302 (as instructed by the development team)
  • Susana Caixinha
    Tue, 18 Oct 2022, 10:28 PM
    Hello we're having problems with the plugin in Moodle 4.0.3+ (Build: 20220826). when we try to insert a new question it runs into an error: Exception - Call to a member function instance_form_definition_after_data() on null

    Have you tried the plugin in the new version of Moodle?
  • ETHz
    Tue, 18 Oct 2022, 10:30 PM
    Hi, could you please report the issue here: https://github.com/ethz-let/moodle-qtype_lti/issues
  • Susana Caixinha
    Fri, 21 Oct 2022, 9:14 PM
    Hi, the latest version is working and solved the problem smile

    thanks
  • Gergely Rakoczi
    Tue, 22 Aug 2023, 7:12 PM
    Hi there,
    does this plugin work with LTI 1.3? As far as I see, it is limited to LTI 1.0/1.1
    Gergely Rakoczi
1 2
Please login to post comments