Ajax commands and undefined boxes in Moodle 3.11.9

Ajax commands and undefined boxes in Moodle 3.11.9

by Sogy S -
Number of replies: 3
Hello,

Since few days, without having changed anything we have "Undefined" boxes appearing in each page.
I see also three 404 http errors (in browser console log), all related with some "service-nologin.php" file.

We have a Moodle managed by Cpanel (LWS).

I found in others post people having the same problem (403 errors instead). One said that is related to Apache proxy/WAF configuration. Unfortunately, as we have not access to apache configuration file, I wanted to know if someone could provide an alternative solution to this problem.

Here is 2 examples of http requests in error:

{
    "GET": {
        "scheme": "https",
        "host": "my-domain.com",
        "filename": "/plateforme/lib/ajax/service-nologin.php",
        "query": {
            "info": "core_output_load_fontawesome_icon_system_map",
            "cachekey": "1662796622",
            "args": "[{\"index\":0,\"methodname\":\"core_output_load_fontawesome_icon_system_map\",\"args\":{\"themename\":\"boost\"}}]"
        },
        "remote": {
            "Adresse": "XXX.XX.XXX.XXX:443"
        }
    }
}

{
    "GET": {
        "scheme": "https",
        "host": "my-domain.com",
        "filename": "/plateforme/lib/ajax/service-nologin.php",
        "query": {
            "info": "6-method-calls",
            "cachekey": "1662864252",
            "args": "[{\"index\":0,\"methodname\":\"core_get_string\",\"args\":{\"stringid\":\"cancel\",\"stringparams\":[],\"component\":\"core\",\"lang\":\"fr\"}},{\"index\":1,\"methodname\":\"core_get_string\",\"args\":{\"stringid\":\"closebuttontitle\",\"stringparams\":[],\"component\":\"core\",\"lang\":\"fr\"}},{\"index\":2,\"methodname\":\"core_get_string\",\"args\":{\"stringid\":\"loading\",\"stringparams\":[],\"component\":\"core\",\"lang\":\"fr\"}},{\"index\":3,\"methodname\":\"core_get_string\",\"args\":{\"stringid\":\"savechanges\",\"stringparams\":[],\"component\":\"core\",\"lang\":\"fr\"}},{\"index\":4,\"methodname\":\"core_get_string\",\"args\":{\"stringid\":\"showless\",\"stringparams\":[],\"component\":\"core_form\",\"lang\":\"fr\"}},{\"index\":5,\"methodname\":\"core_get_string\",\"args\":{\"stringid\":\"showmore\",\"stringparams\":[],\"component\":\"core_form\",\"lang\":\"fr\"}}]"
        },
        "remote": {
            "Adresse": "XXX.XX.XXX.XXX:443"
        }
    }
}

PHP version : 7.4
Moodle installed via Softaculous.
Theme Boost.

We don't have permissions to access apache errors log. And we suspect the host provider having changed something in proxy/WAF configuration.

Best regards
Average of ratings: -
In reply to Sogy S

Re: Ajax commands and undefined boxes in Moodle 3.11.9

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It's not the request we need.... it's what comes back. You should be able to get this from the Network tab in your browser's console. Switch on Debugging first as well.
In reply to Howard Miller

Re: Ajax commands and undefined boxes in Moodle 3.11.9

by Sogy S -
Here's the network tab screenshot
Network tab screenshot

Debug mode displays an empty box (no message no stack trace)
In reply to Sogy S

Re: Ajax commands and undefined boxes in Moodle 3.11.9

by Sogy S -
This problem is caused by the .htaccess file. We resolved it by deleting this file.
Average of ratings: Useful (1)