Undefined Pop Up Message

Undefined Pop Up Message

by Mogana Logan -
Number of replies: 2

Good day. My name is R. Mogana. We are using Moodle version 3.8.2.  We are facing undefined error as below situation ;

1. when login

2. Add new activity

3. when refresh pages

4. Answer Quiz

5. Upload assignment

The last changes we have done ;

1. Repair the table and optimize table in MySQL because website was too slow

2. Change PHP version to 7.3

3. But already downgraded to 7.2


Kindly assist us. Thank you.

Attachment Access Quiz.png
Attachment Cannot add activity.png
Attachment When Login.png
Average of ratings: -
In reply to Mogana Logan

Re: Undefined Pop Up Message

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

In your screenshots, the theme icons are not being loaded, they should look like this:

Cropped screenshot using Academi theme with Font Awesome icons highlighted (e.g. telephone, speech bubble)

This may have the same cause, whatever is blocking the icons is also blocking JavaScript calls resulting in the "undefined" message.

The cause could be this:

  1. The Moodle site's URL is HTTP (not HTTPS).
  2. But browsers are loading files using HTTPS (not HTTP) because the server supports upgrade-insecure-requests.
  3. But the browser blocks these files from using HTTP due to its security policy. This stops the icons from loading and breaks JavaScript calls.

If this is the case, it suggests the server is already set up for HTTPS so hopefully to fix this you just need to change the URL to HTTPS in $CFG->wwwroot in config.php which is in the root of the Moodle source code folder on the server. E.g.

$CFG->wwwroot   = 'http://mycollege.example.com/moodle';

becomes:

$CFG->wwwroot   = 'https://mycollege.example.com/moodle';


In reply to Leon Stringer

Re: Undefined Pop Up Message

by Mogana Logan -
Good day,

Thank you very much. I followed the steps and the Problem solved.

Thank you again.