" is not of type String" when activating, deactivating, installing or uninstalling a plugin
I recently migrated a CiviCRM instance from Drupal to WordPress. CiviCRM is mostly functional, but I have multiple issues, namely with payment processors. The following error may be unrelated, but at this point I'm at a loss for what might be going wrong, so I thought I would bring it up.
- CiviCRM version 5.53
- WordPress version 6.1.1
Whenever I activate, deactivate, install or uninstall a plugin, the action is successful, but I get the following error:
Dec 12 17:09:41 [error]
$Fatal Error Details = array:3 [
"message" => " is not of type String"
"code" => null
"exception" => CRM_Core_Exception {#15941
-errorData: array:1 [
"error_code" => 0
]
#cause: null
-_trace: null
#message: " is not of type String"
#code: 0
#file: "/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php"
#line: 1769
trace: {
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php:1769 {
› elseif ($abort) {
› throw new CRM_Core_Exception("{$item[0]} is not of type {$item[1]}");
› }
}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php:1619 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/CustomOption.php:238 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/OptionValue.php:145 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/OptionValue.php:34 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/Traits/DAOActionTrait.php:170 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/Traits/DAOActionTrait.php:141 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/DAOUpdateAction.php:31 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/AbstractUpdateAction.php:93 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/Civi/Api4/Provider/ActionObjectProvider.php:69 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php:149 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/AbstractAction.php:234 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/api/api.php:85 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php:257 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php:144 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php:112 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:417 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Extension/Manager.php:425 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Extensions.php:197 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:573 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php:144 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php:43 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:355 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php:334 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php:140 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Extensions.php:105 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:319 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …}
/home/SITE/public_html/wp-content/plugins/civicrm/civicrm.php:1199 { …}
/home/SITE/public_html/wp-includes/class-wp-hook.php:308 { …}
/home/SITE/public_html/wp-includes/class-wp-hook.php:332 { …}
/home/SITE/public_html/wp-includes/plugin.php:517 { …}
/home/SITE/public_html/wp-admin/admin.php:259 { …}
}
}
]
Dec 12 17:09:41 [debug] $backTrace = #0 /home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(441): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/SITE/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(39): CRM_Core_Error::handleUnhandledException(Object(CRM_Core_Exception))
#2 /home/SITE/public_html/wp-content/plugins/civicrm/civicrm.php(1199): CRM_Core_Invoke::invoke((Array:3))
#3 /home/SITE/public_html/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress->invoke("")
#4 /home/SITE/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters("", (Array:1))
#5 /home/SITE/public_html/wp-includes/plugin.php(517): WP_Hook->do_action((Array:1))
#6 /home/SITE/public_html/wp-admin/admin.php(259): do_action("toplevel_page_CiviCRM")
#7 {main}
It may be worth noting that extension updates fail as well, although the error code is "DB Error: unknown" so I assume it is something else. Sorry for the confusion, I'm really not sure what to do with these issues and if they are related.