error database table_external_functions

error database table_external_functions

by Elton LaClare -
Number of replies: 1

Hello,

Since updating to the latest version of Moodle (3.4), I've been unable to connect to the official Moodle Mobile app. I followed the directions for WS debugging (https://docs.moodle.org/dev/Moodle_Mobile_debugging_WS_requests) and located the following errors: 

{"exception":"dml_missing_record_exception","errorcode":"invalidrecord","message":"Can not find data record in database table external_functions."}

{"exception":"moodle_exception","errorcode":"missingversionfile","message":"Coding error: version.php file is missing for the component mod_certificate"}

 

{"token":"7b840ae4777c4d9d249db2bc316f93c3","privatetoken":null}

[{"error":false,"data":{"wwwroot":"https:\/\/md.ed.sojo-u.ac.jp","httpswwwroot":"https:\/\/md.ed.sojo-u.ac.jp","sitename":"SILC Online","guestlogin":1,"rememberusername":0,"authloginviaemail":0,"registerauth":"","forgottenpasswordurl":"","authinstructions":"","authnoneenabled":0,"enablewebservices":1,"enablemobilewebservice":1,"maintenanceenabled":0,"maintenancemessage":"<p>The system is currently undergoing scheduled maintenance. We are sorry for the inconvenience.<\/p>","logourl":"https:\/\/md.ed.sojo-u.ac.jp\/pluginfile.php\/1\/core_admin\/logo\/0x200\/1520825898\/SILC%20icon%20samples%20II-04.png","compactlogourl":"https:\/\/md.ed.sojo-u.ac.jp\/pluginfile.php\/1\/core_admin\/logocompact\/0x70\/1520825898\/SILC%20small2-02%281%29.png","typeoflogin":1,"launchurl":"https:\/\/md.ed.sojo-u.ac.jp\/admin\/tool\/mobile\/launch.php","mobilecssurl":"http:\/\/mm.cvaconsulting.com\/moodle\/local\/mobile.css","tool_mobile_disabledfeatures":"","warnings":[]}}]

{"error":"Invalid login, please try again","errorcode":"invalidlogin","stacktrace":null,"debuginfo":null,"reproductionlink":null}


I intended to research the problem on my own, but it seems the  en:Moodle Mobile FAQ Moodle Mobile FAQ page has not yet been built. 

Any help you can provide is greatly appreciated.

Average of ratings: -
In reply to Elton LaClare

Re: error database table_external_functions

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

So I see several problems there:

- You uninstalled or installed badly mod_certificate (it says that the version.php file is missing)

- You sould tried to connect to a site under maintenance (The system is currently undergoing scheduled maintenance. We are sorry for the inconvenience )

- In general, it seems that during upgrade something went wrong, you should also check that if you are using local_mobile plugin yo uare using the correct version for your site