self-enrolment throws error on mobile app (.. whereas manual enrolment not)

self-enrolment throws error on mobile app (.. whereas manual enrolment not)

by Bernhard Thoni -
Number of replies: 3
Hello forum participants, maybe someone here could point me to a spot where to dig deeper in order to solve the following problem: our setting here : moodle v. 3.1.1+ (on debian, default mobile plugin may 2015, no mobile additional features plugin (so far)) moodle mobile app 3.1.2 (on iOS) since the update from 2.8.7 to 3.1.1+ students are no longer able to get their enroled courses on the front page of the app. although, if I enrol a student freshly in a course (manual enrolment, via web interface), the respective student will see this course in the app. another strange thing is, if this student then searches another course (for self-enrolment) on the app, and keys in the enrolment key, an error pops up (- in english s.th. like: found invalid return value-), and the former course (that we enrolled him/her manually) already disappears from his frontpage in the app. when double-checking in the web frontend, though, the user is self-enroled in the course. I've already studied the admin documentation for moodle mobile very thoroughly, but couldn't find any mismatch so far with our config. is it possible to dig deeper into this specific problem via s.th. like this: https://moodle.org/mod/forum/discuss.php?d=328894 ... and if so: how? other hints I've found so far: https://moodle.org/mod/forum/discuss.php?d=329034 (we've tested this, .. without success) https://moodle.org/mod/forum/discuss.php?d=337532 (but we are not quite sure whether this applies to our problem) any help very much appreciated, as in our former moodle installation v. 2.8.7 all worked smoothly Thanks a lot in advance, Bernie
Average of ratings: -
In reply to Bernhard Thoni

Re: self-enrolment throws error on mobile app (.. whereas manual enrolment not)

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hello Bernhard,

the invalid return value is usually due to some configuration problem or maybe a bug in a WS. The weird thing is that the courses disappear afterwards :/

Can you please send us a test account to mobile@moodle.com so we can check it? We need the Moodle URL, username and password. Also, please indicate the name of a course causing this problem so we can search it in the app smile

To be able to determine what is causing the "invalid return value" error we'll need debug mode activated (configured by admin). If this is a production site you should enable it only for the test. I'll tell you how and when to enable it when you've supplied us the user account.

Kind regards,

Dani

In reply to Dani Palou

Re: self-enrolment throws error on mobile app (.. whereas manual enrolment not)

by Bernhard Thoni -

Hi Dani,

thanks a lot for your assistance and help.

I've just sent an email to mobile@moodle.com with the data.

Kind regards,

Bernie


In reply to Bernhard Thoni

Re: self-enrolment throws error on mobile app (.. whereas manual enrolment not)

by Pau Ferrer Ocaña -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

For the record, The problem was that some courses have legacy forced language from 1.9 version (de_utf8). This was solved updating lang field from all courses on database.

Cheers!

Pau