ajax commands and undefined boxes in Moodle 3.8.1

ajax commands and undefined boxes in Moodle 3.8.1

Eric Oberle發表於
Number of replies: 4

Hello, 

I just updated to Moodle 3.8 and to (php 7.3)  and whenever I go to the grading panel, I receive two  "undefined" boxes and then the Ajax widgets (for example,  the "show more" button) do not work.  if I look at the javascript console I see that the Ajax calls are failing with a 403 error, e.g.: 

https://subdomain.domain.com/lib/ajax/service-nologin.php?info=core_output_load_template_with_dependencies,core_output_load_template_with_dependencies,core_output_load_template_with_dependencies&cachekey=1579840239&args=%5B%7B%22index%22%3A0%2C%22methodname%22%3A%22core_output_load_template_with_dependencies%22%2C%22args%22%3A%7B%22component%22%3A%22core%22%2C%22template%22%3A%22form_autocomplete_suggestions%22%2C%22themename%22%3A%22classic%22%2C%22lang%22%3A%22en_us%22%7D%7D%2C%7B%22index%22%3A1%2C%22methodname%22%3A%22core_output_load_template_with_dependencies%22%2C%22args%22%3A%7B%22component%22%3A%22core%22%2C%22template%22%3A%22form_autocomplete_selection%22%2C%22themename%22%3A%22classic%22%2C%22lang%22%3A%22en_us%22%7D%7D%2C%7B%22index%22%3A2%2C%22methodname%22%3A%22core_output_load_template_with_dependencies%22%2C%22args%22%3A%7B%22component%22%3A%22mod_assign%22%2C%22template%22%3A%22grading_navigation_user_summary%22%2C%22themename%22%3A%22classic%22%2C%22lang%22%3A%22en_us%22%7D%7D%5D

throws a 403.  I have changed nothing else on the server configuration.

But until I figure this out,I can't use any of the widgets and so it's pretty miserable to use moodle.  

Does anyone have a guess as to what might be causing the server to do this? 

thanks in advance,

Erico

評比平均分數: -
In reply to Eric Oberle

Re: ajax commands and undefined boxes in Moodle 3.8.1

Eric Oberle發表於
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

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

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

Ken Task發表於
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

評比平均分數:Useful (1)