The installation of the banking optionlist causes the configitems extension to crash
This is the crash with some annotations.
The website encountered an unexpected error. Please try again later.
(1) Error: Class 'CRM_Civiconfig_DAO_ConfigItemSet' not found in Civi\Api4\Generic\AbstractEntity::getEntityTitle() (line 94 of /var/www/html/vendor/civicrm/civicrm-core/Civi/Api4/Generic/AbstractEntity.php).
Civi\Api4\Generic\AbstractEntity::getEntityTitle() (Line: 141)
Civi\Api4\Generic\AbstractEntity::getInfo() (Line: 155)
Civi\Api4\Provider\ActionObjectProvider->getEntities() (Line: 58)
Civi\Api4\Utils\CoreUtil::getInfoItem('OptionValue', 'type') (Line: 53)
CRM_Core_BAO_Managed::isApi4ManagedType('OptionValue') (Line: 36)
CRM_Core_BAO_Managed::on_hook_civicrm_post(Object, 'hook_civicrm_post', Object) (Line: 264)
Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'hook_civicrm_post', Object) (Line: 239)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'hook_civicrm_post', Object) (Line: 73)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object, Object) (Line: 217)
Civi\Core\CiviEventDispatcher->dispatch('hook_civicrm_post', Object) (Line: 366)
CRM_Utils_Hook::post('edit', 'OptionValue', '987', Object) (Line: 225)
CRM_Core_BAO_OptionValue::add(Array) (Line: 34)
CRM_Core_BAO_OptionValue::create(Array) (Line: 1319)
_civicrm_api3_basic_create('CRM_Core_BAO_OptionValue', Array, 'OptionValue') (Line: 54)
civicrm_api3_option_value_create(Array) (Line: 89)
Civi\API\Provider\MagicFunctionProvider->invoke(Array) (Line: 149)
Civi\API\Kernel->runRequest(Array) (Line: 81)
Civi\API\Kernel->runSafe('option_value', 'create', Array) (Line: 133)
civicrm_api3('option_value', 'create', Array) (Line: 368)
(2) banking_civicrm_install_options(Array) (Line: 145)
belgischeogm_civicrm_config(Object) (Line: 271)
CRM_Utils_Hook->runHooks(Array, 'civicrm_config', 1, Object, NULL, NULL, NULL, NULL, NULL) (Line: 73)
CRM_Utils_Hook_DrupalBase->invokeViaUF(1, Object, NULL, NULL, NULL, NULL, NULL, 'civicrm_config') (Line: 256)
Civi\Core\CiviEventDispatcher::delegateToUF(Object, 'hook_civicrm_config', Object) (Line: 264)
Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'hook_civicrm_config', Object) (Line: 239)
(3) Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'hook_civicrm_config', Object) (Line: 73)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object, Object) (Line: 217)
Civi\Core\CiviEventDispatcher->dispatch('hook_civicrm_config', Object) (Line: 167)
CRM_Utils_Hook->invoke(Array, Object, NULL, NULL, NULL, NULL, NULL, 'civicrm_config') (Line: 1378)
CRM_Utils_Hook::config(Object) (Line: 94)
CRM_Core_Config::singleton() (Line: 61)
Drupal\civicrm\Civicrm->initialize() (Line: 104)
Drupal\civicrm\Civicrm->synchronizeUser(Object) (Line: 74)
Drupal\civicrm\Controller\CivicrmController->main(Array, '')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
(1) The crashing problem is that the CRM_Civiconfig_DAO_ConfigItemSet
cannot be found. The reason is that the call is in the middle of the class loading process. The classes of the extensions are simply not added yet.
(2) That's is because the omg install options needs to do an api call, and the api call sometimes needs a cache refresh.
(3) And the install is called from the config hook.
Remark if the entities metadata is still in the cache, everything works fine, but after a cache flush, your CiviCRM is gone.