Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73235

Exception raised when launching a deleted external tool

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.11, 3.10.8, 3.11.4
    • LTI External tool
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE

      When a link exists in a course to an external tool which has been deleted, an attempted launch generates an exception. This is because the lti_get_instance_type method is defined as returning an object (or null), but for a missing tool a boolean value of false will be returned from the call to the lti_get_type method. In Moodle 3.11.4+ (Build: 20211123) the error reported to the user is:

      Error code: generalexceptionmessage
      Stack trace:
      line 521 of /mod/lti/locallib.php: TypeError thrown
      line 535 of /mod/lti/locallib.php: call to lti_get_instance_type()
      line 714 of /mod/lti/locallib.php: call to lti_get_launch_data()
      line 88 of /mod/lti/launch.php: call to lti_launch_tool()

            Unassigned Unassigned
            svickers Stephen Vickers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.