moodle on iPhone app - Error

moodle on iPhone app - Error

by Dave Perry -
Number of replies: 3

I have enabled web services in a test moodle 2.2 installation, but get the following error when trying to point the iPhone app at it:

ERROR. Couldn't connect: the site must be Moodle 2.1 or later

It's saying v2.2.2 in the Server > Environment page, and all the checks on that page pass OK. I checked the Mobile web service is working in the Authentication methods page. What else am I missing? I checked the Enable tickbox on our live moodle (v2.1) and that works fine. But I'm aware you need minimum 2.2 to see resources on a course page, as less than that functionality doesn't seem really useful to me.

Average of ratings: -
In reply to Dave Perry

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: moodle on iPhone app - Error

by Dave Perry -

Frank, port 80 is open to the outside world on that server anyway as it runs another service on the same apache installation which works fine. I wondered if there was something deeper.

Moodle core/mobile feature/iPhone app developers - is there any logging at the server or app end that might help diagnose where the fault lies?

In reply to Dave Perry

Re: moodle on iPhone app - Error

by Jérôme Mouneyrac -
Hi David,
this error appears when an error is returned by the token.php script. Actually we should add some kind of debug mode on the app to help admin to test the app. Many different errors are returned to the app and the app just display one unique error message.

You could check all the following points, it is most likely something going wrong there: http://docs.moodle.org/22/en/Web_services_FAQ#What_is_the_.27Access_control_exception.27_error
Note that many of these points should be valid when you enable the mobile service in the admin.