Fatal error on merge
Overview
After update to 5.59 (maybe earlier). A fatal error is received on merging contacts.
Reproduction steps
- Attempt to merge contacts
- Fatal error
Current behaviour
PHP Fatal error: Uncaught TypeError: Argument 6 passed to CRM_Dedupe_Merger::processCustomFields() must be of the type bool, null given, called in /home/example/public_html/wp-content/plugins/civicrm/civicrm/CRM/Dedupe/Merger.php on line 2128 and defined in /home/example/public_html/wp-content/plugins/civicrm/civicrm/CRM/Dedupe/Merger.php:2553
Stack trace:
#0 /home/example/public_html/wp-content/plugins/civicrm/civicrm/CRM/Dedupe/Merger.php(2128): CRM_Dedupe_Merger::processCustomFields()
#1 /home/example/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Merge.php(324): CRM_Dedupe_Merger::moveAllBelongings()
#2 /home/example/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(573): CRM_Contact_Form_Merge->postProcess()
#3 /home/example/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php(144): CRM_Core_Form->mainProcess()
#4 /home/example/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php(43): CRM_Core_StateMachine->perform()
#5 /home/example/public_html/wp-content/plugins/civicrm/ in /home/example/public_html/wp-content/plugins/civicrm/civicrm/CRM/Dedupe/Merger.php on line 2553
Possible fix
Ensure $htmlType
and $isView
are set and bools.
Expected behaviour
Contacts merged.
Environment information
- Browser: all
- CiviCRM: 5.59.3
- PHP: 7.4
- CMS: WordPress
- Database: MySQL 5.7.41
- Web Server: Apache 2.4
Comments
NA