CiviCRM 5.41.0 - WSOD crash with error PHP message: PHP Fatal error: Uncaught Error: Class 'CRM_Contact_Form_Search_Custom_Base
When updating to CiviCRM 5.41.0. Site crashes (WSOD) with error, PHP message: PHP Fatal error: Uncaught Error: Class 'CRM_Contact_Form_Search_Custom_Base.
This is due to the CRM_Contact_Form_Search_Custom_Base class being moved to the legacycustomsearches (core distributed) extension which is not enabled.
A CiviCRM site which has any of the following extensions installed (this is not an exhaustive list) would be impacted:
- nz.co.fuzion.historicmembershipdata
- uk.co.vedaconsulting.gdpr
- org.civicoop.recurringcontributionsearch
- org.civicoop.dataprocessor
Any extension that extends CRM_Contact_Form_Search_Custom_Base would be impacted by this issue.
Workaround
The workaround for this issue would be:
- Before the upgrade
- Disable each of the extensions that extends CRM_Contact_Form_Search_Custom_Base
- Perform the upgrade
- Enable the legacycustomsearches extension
- Re-enable each of the extensions that extends CRM_Contact_Form_Search_Custom_Base
Agileware Ref: CIVIBLD-275
Edited by justinfreeman (Agileware)