Mobile login: Can not find data record in database table external_functions

Mobile login: Can not find data record in database table external_functions

by Patrick Gardella -
Number of replies: 4

We have a faculty member trying to use Mobile.  We are on Moodle 3.1+ (Build: 20160603) and Moodle Mobile local_mobile plugin 3.1.310 (2016050100). We authenticate using CAS, so we use the login via browser window option.

He is able to log in, but immediately gets this error.  If he clicks OK, then it takes him into the site.

As far as I know, he's the only person to try to use Mobile other than us admins.

I have debugging enabled for his user, and all I see in the error logs is:

[Thu Aug 18 17:13:49.770420 2016] [proxy_fcgi:error] [pid 30685:tid 140454716679936] [client 76.177.242.244:35902] AH01071: Got error 'PHP message: Default exception handler: A required parameter (username) was missing Debug: \nError code: missingparam\n* line 495 of /lib/setuplib.php: moodle_exception thrown\n* line 552 of /lib/moodlelib.php: call to print_error()\n* line 33 of /login/token.php: call to required_param()\n\n'

The FAQs note that this usually relates to going from https to http or the reverse, but I've verified we are on https the entire time.

Any thoughts?

Thanks!

Patrick+

Average of ratings: -
In reply to Patrick Gardella

Re: Mobile login: Can not find data record in database table external_functions

by Patrick Gardella -

I see this is the same as another thread.

The user has these permissions:

  • moodle/webservice:createmobiletoken
  • moodle/webservice:createtoken
  • webservice/rest:use
  • webservice/soap:use
  • webservice/xmlrpc:use

Userquota is set to the default: 104857600

I've uninstalled the plugin, and reinstalled it as well.

In reply to Patrick Gardella

Re: Mobile login: Can not find data record in database table external_functions

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 Patrick,

is that the only user with this problem?

It would be nice to have a test user with this problem so we could check what's going on. Can you please send the credentials to mobile@moodle.com?

Thank you,

Dani

In reply to Dani Palou

Re: Mobile login: Can not find data record in database table external_functions

by Patrick Gardella -

It may be that user only.  The test student we created worked fine.  I'll send those credentials shortly.

In reply to Patrick Gardella

Re: Mobile login: Can not find data record in database table external_functions

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

For the record, the problem was that some users were configured to use language en_us, but that package wasn't installed in Moodle. Installing the language pack fixed it.