Answers.Body: <p>I have just run my upgrade script against v5.50.3 and all went well, so I think we are OK on this now.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-24T18:22:02.657Z
Answers.LastActivityDate: 2022-06-24T18:22:02.657Z
Answers.UserDisplayName: ChumKui
Answers.Body: <p>Firstly check that there are no missing extensions on the system. You may need to apply the patch below or comment out commonMoudleBuildList in Container.php to see the list of missing extensions.</p>
  <p>A patch is available <a href="https://github.com/civicrm/civicrm-core/commit/91e1627497d53cba04c6919575efb7061daf125a.patch" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/commit/91e1627497d53cba04c6919575efb7061daf125a.patch</a>
  that makes the load order predictable. This patch will enable the list of missing extensions to be displayed.</p>
  <p><a href="https://github.com/civicrm/civicrm-core/pull/23716" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/23716</a>
  <a href="https://github.com/civicrm/civicrm-core/pull/23268" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/23268</a>
  <a href="https://lab.civicrm.org/dev/core/-/issues/3496" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/3496</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-08T01:41:35.360Z
Answers.LastActivityDate: 2022-06-08T01:41:35.360Z
Answers.UserDisplayName: Interlated
Answers.Body: <p>I have this issue since a long time on D8 and D9, I ended up not using CiviCRM entity after a very painful removal.</p>
  <p>Now I see this issue on another site that had been upgraded to 5.50.1
  This time I do not want to remove CiviCRM entity. But, sorry, I have no clue  how to put CiviCRM entity back on track.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-06T15:29:19.547Z
Answers.LastActivityDate: 2022-06-06T15:29:19.547Z
Answers.UserDisplayName: Ichi
Answers.Body: <p>There is another patch available related with this kind of error <a href="https://github.com/civicrm/civicrm-core/pull/23739" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/23739</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-14T18:19:36.140Z
Answers.LastActivityDate: 2022-06-14T18:19:36.140Z
Answers.UserDisplayName: Francesc Bassas i Bullich
Answers.Body: <p>Commenting out commonModuleBuildList in Container.php solves the problem in the short term.</p>
  <p>From the git log I see that Container.php had commonModuleBuildList added on 21/4/2022.</p>
  <p>Creating a patch in composer that comments out the line maintains git workflow.</p>
  <p>The next question is how to get initialize() to be called later. I had the idea to use <em>hook_event_dispatcher</em>, although it does not work. The fix seems to solve <em>civicrm_entity</em> but then block/user and the core drupal CiviCRM module also has hooks that are not supported by the event dispatcher.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-07T08:08:21.320Z
Answers.Text: Thanks - I think this is not a general solution for admins that just keep their systems patched and updated.  Let's see if there is a more general fix.
Answers.UserDisplayName: ChumKui
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-07T00:53:52.463Z
Answers.LastActivityDate: 2022-06-07T00:53:52.463Z
Answers.UserDisplayName: Interlated
Body: <p>I have just done an upgrade to v5.50 and get an immediate:</p>
  <p><code>RuntimeException: CiviCRM has not bootstrapped sufficiently to fire event &quot;hook_civicrm_entityTypes&quot;. in Civi\Core\CiviEventDispatcher-&gt;dispatch() (line 190 of /var/www/html/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php).</code></p>
  <p>I have a script that does the refresh of a new version and I'm not aware of anything I have changed on my UAT server where I test these things. Has anyone else seen this?</p>
  <p>Running on D7 v7.88</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-04T09:06:00.530Z
Comments.Text: I have this problem too. Any news?
Comments.UserDisplayName: Ferdi2005
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-04T12:47:20.833Z
Comments.Text: I cannot seem to find anything on it - I noticed that the release has had a minor tweak to 5.50.1 due to an API regression but it does not like it relates to this issue.  Just tried an install and get the same issue
Comments.UserDisplayName: ChumKui
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-05T12:45:44.880Z
Comments.Text: Does the backtrace have more information? Can you double-check if the Extension upgrades have run? (go to the civicrm/admin/extensions page, it will show a notification, or run "cv api extension.upgrade" on the command line)
Comments.UserDisplayName: bgm
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-05T17:12:18.230Z
Comments.Text: @bgm The error sends the site in critical error, thus it doesn't respond to any command, nor cv works. I have Wordpress 6.0.0 and am experiencing the same issue.
Comments.UserDisplayName: Ferdi2005
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-05T17:26:08.137Z
Comments.Text: @Ferdi2005 Can you locate the "wp-content/uploads/civicrm/ConfigAndLog" directory on your server, and look at the recently modified files (open with a plain text editor). It might have more details about the error.
Comments.UserDisplayName: bgm
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-05T22:02:01.207Z
Comments.Text: @bgm I don't think there's nothing unusual in it: https://gist.github.com/ferdi2005/5df74827d3dc860d2f4d38016ce645e5
Comments.UserDisplayName: Ferdi2005
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-05T22:04:34.640Z
Comments.Text: Besides, I'd like to add that the problem arises only after a database migration.
Comments.UserDisplayName: Ferdi2005
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-06T06:58:52.583Z
Comments.Text: Only happens with civicrm_entity module? Also happens on wordpress. I can get cv/drush/drupal to work by commenting out the call in Hook.php
Comments.UserDisplayName: Interlated
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-06T09:49:46.397Z
Comments.Text: I can see that Container.php had commonModuleBuildList added on 21/4/2022 in the git change log.
Comments.UserDisplayName: Interlated
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-06T18:49:53.267Z
Comments.Text: Commenting out the line adding commonBuildModuleList in Container.php does appear to solve the issue for me, so that might be a temporary workaround.
Comments.UserDisplayName: reswild
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-07T17:47:55.143Z
Comments.Text: There is a related issue opened at https://lab.civicrm.org/dev/core/-/issues/3496 and a discussion opened at https://chat.civicrm.org/civicrm/pl/1izo73dcpjfcbem97eek7s6d6w
Comments.UserDisplayName: Francesc Bassas i Bullich
Tags: <upgrade>
Title: Installation of v5.50 gives me an immediate Bootstrap exception
ThreadText: # Installation of v5.50 gives me an immediate Bootstrap exception
  
  (Asked by: username_0 on 2022-06-02)
  
  I have just done an upgrade to v5.50 and get an immediate:
  
  `RuntimeException: CiviCRM has not bootstrapped sufficiently to fire event "hook_civicrm_entityTypes". in Civi\Core\CiviEventDispatcher->dispatch() (line 190 of /var/www/html/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php).`
  
  I have a script that does the refresh of a new version and I'm not aware of anything I have changed on my UAT server where I test these things. Has anyone else seen this?
  
  Running on D7 v7.88
  
  **Tags:** upgrade
  
  > **Comments:**
  > **username_1**: I have this problem too. Any news?  
  > **username_0**: I cannot seem to find anything on it - I noticed that the release has had a minor tweak to 5.50.1 due to an API regression but it does not like it relates to this issue.  Just tried an install and get the same issue  
  > **username_2**: Does the backtrace have more information? Can you double-check if the Extension upgrades have run? (go to the civicrm/admin/extensions page, it will show a notification, or run "cv api extension.upgrade" on the command line)  
  > **username_1**: @username_2 The error sends the site in critical error, thus it doesn't respond to any command, nor cv works. I have Wordpress 6.0.0 and am experiencing the same issue.  
  > **username_2**: @username_1 Can you locate the "wp-content/uploads/civicrm/ConfigAndLog" directory on your server, and look at the recently modified files (open with a plain text editor). It might have more details about the error.  
  > **username_1**: @username_2 I don't think there's nothing unusual in it: https://gist.github.com/ferdi2005/5df74827d3dc860d2f4d38016ce645e5  
  > **username_1**: Besides, I'd like to add that the problem arises only after a database migration.  
  > **username_3**: Only happens with civicrm_entity module? Also happens on wordpress. I can get cv/drush/drupal to work by commenting out the call in Hook.php  
  > **username_3**: I can see that Container.php had commonModuleBuildList added on 21/4/2022 in the git change log.  
  > **username_4**: Commenting out the line adding commonBuildModuleList in Container.php does appear to solve the issue for me, so that might be a temporary workaround.  
  > **username_5**: There is a related issue opened at https://lab.civicrm.org/dev/core/-/issues/3496 and a discussion opened at https://chat.civicrm.org/civicrm/pl/1izo73dcpjfcbem97eek7s6d6w  
  
  ---
  
  ## 5 answers
  
  ### Answer by username_0 on 2022-06-24. Score: 1
  
  I have just run my upgrade script against v5.50.3 and all went well, so I think we are OK on this now.
  
  
  ---
  
  ### Answer by username_3 on 2022-06-08. Score: 1
  
  Firstly check that there are no missing extensions on the system. You may need to apply the patch below or comment out commonMoudleBuildList in Container.php to see the list of missing extensions.
  
  A patch is available <https://github.com/civicrm/civicrm-core/commit/91e1627497d53cba04c6919575efb7061daf125a.patch>
  that makes the load order predictable. This patch will enable the list of missing extensions to be displayed.
  
  <https://github.com/civicrm/civicrm-core/pull/23716>
  <https://github.com/civicrm/civicrm-core/pull/23268>
  <https://lab.civicrm.org/dev/core/-/issues/3496>
  
  
  ---
  
  ### Answer by username_6 on 2022-06-06. Score: 0
  
  I have this issue since a long time on D8 and D9, I ended up not using CiviCRM entity after a very painful removal.
  
  Now I see this issue on another site that had been upgraded to 5.50.1
  This time I do not want to remove CiviCRM entity. But, sorry, I have no clue how to put CiviCRM entity back on track.
  
  
  ---
  
  ### Answer by username_5 on 2022-06-14. Score: 0
  
  There is another patch available related with this kind of error <https://github.com/civicrm/civicrm-core/pull/23739>
  
  
  ---
  
  ### Answer by username_3 on 2022-06-07. Score: 0
  
  Commenting out commonModuleBuildList in Container.php solves the problem in the short term.
  
  From the git log I see that Container.php had commonModuleBuildList added on 21/4/2022.
  
  Creating a patch in composer that comments out the line maintains git workflow.
  
  The next question is how to get initialize() to be called later. I had the idea to use *hook\_event\_dispatcher*, although it does not work. The fix seems to solve *civicrm\_entity* but then block/user and the core drupal CiviCRM module also has hooks that are not supported by the event dispatcher.
  
  > **Comments:**
  > **username_0**: Thanks - I think this is not a general solution for admins that just keep their systems patched and updated.  Let's see if there is a more general fix.  
  
  ---
  
  