I have problem with auth in Moodle Mobile (for iOS) with my site.
I get "Cannot connect: Verify that your have typed correctly the URL and that your site uses Moodle 2.4 or later." error everytime I try to login.
Ofcource, I've enabled webservices in advanced settings and enabled mobile in webservices plugin. I also have installed Moodle Mobile additional features .... problem still exists...
I cannot understand where should I look to resolve problem. Is there some kind of debug mode?
can you send me your Moodle URL via private message so I can take a look?
I sent you privat message with url and test credentials
your Moodle is returning the following error:
"cannotcreatetoken": "No permission to create web service token for the service local_mobile."
Have you allowed the capability moodle/webservice:createtoken to authetnicated user? Please make sure you've followed all the instructions detailed in here:
Sure, I did it.
I checked. Permission is enabled. To ensure again, I checked it off and check on again. Saved.
I sent you test login for admi in privat message. maybe you can review settings...
I'm checking your problem with Dani and now we can get the token but among the token we get a SQL query.
It seems that you are using the database external plugin for authentication and you've enabled the Debug ADOdb option. You have to go to Site administration ▶ Plugins ▶ Authentication ▶ External database and disable that option.
You are right. That option was activated, BUT the plugin was deactivated! I deactivated the Debug ADOdb option too. BUT the problem exists ...
Nothing has changed... I get the same error in Moodle Mobile... May be something else can generate SQL query? Or may be there is other issue... You can login with admin rights (I've provided you with credentials)...
I don't know what can cause this error...
Oh I did it!!!
Debu ADOdb option was activated in Administration - Plugins - Enrol to courses - External DB...
I check it off and Moodle Mobile began to work!!!!
Thanx alot for your help!!!
But I have one more problem. I cannot see admin courses. if I login as admin (not usual courses) in Moodle 2.9 I cannot see any courses in Moodle Mobile. If I login as usual user - I see them.
I tried in Moodle 2.8 - as admin I see courses.
May be this is because different installations or may be it cause some other issue...
Can you help?
is the admin enrolled in those courses? In MoodleMobile a user can only see the courses he's enrolled in.
Yes. Sure. Admin is enrolled in all cources. (Enrolled in nall category method)
I create all cources. I participate in all cources.
It affects only me. Other users see all their cources.
In ver. 2.8. I see my cources. After upgrade to 2.9 - don't see (((
error message: "Обнаружено неверное значение ответа"
it means: It found an invalid (wrong) response (by google translate)
this error appears when I try to access to My courses in Moodle Mobile. Or when I try to update (slide down) it.
I attach screenshot
I have the same problem with authentication in Moodle Mobile (for iOS) with my site, for Android everything works well. I have already tried everything without success.
I've followed all the instructions detailed here : https://docs.moodle.org/27/en/Moodle_Mobile_additional_features#Installation
But the problem persists. The Debug ADOdb option is also disabled. BUT the problem continues to exist.
please can you tell me what could be the problem in my case ?
we've been analyzing the server response and it seems that you have configured a course to use the "de" language (I assume is Deutschland) and that language package is not installed in your site.
Can you check that?
I have english, russian and ukrainian language packs installed in my site.
The default system lang is RU
I have no courses configured as DE. Ther is no even such option in course settings to do so.
If I login as non-admin user - I see all courses where he is enrolled. No problems.
But when I login as admin (global admin), I can not see any course at all. I get error shown above.
I'm sending you test admin login in privat message.
Please, help me to understand the problem
You was right...
I checked... checked... checked... and finally found....
Once in ver. 1.9.7 I tested course for teacher in german... I forced this course to DE lang....
Now such option in this course was dropped to default, but, probably, it was fixed somewhere deep in the database ....
Now I forced RU to default in this course - and thank to God - Moodle mobile began to work fine for me!!!!
Thank you for help!!!!
We can close this topic!!!!
One more short question - how can I trace my server responces as you do it? How can I look for errors in ios app? Can I do it through logs, rest or api queries? or it is only your possibilities as developer og rhe Moodle Mobile ios app?