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

Returning course_format_options as object or array? #19

Open
upats opened this issue Jun 17, 2020 · 1 comment
Open

Returning course_format_options as object or array? #19

upats opened this issue Jun 17, 2020 · 1 comment

Comments

@upats
Copy link

upats commented Jun 17, 2020

Hello! I apologize if an issue isn't the best way to report this but I am encountering an error that I seems like is related to Kickstart (not 100% sure). Basically in some cases when using a REST API call core_get_courses on a site with courses using Kickstart I am seeing an error returned:

{"exception":"invalid_response_exception","errorcode":"invalidresponse","message":"Invalid response value detected","debuginfo":"courseformatoptions => Invalid response value detected: value => Invalid response value detected: Scalar type expected, array or object received."}

Is it possible Kickstart is writing an array/object to the value field in the course_format_options table?

There is a thread on the Moodle forums with a bit more detail: https://moodle.org/mod/forum/discuss.php?d=404560#p1636941

@stefanscholz
Copy link
Member

Hi! We'll look into this and get back to you. Best, stefan

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

2 participants