Moodle 3.8+ Invalid response related to cordova.js

Moodle 3.8+ Invalid response related to cordova.js

by Jan Niels Ganzer -
Number of replies: 0

Hi vereyone!

I am currently working with a Moodle 3.8.2. My first Moodle installation, so please be gentle in case this is a totally stupid piece-of-cake question. This Moodle installation has two languages, English and Swedish.

The problem: Whenever Moodle is started in both the mobile or desktop app I get an invalid response error. After activating the debugging I found out that the error is a

"failed to load resource: net::ERR_FILE_NOT_FOUND in cordova.js:1"

Further down the log file another error occurs:

"Failed to load resource: the server www. .../mobile/check.php:1 responded with a status of 404 (Not found)"

Besides these two errors a number of similar warnings occur:

"Ionic Native: tried calling ...(different things)..., but Cordova is not available. Make sure to a) run in a real device or simulator and b) include cordova.js in your index.html"  vendor.js

I have had this problem for a while. First with Moodle 3.8.0 and php 7.2, now with Moodle 3.8.2 and php 7.4.


Searching on Google and the forums I found a similar thread about this problem in Moodle 3.6 where a langugare file was empty. However, I did not find the paths that were mentioned there. Maybe this has changed since 3.6?

Further, another artikle wrote about braces in the course names causing similar problems. I have checked this and there were no braces in course names.

I would be greateful for some guidance in this.

With kind regards

Niels

Average of ratings: -