-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
3.8.3, 3.9, 3.11.4, 4.0
-
None
-
MOODLE_311_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
Originally from MDL-68459 (now split from it), we need to check (and fix if needed) why this is being reported in logs:
Problem C: Course or activity not accessible (maybe it's ok). It happens 3 times.
It happens with scenarios: "Do not restore a draft if files have been modified", "Do not restore a draft if text has been modified" and "Content viewed event".
67235:[Sat Apr 18 07:35:51.829527 2020] [php7:notice] [pid 10177] [client 172.29.0.10:38482] Default exception handler: Course or activity not accessible. Debug: You are not logged in
Error code: requireloginerror
- line 2711 of /lib/moodlelib.php: require_login_exception thrown
- line 69 of /lib/editor/atto/autosave-ajax.php: call to require_login()
, referer: http://runcd9a035d2c706523/behatrun3/course/edit.php?id=105000
The first 2 cases are with the autosave ajax script being not logged in on course edit page. The 3rd with report loglive ajax returning the same. Maybe a pause is needed or something to allow those ajax scripts to know they are logged in.
Originally from MDL-72815 (now split from it), the very same error is now happening in different scenario, not in the original ones, it seems:
Problem D: Default exception handler: Course or activity not accessible. It happens 2 times
Maybe caused by previous problem (same request)!
Happens in scenario: (not always!) --tags '@mod_data' --name 'View automatic completion items as a failing student'
290220:[Sat Oct 30 05:51:38.025686 2021] [php:notice] [pid 1878] [client 172.29.0.5:36092] Default exception handler: Course or activity not accessible. Debug: You are not logged in
Error code: requireloginerror
- line 2717 of /lib/moodlelib.php: require_login_exception thrown
- line 69 of /lib/editor/atto/autosave-ajax.php: call to require_login()
, referer: http://webserver768231fe5b483824/behatrun3/mod/data/templates.php?d=196000&mode=singletemplate
- Discovered while testing
-
MDL-68459 Fix problems reported in apache logs before 3.9 release
-
- Closed
-
-
MDL-69971 Fix problems reported in apache logs before 3.10 release
-
- Closed
-
-
MDL-71312 Fix problems reported in apache logs before 3.11 release
-
- Closed
-
- has been marked as being related by
-
MDL-76064 Fix problems reported in apache logs before 4.1 release
-
- Closed
-
-
MDL-77758 Fix problems reported in apache logs before 4.2 release
-
- Closed
-
-
MDL-72815 Fix problems reported in apache logs before 4.0 release
-
- Closed
-
-
MDL-73019 Verify that the apache logs are clean of PHP 8.1 notices/warnings/errors
-
- Closed
-