ajax commands and undefined boxes in Moodle 3.8.1

Re: ajax commands and undefined boxes in Moodle 3.8.1

by Eric Oberle -
Number of replies: 3
To follow up and clarify:
The problem I am experiencing is that when I go into the grading console, I receive two "undefined" boxes. And then if I click on the "+" icon to reveal the full text from the student, nothing happens. My supposition is that this no response is related to the 403 error I am receiving. Is it?

I'll just add. If I go into the javascript console and find the element by ID, I can't fire it from the console. So for example:
if the button is:

I cannot issue
document.getElementById('yui_3_17_2_1_1579883745364_858').click();
and thereby get the full text to be revealed....

Can anyone help me figure this out?
In reply to Eric Oberle

Re: ajax commands and undefined boxes in Moodle 3.8.1

by Edwin H -

Hi Eric,

Have you been able to work this one out?

Having the same isue over here (with a lot more pages by the way).


In reply to Edwin H

Re: ajax commands and undefined boxes in Moodle 3.8.1

by Edwin H -

Wanted to let you all know I solved this in my situation:

For me moodle is behind an apache proxy.

This proxy has mod_evasive enabled.

This essentially caused for site snippet requests to be denied by the apache server because they mimmic a DDOS attack. Discovered this because my main apache server error log was full of

[Thu Mar 19 23:10:34.298787 2020] [evasive20:error] [pid 3052] [client XXX.XXX.XXX.XXX:52352] client denied by server configuration: proxy:https://XXX.XXX.XXX.XXX:443/lib/ajax/service-nologin.php, referer: https://myfakedomain.nl/my/


I have tweaked my mod_evasive figures so that the errors stayd out.


In reply to Edwin H

Re: ajax commands and undefined boxes in Moodle 3.8.1

by Ken Task -
Picture of Particularly helpful Moodlers

Congrats, Edwin H, on solving!

Mind sharing a little more detail to the fix by tweaking mod_evasive setting for all who might also be able to solve if they run mod_evasive?

Thanks, in advance,

'SoS', Ken

Average of ratings: Useful (1)