bdecentgmbh / moodle-format_kickstart

Kickstart adds a powerful course template engine to moodle – create courses easily and produce high quality courses, consistently.
http://bdecent.de/kickstart
5 stars 3 forks source link

Returning course_format_options as object or array? #19

Open upats opened 4 years ago

upats commented 4 years ago

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 commented 4 years ago

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