Administrator > Communications > Schedule Reminders error when CiviEvent disabled
Overview
When trying to access Administrator > Communications > Schedule Reminders on CiviCRM 5.57.0 with CiviEvent disabled, we see an error.
""
Reproduction steps
- Disable CiviEvent component.
- Select Administrator > Communications > Schedule Reminders.
- Got an error "Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred. Event API is not available because CiviEvent component is disabled".
Expected behaviour
Prior to 5.57.0 the user was able to access this admin page without having CiviEvent enabled.
Environment information
- CiviCRM: 5.7....
- PHP: 7.4_
- CMS: WordPress 5.8.1
- Database: MySQL 5.7.7
- Web Server: Nginx...