Tim Hunt please help, Required parameter error (processattempt.php)

Tim Hunt please help, Required parameter error (processattempt.php)

Balya Rochmadi發表於
Number of replies: 6
I got an error like this after debugging
Error code: missingparam
* line 610 of /lib/moodlelib.php: moodle_exception thrown
* line 39 of /mod/quiz/processattempt.php: call to required_param()" while reading response header from upstream, client: xx,xxx.xx.xxxx, server: mysite.com, request: "GET /mod/quiz/processattempt.php?cmid=627 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/mod/quiz/attempt.php?attempt=5681&cmid=627&page=10"

I check the site : source code and found this $attemptid     = required_param('attempt',  PARAM_INT);
I think the parameter exist on that header URL
https://mysite.com/mod/quiz/attempt.php?attempt=5681&cmid=627&page=10 

Why was it missing?

Did my nginx config too low?
 ## fast_CGI_BUFFERS
        fastcgi_buffers 16 16k;
        fastcgi_buffer_size 32k;



client_body_buffer_size 10K;
        client_header_buffer_size 1k;
        client_max_body_size 8m;
        large_client_header_buffers 4 4k;
        client_body_timeout 12;
        client_header_timeout 12;
        keepalive_timeout 10;
        send_timeout 10;
評比平均分數: -
In reply to Balya Rochmadi

Re: Tim Hunt please help, Required parameter error (processattempt.php)

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
What is the sequence of requests in you web server logs just before this moment? (for that user's IP address)?

What authentication system are you using?
In reply to Tim Hunt

Re: Tim Hunt please help, Required parameter error (processattempt.php)

Balya Rochmadi發表於
Version 4.1.6 (Build: 20231009)

This comes from Nginx access.log files

36.72.217.186 - - [03/Nov/2023:13:22:08 +0000] "GET /mod/quiz/attempt.php?attempt=6035&cmid=605&page=27 HTTP/1.1" 200 12856 "https://xxxxxxxxx/mod/quiz/attempt.php?attempt=6035&cmid=605&page=28" "Mozilla/5.0 (Linux; Android 11; CPH2239) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36"
10.104.0.21 - - [03/Nov/2023:13:22:09 +0000] "GET / HTTP/1.1" 303 1512 "-" "-"
36.72.217.186 - - [03/Nov/2023:13:22:11 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxx/mod/quiz/attempt.php?attempt=6035&cmid=605&page=27" "Mozilla/5.0 (Linux; Android 11; CPH2239) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36"
36.72.217.186 - - [03/Nov/2023:13:22:15 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxx.sch.id/mod/quiz/attempt.php?attempt=6035&cmid=605&page=26" "Mozilla/5.0 (Linux; Android 11; CPH2239) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:17 +0000] "GET /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 404 8064 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
10.104.0.21 - - [03/Nov/2023:13:22:19 +0000] "GET / HTTP/1.1" 303 1512 "-" "-"
36.72.217.186 - - [03/Nov/2023:13:22:19 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6035&cmid=605&page=25" "Mozilla/5.0 (Linux; Android 11; CPH2239) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:21 +0000] "GET /? HTTP/1.1" 200 10128 "https://xxxxxxxxxxxx.sch.id/mod/quiz/processattempt.php?cmid=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
36.72.217.186 - - [03/Nov/2023:13:22:24 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6035&cmid=605&page=24" "Mozilla/5.0 (Linux; Android 11; CPH2239) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36

This comes from Nginx error.log files

Error code: missingparam
* line 610 of /lib/moodlelib.php: moodle_exception thrown
* line 39 of /mod/quiz/processattempt.php: call to required_param()" while reading response header from upstream, client: 114.10.125.118, server: xxxxxxxxxxxxxxxxx.sch.id, request: "GET /mod/quiz/processattempt.php?cmid=605 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "xxxxxxxxxxxxxxxxxx"


What authentication system are you using?
I am using Manual Auth

I also use cloudflare as DNS Proxy.

In reply to Balya Rochmadi

Re: Tim Hunt please help, Required parameter error (processattempt.php)

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
You probably need to focus on all the logs for 114.10.125.118 going back a few more minutes, and ignore the rest.
In reply to Tim Hunt

Re: Tim Hunt please help, Required parameter error (processattempt.php)

Balya Rochmadi發表於
Okay this is all

114.10.125.118 - - [03/Nov/2023:13:12:56 +0000] "GET /login/index.php HTTP/1.1" 200 6661 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:13:14 +0000] "GET /pluginfile.php/974/user/icon/learnr/f2?rev=14258 HTTP/1.1" 200 615 "https://xxxxxxxxxxx.sch.id/" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:13:19 +0000] "GET /my/ HTTP/1.1" 200 8261 "https://xxxxxxxxxxx.sch.id/" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:13:24 +0000] "GET /course/view.php?id=10 HTTP/1.1" 200 26136 "https://xxxxxxxxxxx.sch.id/my/" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:13:25 +0000] "POST /lib/ajax/service.php?sesskey=Sdt1eJw9fA&info=core_courseformat_get_state HTTP/1.1" 200 3051 "https://xxxxxxxxxxx.sch.id/course/view.php?id=10" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:14:11 +0000] "GET /mod/quiz/attempt.php?attempt=6032&page=13&cmid=605 HTTP/1.1" 200 12959 "https://xxxxxxxxxxx.sch.id/mod/quiz/view.php?id=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:14:18 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&page=13&cmid=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:15:39 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=15" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:15:40 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=16 HTTP/1.1" 200 13040 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=15" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:16:15 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=18 HTTP/1.1" 200 13085 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=17" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:16:37 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=19 HTTP/1.1" 200 13192 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=18" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:16:44 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=20 HTTP/1.1" 200 13133 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=19" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:16:52 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=20" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:17:22 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=23 HTTP/1.1" 200 13130 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=22" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:18:09 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=24 HTTP/1.1" 200 13017 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=23" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:18:15 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=24" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:18:16 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=25 HTTP/1.1" 200 13067 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=24" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:18:34 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=25" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:18:35 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=26 HTTP/1.1" 200 13019 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=25" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:18:48 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=27" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:18:55 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=28" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:18:55 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=29 HTTP/1.1" 200 12928 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=28" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:19:01 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=29" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:20:41 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=32" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:21:04 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=4 HTTP/1.1" 200 12944 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=12" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:21:09 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=3 HTTP/1.1" 200 12985 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=4" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:21:34 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=3" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:21:39 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=34" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:17 +0000] "GET /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 404 8064 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:21 +0000] "GET /? HTTP/1.1" 200 10128 "https://xxxxxxxxxxx.sch.id/mod/quiz/processattempt.php?cmid=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:33 +0000] "GET /my/ HTTP/1.1" 200 8263 "https://xxxxxxxxxxx.sch.id/?" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:49 +0000] "GET /mod/quiz/view.php?id=605 HTTP/1.1" 200 10715 "https://xxxxxxxxxxx.sch.id/course/view.php?id=10" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:52 +0000] "POST /mod/quiz/startattempt.php HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/view.php?id=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:55 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&page=12&cmid=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:55 +0000] "GET /mod/quiz/attempt.php?attempt=6032&cmid=605&page=34 HTTP/1.1" 200 12962 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&page=12&cmid=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:59 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1559 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=34" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:23:09 +0000] "GET /mod/quiz/review.php?attempt=6032&cmid=605 HTTP/1.1" 303 1537 "https://xxxxxxxxxxx.sch.id/mod/quiz/summary.php?attempt=6032&cmid=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:23:09 +0000] "GET /mod/quiz/view.php?id=605 HTTP/1.1" 200 12144 "https://xxxxxxxxxxx.sch.id/mod/quiz/summary.php?attempt=6032&cmid=605" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"



And from error log
* line 39 of /mod/quiz/processattempt.php: call to required_param()" while reading response header from upstream, client: 114.10.125.118, server: xxxxxxxxxxx.sch.id, request: "GET /mod/quiz/processattempt.php?cmid=605 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "xxxxxxxxxxxxxxx.sch.id"





In reply to Balya Rochmadi

Re: Tim Hunt please help, Required parameter error (processattempt.php)

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
Are you expecting that if you keep copying and pasting your logs here, I will investigate your problem for you?

I am expecting that if I give you the appropriate advice, you will investigate your own problem.

I will say that, from these logs, this is not just normal Moodle operation. Just focus on the last three request form this IP leading up to the error:

114.10.125.118 - - [03/Nov/2023:13:21:34 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=3" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:21:39 +0000] "POST /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 303 1571 "https://xxxxxxxxxxx.sch.id/mod/quiz/attempt.php?attempt=6032&cmid=605&page=34" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
114.10.125.118 - - [03/Nov/2023:13:22:17 +0000] "GET /mod/quiz/processattempt.php?cmid=605 HTTP/1.1" 404 8064 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"

The first POST is normal. POST to processattempt.php with referrer of attempt.php is what you expect to see.

The second one is weird, If ther referrer for that POST is attempt=6032&cmid=605&page=34, but why was there not a GET for that URL showing in these logs?

The GET for processattempt.php is really weird. Moodle only POSTS to that URL. There two most natural explanations for this are:

1. The user got redirected (e.g. to login/index.php and back again - but if so, that should be in the logs.)

2. The user saw an error message, and reloaded the page in a way that changed the POST to a GET (which is not normal browser behaviour.)

You need more info, e.g. talking to the studetn about what they thought happened.
評比平均分數:Useful (1)
In reply to Tim Hunt

Re: Tim Hunt please help, Required parameter error (processattempt.php)

Balya Rochmadi發表於
Thank you for the answer Tim,

Actually our team had identified the source of the problem on 3 November 2023, the problem was coming from cloud flare proxy that we are using. After further investigation we cannot completely remove the DNS proxy (using argos) because some of our ISP blocked our site without reason. So there's will never be a permanent fix for this problem, unless we can somehow free from Cloudflare DNS proxy.