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

external_function_info gives vague error messages

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.8.5
    • Web Services
    • MOODLE_28_STABLE

      The coding_exception thrown in lib/externallib.php:external_function_info throws exceptions whenever it cannot find any piece of code missing for a defined function. Most of the error messages are too generic so you end up having to add debugging statements into core to find out which function it errored on.

      Example:

      if (!file_exists($function->classpath)) {
          throw new coding_exception('Can not find file with external function implementation');
      }
      

      The coding_exception should all return some data from $function so you can track it down easier.

            Unassigned Unassigned
            joshjohnston Josh Johnston
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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