Body: <p>The dispatch policy prohibits event &quot;hook_civicrm_permission&quot;.&quot;</p>
  <pre><code>#0 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Utils/Hook.php(167): Civi\Core\CiviEventDispatcher-&gt;dispatch(&quot;hook_civicrm_permission&quot;, Object(Civi\Core\Event\GenericHookEvent))
  #1 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Utils/Hook.php(2016): CRM_Utils_Hook-&gt;invoke((Array:1), (Array:0), NULL, NULL, NULL, NULL, NULL, &quot;civicrm_permission&quot;)
  #2 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Permission/Base.php(251): CRM_Utils_Hook::permission((Array:0))
  #3 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Permission.php(633): CRM_Core_Permission_Base-&gt;getAllModulePermissions(TRUE)
  #4 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Permission.php(577): CRM_Core_Permission::assembleBasicPermissions(FALSE, TRUE)
  #5 /home/dusa/public_html/sites/all/modules/civicrm/drupal/civicrm.module(74): CRM_Core_Permission::basicPermissions(FALSE, TRUE)
  #6 /home/dusa/public_html/includes/module.inc(934): civicrm_permission()
  #7 /home/dusa/public_html/modules/user/user.module(3124): module_invoke(&quot;civicrm&quot;, &quot;permission&quot;)
  #8 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/includes/features.user.inc(87): user_permission_get_modules()
  #9 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(715): user_permission_features_export_render(&quot;panopoly_widgets&quot;, (Array:53), NULL, &quot;user_permission&quot;)
  #10 /home/dusa/public_html/profiles/panopoly/modules/contrib/defaultconfig/defaultconfig.features.inc(65): features_invoke(&quot;user_permission&quot;, &quot;features_export_render&quot;, &quot;panopoly_widgets&quot;, (Array:53), NULL)
  #11 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(715): defaultconfig_features_export_render(&quot;panopoly_widgets&quot;, (Array:55), NULL, &quot;defaultconfig&quot;)
  #12 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.export.inc(1129): features_invoke(&quot;defaultconfig&quot;, &quot;features_export_render&quot;, &quot;panopoly_widgets&quot;, (Array:55), NULL)
  #13 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.export.inc(941): features_get_normal(&quot;defaultconfig&quot;, &quot;panopoly_widgets&quot;, FALSE)
  #14 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.export.inc(1364): features_get_signature(&quot;normal&quot;, &quot;panopoly_widgets&quot;, &quot;defaultconfig&quot;, FALSE)
  #15 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(1200): features_get_component_states((Array:26), TRUE, FALSE)
  #16 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(1274): _features_restore(&quot;rebuild&quot;, (Array:0))
  #17 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(314): features_rebuild()
  #18 /home/dusa/public_html/includes/module.inc(965): features_flush_caches()
  #19 /home/dusa/public_html/includes/common.inc(7763): module_invoke_all(&quot;flush_caches&quot;)
  #20 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Utils/System/DrupalBase.php(288): drupal_flush_all_caches()
  #21 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Upgrade/Form.php(759): CRM_Utils_System_DrupalBase-&gt;flush()
  #22 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/Task.php(74): CRM_Upgrade_Form::doIncrementalUpgradeFinish(Object(CRM_Queue_TaskContext), &quot;5.33.alpha1&quot;, &quot;5.32.1&quot;, &quot;5.33.0&quot;, &quot;/tmp/civicrm-post-upgrade887lHE&quot;)
  #23 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/Runner.php(202): CRM_Queue_Task-&gt;run(Object(CRM_Queue_TaskContext))
  #24 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php(36): CRM_Queue_Runner-&gt;runNext(TRUE)
  #25 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/ErrorPolicy.php(90): CRM_Queue_Page_AJAX::{closure}()
  #26 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php(38): CRM_Queue_ErrorPolicy-&gt;call(Object(Closure))
  #27 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(278): CRM_Queue_Page_AJAX::runNext()
  #28 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(68): CRM_Core_Invoke::runItem((Array:13))
  #29 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:5))
  #30 /home/dusa/public_html/sites/all/modules/civicrm/drupal/civicrm.module(459): CRM_Core_Invoke::invoke((Array:5))
  #31 /home/dusa/public_html/includes/menu.inc(527): civicrm_invoke(&quot;upgrade&quot;, &quot;queue&quot;, &quot;ajax&quot;, &quot;runNext&quot;)
  #32 /home/dusa/public_html/index.php(21): menu_execute_active_handler()
  #33 {main}
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-07T21:59:42.777Z
Comments.Text: Could you try out this patch https://github.com/civicrm/civicrm-core/pull/19345 ?
Comments.UserDisplayName: Tim Otten
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-11T14:46:04.890Z
Comments.Text: Patch worked.  Thank you.
Comments.UserDisplayName: Logan Bear
Tags: <upgrade>
Title: The dispatch policy prohibits event "hook_civicrm_permission" update error in 5.33
ThreadText: # The dispatch policy prohibits event "hook_civicrm_permission" update error in 5.33
  
  (Asked by: username_0 on 2021-01-07)
  
  The dispatch policy prohibits event "hook_civicrm_permission"."
  #0 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Utils/Hook.php(167): Civi\Core\CiviEventDispatcher->dispatch("hook_civicrm_permission", Object(Civi\Core\Event\GenericHookEvent))
  #1 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Utils/Hook.php(2016): CRM_Utils_Hook->invoke((Array:1), (Array:0), NULL, NULL, NULL, NULL, NULL, "civicrm_permission")
  #2 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Permission/Base.php(251): CRM_Utils_Hook::permission((Array:0))
  #3 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Permission.php(633): CRM_Core_Permission_Base->getAllModulePermissions(TRUE)
  #4 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Permission.php(577): CRM_Core_Permission::assembleBasicPermissions(FALSE, TRUE)
  #5 /home/dusa/public_html/sites/all/modules/civicrm/drupal/civicrm.module(74): CRM_Core_Permission::basicPermissions(FALSE, TRUE)
  #6 /home/dusa/public_html/includes/module.inc(934): civicrm_permission()
  #7 /home/dusa/public_html/modules/user/user.module(3124): module_invoke("civicrm", "permission")
  #8 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/includes/features.user.inc(87): user_permission_get_modules()
  #9 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(715): user_permission_features_export_render("panopoly_widgets", (Array:53), NULL, "user_permission")
  #10 /home/dusa/public_html/profiles/panopoly/modules/contrib/defaultconfig/defaultconfig.features.inc(65): features_invoke("user_permission", "features_export_render", "panopoly_widgets", (Array:53), NULL)
  #11 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(715): defaultconfig_features_export_render("panopoly_widgets", (Array:55), NULL, "defaultconfig")
  #12 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.export.inc(1129): features_invoke("defaultconfig", "features_export_render", "panopoly_widgets", (Array:55), NULL)
  #13 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.export.inc(941): features_get_normal("defaultconfig", "panopoly_widgets", FALSE)
  #14 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.export.inc(1364): features_get_signature("normal", "panopoly_widgets", "defaultconfig", FALSE)
  #15 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(1200): features_get_component_states((Array:26), TRUE, FALSE)
  #16 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(1274): _features_restore("rebuild", (Array:0))
  #17 /home/dusa/public_html/profiles/panopoly/modules/contrib/features/features.module(314): features_rebuild()
  #18 /home/dusa/public_html/includes/module.inc(965): features_flush_caches()
  #19 /home/dusa/public_html/includes/common.inc(7763): module_invoke_all("flush_caches")
  #20 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Utils/System/DrupalBase.php(288): drupal_flush_all_caches()
  #21 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Upgrade/Form.php(759): CRM_Utils_System_DrupalBase->flush()
  #22 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/Task.php(74): CRM_Upgrade_Form::doIncrementalUpgradeFinish(Object(CRM_Queue_TaskContext), "5.33.alpha1", "5.32.1", "5.33.0", "/tmp/civicrm-post-upgrade887lHE")
  #23 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/Runner.php(202): CRM_Queue_Task->run(Object(CRM_Queue_TaskContext))
  #24 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php(36): CRM_Queue_Runner->runNext(TRUE)
  #25 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/ErrorPolicy.php(90): CRM_Queue_Page_AJAX::{closure}()
  #26 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php(38): CRM_Queue_ErrorPolicy->call(Object(Closure))
  #27 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(278): CRM_Queue_Page_AJAX::runNext()
  #28 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(68): CRM_Core_Invoke::runItem((Array:13))
  #29 /home/dusa/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:5))
  #30 /home/dusa/public_html/sites/all/modules/civicrm/drupal/civicrm.module(459): CRM_Core_Invoke::invoke((Array:5))
  #31 /home/dusa/public_html/includes/menu.inc(527): civicrm_invoke("upgrade", "queue", "ajax", "runNext")
  #32 /home/dusa/public_html/index.php(21): menu_execute_active_handler()
  #33 {main}
  
  **Tags:** upgrade
  
  > **Comments:**
  > **username_1**: Could you try out this patch https://github.com/civicrm/civicrm-core/pull/19345 ?  
  > **username_0**: Patch worked.  Thank you.  
  
  ---
  
  ## 0 answers
  
  