Upgrade Error: Could not delete payment processor type
When upgrading a staging site from 2.5.2 to 2.5.3, I was presented with a message about not being able to delete a payment processor. Looking at the logs, it seems it was trying to delete the Authnet payment processor which is the only processor set up on the site.
Dec 01 07:24:43 [error] (com.donordepot.authnetecheck) Unable to delete managed entity "Authorize.Net (Credit Card)": Could not delete payment processor type
Array
(
[exception] => CRM_Core_Exception: "Could not delete payment processor type"
#0 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php(369): civicrm_api3("payment_processor_type", "delete", (Array:2))
#1 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php(149): CRM_Core_ManagedEntities->removeStaleEntity((Array:8))
#2 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php(113): CRM_Core_ManagedEntities->reconcileEntities((Array:93))
#3 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(417): CRM_Core_ManagedEntities->reconcile()
#4 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Extension/Manager.php(231): CRM_Core_Invoke::rebuildMenuAndCaches(TRUE)
#5 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Extension/Downloader.php(152): CRM_Extension_Manager->replace("/tmp/tmp-xMrj2b//authnet-2.5.3")
#6 /home/www/staging/wp-content/plugins/civicrm/civicrm/api/v3/Extension.php(239): CRM_Extension_Downloader->download("com.donordepot.authnetecheck", "https://lab.civicrm.org/extensions/authnet/-/archive/2.5.3/authnet-2.5.3.zip")
#7 /home/www/staging/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_extension_download((Array:4))
#8 /home/www/staging/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(158): Civi\API\Provider\MagicFunctionProvider->invoke((Array:8))
#9 /home/www/staging/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest((Array:8))
#10 /home/www/staging/wp-content/plugins/civicrm/civicrm/api/api.php(22): Civi\API\Kernel->runSafe("Extension", "download", (Array:2))
#11 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Extensions.php(202): civicrm_api("Extension", "download", (Array:2))
#12 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(624): CRM_Admin_Form_Extensions->postProcess()
#13 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php(144): CRM_Core_Form->mainProcess()
#14 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php(43): CRM_Core_StateMachine->perform(Object(CRM_Admin_Form_Extensions), "next", "Next")
#15 /home/www/staging/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Admin_Form_Extensions), "next")
#16 /home/www/staging/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Admin_Form_Extensions), "next")
#17 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(355): HTML_QuickForm_Page->handle("next")
#18 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php(364): CRM_Core_Controller->run()
#19 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php(170): CRM_Core_Page_Basic->edit(2, NULL)
#20 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Extensions.php(105): CRM_Core_Page_Basic->run()
#21 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(319): CRM_Admin_Page_Extensions->run((Array:3), NULL)
#22 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:19))
#23 /home/www/staging/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
#24 /home/www/staging/wp-content/plugins/civicrm/civicrm.php(1199): CRM_Core_Invoke::invoke((Array:3))
#25 /home/www/staging/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress->invoke("")
#26 /home/www/staging/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters("", (Array:1))
#27 /home/www/staging/wp-includes/plugin.php(517): WP_Hook->do_action((Array:1))
#28 /home/www/staging/wp-admin/admin.php(259): do_action("toplevel_page_CiviCRM")
#29 {main}
)