LTI Question Type (External Tool)

Question types ::: qtype_lti
Maintained by ETHzETH Zürich
External Question Type (based on LTI)
Latest release:
61 sites
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).


Screenshot #0


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, May 8, 2020, 6:31 PM
    Hi Paul, the person in charge with moodle is Thomas Korner and can be contacted via email:
  • 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:
    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?
  • Thu, Aug 26, 2021, 4:31 PM
    Has this been tested in Moodle 3.11?
  • ETHz
    Thu, Aug 26, 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.
  • Thu, Aug 26, 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+';)
  • Thu, Aug 26, 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)
  • Tue, Oct 18, 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, Oct 18, 2022, 10:30 PM
    Hi, could you please report the issue here:
  • Fri, Oct 21, 2022, 9:14 PM
    Hi, the latest version is working and solved the problem smile

  • Tue, Aug 22, 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