bdecentgmbh / moodle-mod_videotime

The Video Time product family is a set of plugins to integrate videos into moodle courses.
http://bdecent.de/videotime
Other
10 stars 5 forks source link

Exception adding Webservices functions #61

Open xmontana opened 12 months ago

xmontana commented 12 months ago

Hello!

We have found an issue in this plugin when we try to add a function inside Moodle Webservices. I detail the issue:

Then, we go to Site Administration -> Server -> Externa Services and add a new External Service.

After create the new external service, we go to Functions to assign functions and we got a Exception:

Exception - Class "core_external\external_single_structure" not found

Stack trace:

    line 513 of /mod/videotime/classes/videotime_instance.php: Error thrown
    line 78 of /mod/videotime/classes/external/get_videotime.php: call to mod_videotime\videotime_instance::get_external_description()
    line 130 of /lib/externallib.php: call to mod_videotime\external\external::get_videotime_returns()
    line 199 of /admin/webservice/forms.php: call to external_api::external_function_info()
    line 214 of /lib/formslib.php: call to external_service_functions_form->definition()
    line 63 of /admin/webservice/service_functions.php: call to moodleform->__construct()

If we remove mod_videotime, the add function in Webservice works.

Regards!