CiviCRM 5.31 post upgrade errors, You have requested a non-existent service "mosaico_graphics"; You have requested a non-existent service "civi_flexmailer_required_tokens"; Unrecognized value for setting 'flexmailer_traditional'.
Just a FYI that we are seeing this CiviCRM 5.31 post upgrade errors, You have requested a non-existent service "mosaico_graphics" and You have requested a non-existent service "civi_flexmailer_required_tokens". Also see the following error message: Unrecognized value for setting 'flexmailer_traditional'.
Causes final step of the upgrade process to result in an error: There has been a critical error on your website. Please check your site admin email inbox for instructions. Learn more about debugging in WordPress.
And then this error message is displayed intermittently whilst navigating CiviCRM pages.
Error is output as response to all AJAX requests as the JSON payload, HTML error response which breaks that functionality.
Solution is to:
- Visit the Administer CiviCRM, Flexmailer Settings and re-save the Flexmailer Settings.
- Visit the Administer CiviCRM, Mosaico Settings page and saving
- Clear the CiviCRM caches
Then CiviCRM pages should load normally.
Environment: CiviCRM 5.31 WordPress 5.5.3
Agileware Ref: CIVICRM-1604 and CIVICRM-1612