ReportTemplate.create already exists in database.
Since most recent update, I have been getting the following error:
[info] $ManagedEntities_failed = Array
(
[entity] => ReportTemplate
[action] => create
[params] => Array
(
[version] => 3
[label] => Activity Detail Plus
[description] => Activity Detail Plus
[class_name] => CRM_Reportplus_Form_Activity_Detail
[report_url] => activity/detail/plus
[component] => ReportPlus
)
[result] => Array
(
[error_code] => 0
[entity] => ReportTemplate
[action] => create
[is_error] => 1
[error_message] => Value already exists in the database
)
)
After disabling and enabling extension, I get a yellow screen error but extension enables. I also get the error whenever updating any other extension.
Fatal Error:
[error]
$Fatal Error Details = array:3 [
"message" => "API error: Value already exists in the database on ReportTemplate.create"
"code" => null
"exception" => CRM_Core_Exception {#10819
-errorData: array:3 [
"is_error" => 1
"error_message" => "API error: Value already exists in the database on ReportTemplate.create"
"error_code" => "undefined"
]
#cause: null
-_trace: null
#message: "API error: Value already exists in the database on ReportTemplate.create"
#code: 0
#file: "/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/api/api.php"
#line: 135
trace: {
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/api/api.php:135 {
› if (is_array($result) && !empty($result['is_error'])) {
› throw new CRM_Core_Exception($result['error_message'], CRM_Utils_Array::value('error_code', $result, 'undefined'), $result);
› }
}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Extensions.php:192 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:573 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php:144 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php:43 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:355 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php:334 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php:140 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Extensions.php:105 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:319 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …}
/home/prinyc/www/www/wp-content/plugins/civicrm/civicrm.php:1199 { …}
/home/prinyc/www/www/wp-includes/class-wp-hook.php:308 { …}
/home/prinyc/www/www/wp-includes/class-wp-hook.php:332 { …}
/home/prinyc/www/www/wp-includes/plugin.php:517 { …}
/home/prinyc/www/www/wp-admin/admin.php:259 { …}
}
}
]
Civi 5.57.1 & WordPress