civicrm / org.civicrm.contactlayout

Customize the contact summary screen
Other
15 stars 20 forks source link

API Exception #105

Closed palur76 closed 3 years ago

palur76 commented 3 years ago

Hi!

Sometimes I get the following error:

API_Exception: "Unknown settings for domain 1: contactlayout_default_tabs"

#0 /var/www/sites/all/modules/civicrm/Civi/Api4/Action/Setting/AbstractSettingAction.php(44): Civi\Api4\Action\Setting\AbstractSettingAction->validateSettings(1)
#1 /var/www/sites/all/modules/civicrm/Civi/Api4/Provider/ActionObjectProvider.php(68): Civi\Api4\Action\Setting\AbstractSettingAction->_run(Object(Civi\Api4\Generic\Result))
#2 /var/www/sites/all/modules/civicrm/Civi/API/Kernel.php(149): Civi\Api4\Provider\ActionObjectProvider->invoke(Object(Civi\Api4\Action\Setting\Get))
#3 /var/www/sites/all/modules/civicrm/Civi/Api4/Generic/AbstractAction.php(239): Civi\API\Kernel->runRequest(Object(Civi\Api4\Action\Setting\Get))
#4 /var/www/sites/default/custom_ext/org.civicrm.contactlayout/contactlayout.php(136): Civi\Api4\Generic\AbstractAction->execute()
#5 /var/www/sites/all/modules/civicrm/CRM/Utils/Hook.php(271): contactlayout_civicrm_pageRun(Object(CRM_Contact_Page_View_Summary))
#6 /var/www/sites/all/modules/civicrm/CRM/Utils/Hook/DrupalBase.php(73): CRM_Utils_Hook->runHooks((Array:81), "civicrm_pageRun", 1, Object(CRM_Contact_Page_View_Summary), NULL, NULL, NULL, NULL, NULL)
#7 /var/www/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php(237): CRM_Utils_Hook_DrupalBase->invokeViaUF(1, Object(CRM_Contact_Page_View_Summary), NULL, NULL, NULL, NULL, NULL, "civicrm_pageRun")
#8 /var/www/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(214): Civi\Core\CiviEventDispatcher::delegateToUF(Object(Civi\Core\Event\GenericHookEvent), "hook_civicrm_pageRun", Object(Civi\Core\CiviEventDispatcher))
#9 /var/www/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch((Array:1), "hook_civicrm_pageRun", Object(Civi\Core\Event\GenericHookEvent))
#10 /var/www/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php(198): Symfony\Component\EventDispatcher\EventDispatcher->dispatch("hook_civicrm_pageRun", Object(Civi\Core\Event\GenericHookEvent))
#11 /var/www/sites/all/modules/civicrm/CRM/Utils/Hook.php(167): Civi\Core\CiviEventDispatcher->dispatch("hook_civicrm_pageRun", Object(Civi\Core\Event\GenericHookEvent))
#12 /var/www/sites/all/modules/civicrm/CRM/Utils/Hook.php(916): CRM_Utils_Hook->invoke((Array:1), Object(CRM_Contact_Page_View_Summary), NULL, NULL, NULL, NULL, NULL, "civicrm_pageRun")
#13 /var/www/sites/all/modules/civicrm/CRM/Core/Page.php(161): CRM_Utils_Hook::pageRun(Object(CRM_Contact_Page_View_Summary))
#14 /var/www/sites/all/modules/civicrm/CRM/Contact/Page/View/Summary.php(80): CRM_Core_Page->run()
#15 /var/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(313): CRM_Contact_Page_View_Summary->run((Array:3), NULL)
#16 /var/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:14))
#17 /var/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
#18 /var/www/sites/all/modules/civicrm/drupal/civicrm.module(458): CRM_Core_Invoke::invoke((Array:3))
#19 /var/www/includes/menu.inc(527): civicrm_invoke("contact", "view")
#20 /var/www/index.php(21): menu_execute_active_handler()
#21 {main}

Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
Unknown settings for domain 1: contactlayout_default_tabs

Disabling and re-enabling Contact Layout Extension solves the problem for a while. Drupal 7 and CiviCRM are the latest versions.