Details
-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.8.3, 3.9
-
Fix Version/s: None
-
Component/s: HTML Editor (Atto), JavaScript
-
Labels:None
-
Affected Branches:MOODLE_38_STABLE, MOODLE_39_STABLE
Description
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.