-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Hello, what would be a correct way of repair Summary Fields extension?
I can see a list of fields on wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fcustom%2Fgroup%2Ffield&reset=1&action=browse&gid=24 page and there are 25 fields listed. But there are only two fields in civicrm_value_summary_fields_24 table (where 24 is fields group): ID and Entity ID
This is what I've tried so far:
- Delete field group, got
Deletion Error
The Group 'Summary Fields' cannot be deleted! You must Delete all custom fields in this group prior to deleting the group.
-
Delete custom fields one by one via GUI - no luck, system just hangs.
-
Change settings on wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fsetting%2Fsumfields page.
"Your configuration may be corrupted. Please disable and renable this extension." and "There was an error applying your changes." (right, there is a typo in error message at "renable")
- delete via API brings (obviously, there are only 2 columns in the DB):
"code": -4,
"error_message": "DB Error: not found",
"mode": 16,
"debug_info": " ALTER TABLE civicrm_value_summary_fields_24 DROP COLUMN `total_lifetime_soft_credits_69` [nativecode=1091 ** Can't DROP 'total_lifetime_soft_credits_69'; check that column/key exists]",
"type": "DB_Error",
"user_info": " ALTER TABLE civicrm_value_summary_fields_24 DROP COLUMN `total_lifetime_soft_credits_69` [nativecode=1091 ** Can't DROP 'total_lifetime_soft_credits_69'; check that column/key exists]",
"to_string": "[db_error: message=\"DB Error: not found\" code=-4 mode=callback callback=CRM_Utils_REST::fatal prefix=\"\" info=\" ALTER TABLE civicrm_value_summary_fields_24 DROP COLUMN `total_lifetime_soft_credits_69` [nativecode=1091 ** Can't DROP 'total_lifetime_soft_credits_69'; check that column/key exists]\"]",
"is_error": 1
}"
- Tried turning it off and on again via disable &uninstall: no dice, it just said "Error creating fields: it seems it's already there" or something like that.
So I wonder: is it safe to delete all custom fields from civicrm_custom_field and a custom group from civicrm_custom_groups,
this looks like the last resort. Please advise, thank you.