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

Improve exception content when external class & path are missing

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78917-401
    • Hide
      1. Run the following query to insert bogus data into your {external_functions} table:

        INSERT INTO `moodle`.`mdl_external_functions` (`name`, `classname`, `methodname`, `component`, `capabilities`) VALUES ('mod_invalid_get_foo', 'mod_invalid\\external\\get_foo', 'execute', 'mod_invalid', '');
        

      2. Navigate to Server > Web services > API documentation in site administration
      3. Confirm presence of an error, which reads as follows:

        Coding error detected, it must be fixed by a programmer: Cannot find file /externallib.php with external function implementation for mod_invalid\external\get_foo::execute
        

      Show
      Run the following query to insert bogus data into your { external_functions } table: INSERT INTO `moodle`.`mdl_external_functions` (`name`, `classname`, `methodname`, `component`, `capabilities`) VALUES ('mod_invalid_get_foo', 'mod_invalid\\external\\get_foo', 'execute', 'mod_invalid', ''); Navigate to Server > Web services > API documentation in site administration Confirm presence of an error, which reads as follows: Coding error detected, it must be fixed by a programmer: Cannot find file /externallib.php with external function implementation for mod_invalid\external\get_foo::execute

      Please see MDL-68971 for more details. If an error comes up when opening the api documentation page, it is handy to know which plugin causes the problem.

            pholden Paul Holden
            elodelta Richard van Iwaarden
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 47 minutes
                47m

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