Hi there,
I get the following error when trying to connect to some of my moodle instances with the mobile app with moodle 3.5
"Call to undefined function course_get_format()
When using mobileapp.moodledemo.net here's what I'm getting
Preview tab
- {exception: "Error", errorcode: null, message: "Call to undefined function course_get_format()"}
- errorcode: null
- exception: "Error"
- message: "Call to undefined function course_get_format()"
- Request URL:
- Request Method:POST
- Status Code:200 OK
- Remote Address:138.48.227.28:443
- Referrer Policy:no-referrer-when-downgrade
- Response Headers
- Accept-Ranges:none
- Access-Control-Allow-Origin:*
- Cache-Control:private, must-revalidate, pre-check=0, post-check=0, max-age=0
- Connection:Keep-Alive
- Content-Length:97
- Content-Type:application/json
- Date:Wed, 26 Sep 2018 12:49:05 GMT
- Expires:Thu, 01 Jan 1970 00:00:00 GMT
- Keep-Alive:timeout=5, max=100
- Pragma:no-cache
- Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.26
- X-Powered-By:PHP/7.0.26
- Request Headers
- Provisional headers are shown
- Accept:application/json, text/plain, */*
- Content-Type:application/x-www-form-urlencoded
- Origin:
- Referer:
- User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
- Query String Parametersview sourceview URL encoded
- moodlewsrestformat:json
- Form Dataview sourceview URL encoded
- field:ids
- value:78,73,206,2122,2,2115,978,2123,1
- moodlewssettingfilter:true
- moodlewssettingfileurl:true
- wsfunction:core_course_get_courses_by_field
- wstoken:61148f2324b6a0c2c7b50a34382f2aba
On another platform with the same plugins installed and same theme, everything is ok
Any hint?
thanks in advance