-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
3.5, 3.6.9, 3.9.11, 3.11.7
-
MOODLE_311_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_39_STABLE
-
-
Originally reported by sccanedo at https://moodle.org/mod/forum/discuss.php?d=372283
Steps to reproduce
- Add the calendar block to a course
- Configure the block so that it appears on any page ("Display on page types: Any page")
- Log in as a user not enrolled to that course
Expected behaviour: The "Enrolment options" page should display so that the user can enrol to the course.
Actual behaviour: require_login_exception is thrown:
requireloginerror: Course or activity not accessible.
|
File: lib/moodlelib.php
|
Line: 2869
|
|
Stack trace:
|
|
Not enrolled
|
Error code: requireloginerror
|
* line 2869 of /lib/moodlelib.php: require_login_exception thrown
|
* line 480 of /lib/externallib.php: call to require_login()
|
* line 988 of /calendar/externallib.php: call to external_api::validate_context()
|
* line 228 of /lib/externallib.php: call to core_calendar_external::get_calendar_monthly_view()
|
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()
|
- has a non-specific relationship to
-
MDL-60993 Front page user tour causes site policy error on login
- Open
-
MDL-62044 Calendar block on frontpage throws exceptions "policy not agreed"
- Open
- has been marked as being related by
-
MDL-58763 Usertours cannot be used on the enrolment page
- Closed
-
MDL-80974 "requireloginerror" when opening messaging on self-enrolment page
- Closed
- is duplicated by
-
MDL-63003 Requireloginerror
- Closed
-
MDL-64639 Popup error when showing calendar block on enrolment page
- Closed