Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception adding Webservices functions #61

Open
xmontana opened this issue Nov 29, 2023 · 0 comments
Open

Exception adding Webservices functions #61

xmontana opened this issue Nov 29, 2023 · 0 comments

Comments

@xmontana
Copy link

Hello!

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

  • New install Moodle 4.1.6+
  • Install mod_videotime 2023100900

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant