Answers.Body: <p>I encountered an almost identical error today (<code>PHP Fatal error:  Uncaught RuntimeException: CiviCRM has not bootstrapped sufficiently to fire event &quot;hook_civicrm_entityTypes&quot;.</code>).  In my case, there were some file permission issues, and resetting the file permissions solved my problem.  I believe my PHP user had access to the files but my Apache user did not.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-30T20:20:38.317Z
Answers.LastActivityDate: 2020-11-30T20:20:38.317Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>could you detail the process to rest the the file permissions ?
  I am having the same issue that is revealed by <code>drush updb -v</code>.</p>
  <p><code>In CiviEventDispatcher.php line 190: [RuntimeException] CiviCRM has not bootstrapped sufficiently to fire event &quot;hook_civicrm_alter_drupal_entities&quot;.</code></p>
  <p>I also thing that it is related to <code>civicrm_entity</code> as there is <code>Exception trace:</code>
  <code>  at /path/vendor/civicrm/civicrm-core/Civi/Core/CiviEventDispatcher.php:190 Civi\Core\CiviEventDispatcher-&gt;dispatch() at /path/vendor/civicrm/civicrm-core/CRM/Utils/Hook.php:167 CRM_Utils_Hook-&gt;invoke() at /path/web/modules/contrib/civicrm_entity/src/SupportedEntities.php:867 Drupal\civicrm_entity\SupportedEntities::alterEntityInfo() at /path/web/modules/contrib/civicrm_entity/src/SupportedEntities.php:707 Drupal\civicrm_entity\SupportedEntities::getInfo() at /path/web/modules/contrib/civicrm_entity/civicrm_entity.module:54 civicrm_entity_entity_type_build() at /path/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php:129</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-27T05:30:50.020Z
Answers.LastActivityDate: 2021-07-27T05:30:50.020Z
Answers.UserDisplayName: Ichi
Answers.Body: <p>This looks like a change in 5.29. See <a href="https://github.com/civicrm/civicrm-core/pull/17831" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/17831</a>. It's signalling that somehow something isn't working with the way either the civicrm_entity module is setting the hook now or something about that change isn't working as expected. I'm not sure which.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-08T18:38:31.103Z
Answers.LastActivityDate: 2020-10-08T18:38:31.103Z
Answers.UserDisplayName: Demerit
Body: <p>After upgrading CiviCRM to civicrm-asset-plugin 1.1, civicrm-core 5.29.1, civicrm-drupal-8 5.29.1,  and civicrm-packages 5.29.1 I started getting   &quot;CiviCRM has not bootstrapped sufficiently to fire event &quot;hook_civicrm_alter_drupal_entities&quot;.&quot; In trying to diagnose the problem I upgraded civicrm_entity to the newest commit (9f69c64).</p>
  <p>I upgraded the code with Composer and everything appeared to work correctly.  The CiviCRM upgrade was done with CV and the upgrade reported to be done successfully.</p>
  <p>I appreciate any help in how to approach this.</p>
  <p>Thanks,
  Josh</p>
  
Tags: <drupal-8>
Title: CiviCRM has not bootstrapped sufficiently to fire event "hook_civicrm_alter_drupal_entities"
ThreadText: # CiviCRM has not bootstrapped sufficiently to fire event "hook_civicrm_alter_drupal_entities"
  
  (Asked by: username_0 on 2020-10-08)
  
  After upgrading CiviCRM to civicrm-asset-plugin 1.1, civicrm-core 5.29.1, civicrm-drupal-8 5.29.1, and civicrm-packages 5.29.1 I started getting "CiviCRM has not bootstrapped sufficiently to fire event "hook\_civicrm\_alter\_drupal\_entities"." In trying to diagnose the problem I upgraded civicrm\_entity to the newest commit (9f69c64).
  
  I upgraded the code with Composer and everything appeared to work correctly. The CiviCRM upgrade was done with CV and the upgrade reported to be done successfully.
  
  I appreciate any help in how to approach this.
  
  Thanks,
  username_0
  
  **Tags:** drupal-8
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2020-11-30. Score: 1
  
  I encountered an almost identical error today (`PHP Fatal error: Uncaught RuntimeException: CiviCRM has not bootstrapped sufficiently to fire event "hook_civicrm_entityTypes".`). In my case, there were some file permission issues, and resetting the file permissions solved my problem. I believe my PHP user had access to the files but my Apache user did not.
  
  
  ---
  
  ### Answer by username_2 on 2021-07-27. Score: 0
  
  could you detail the process to rest the the file permissions ?
  I am having the same issue that is revealed by `drush updb -v`.
  
  `In CiviEventDispatcher.php line 190: [RuntimeException] CiviCRM has not bootstrapped sufficiently to fire event "hook_civicrm_alter_drupal_entities".`
  
  I also thing that it is related to `civicrm_entity` as there is `Exception trace:`
   `at /path/vendor/civicrm/civicrm-core/Civi/Core/CiviEventDispatcher.php:190 Civi\Core\CiviEventDispatcher->dispatch() at /path/vendor/civicrm/civicrm-core/CRM/Utils/Hook.php:167 CRM_Utils_Hook->invoke() at /path/web/modules/contrib/civicrm_entity/src/SupportedEntities.php:867 Drupal\civicrm_entity\SupportedEntities::alterEntityInfo() at /path/web/modules/contrib/civicrm_entity/src/SupportedEntities.php:707 Drupal\civicrm_entity\SupportedEntities::getInfo() at /path/web/modules/contrib/civicrm_entity/civicrm_entity.module:54 civicrm_entity_entity_type_build() at /path/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php:129`
  
  
  ---
  
  ### Answer by username_3 on 2020-10-08. Score: 0
  
  This looks like a change in 5.29. See <https://github.com/civicrm/civicrm-core/pull/17831>. It's signalling that somehow something isn't working with the way either the civicrm\_entity module is setting the hook now or something about that change isn't working as expected. I'm not sure which.
  
  
  ---
  
  