Enable Moodle Self-Enrolment and Fix Access Errors
Moodle self-enrolment has two switches: the site plugin must be available, and an active Self enrolment method must exist in the course. Dates, keys, capacity, roles, and account state can still prevent enrolment.