We have Moodle 2.9.1+ (Build: 20150716)
Hi guys, got the error "Unsupported redirect detected, script execution terminated" when trying to log in, on the android play store app I downloaded and won't let the me/user go further. If relevant, I was trying on an android galaxy II tablet.
Could this be related to the website using a subdomain (ie. lms.academy247.co.za)? It's the only thing I was wondering about, however the site login is fine. I only enabled the mobile web service today.
We really want to promote the "moodle mobile" side of things to the students.
Suggestions will be appreciated, thank you.
would you be able to send me a test login/password via private message (or mail: firstname.lastname@example.org) so that I can try to reproduce the problem? Thanks!
Thanks Frédéric, email sent.
I have tested using Android 4.1, 5.0, Google Chrome and Google Chromium (insecure) and I could always connect and use the site without any problem.
One thing I noticed, which might be a source of problems in some scenarios, is that the domain using HTTPS is reachable, but has an expired certificate. But also, that HTTPS site is not Moodle.
Maybe you should investigate there and remove the SSL version of your site, so that the mobile app does not get confused.
Lastly, applying the patch we introduced here might help: MDL-50107
Let me know how you go.
Hi Fred, apologies for the late reply. Been a busy period for me.
I checked the patch instruction on github, but the change was already in the token.php file (addition of header(...) line). Hopefully there isn't anything else I missed.
It still gave me the following error/result in the test CORS.html file
I guess that only leaves the SSL side to check. Did you see the HTTPS URL to which you say it's not a moodle site? However, I know Joomla is linked to moodle with Joomdle plugin, if that's perhaps what you saw?