Returning course_format_options as object or array?
upats opened this issue · 1 comments
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
Hi! We'll look into this and get back to you. Best, stefan