After updating from 5.8.2 to 5.9.0, anonymous users suddenly get the above error when trying to register for an event.
Anyone a good hint how to resolve that? Thanks
Debug log shows
Datenbank-Errorcode: Cannot add or update a child row: a foreign key constraint fails (db_local
.civicrm_acl_contact_cache
, CONSTRAINT FK_civicrm_acl_contact_cache_user_id
FOREIGN KEY (user_id
) REFERENCES civicrm_contact
(id
) ON DELETE CASCADE), 1452
Zusätzliche Details:
Array ( [callback] => Array ( [0] => CRM_Core_Error [1] => handle )
[code] => -3
[message] => DB Error: constraint violation
[mode] => 16
[debug_info] => INSERT INTO civicrm_acl_contact_cache ( user_id, contact_id, operation ) VALUES(0, 0, 'View') [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`db_local`.`civicrm_acl_contact_cache`, CONSTRAINT `FK_civicrm_acl_contact_cache_user_id` FOREIGN KEY (`user_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
[type] => DB_Error
[user_info] => INSERT INTO civicrm_acl_contact_cache ( user_id, contact_id, operation ) VALUES(0, 0, 'View') [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`db_local`.`civicrm_acl_contact_cache`, CONSTRAINT `FK_civicrm_acl_contact_cache_user_id` FOREIGN KEY (`user_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
[to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_acl_contact_cache ( user_id, contact_id, operation ) VALUES(0, 0, 'View') [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`db_local`.`civicrm_acl_contact_cache`, CONSTRAINT `FK_civicrm_acl_contact_cache_user_id` FOREIGN KEY (`user_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)
zzz
.civicrm_acl_contact_cache
, CONSTRAINTFK_civicrm_acl_contact_cache_user_id
FOREIGN KEY (user_id
) REFERENCEScivicrm_contact
(id
) ON DELETE CASCADE), 1452 Additional Details: Array ( [callback] => Array ( [0] => CRM_Core_Error [1] => handle ) [code] => -3 [message] => DB Error: constraint violation [mode] => 16 [debug_info] => INSERT INTO civicrm_acl_contact_cache ( user_id, contact_id, ope