Answers.Body: <p>As of CiviCRM version 5.31, Civi will work with Drupal 9.  <a href="https://civicrm.org/blog/dev-team/civicrm-531-release" rel="nofollow noreferrer">https://civicrm.org/blog/dev-team/civicrm-531-release</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-10T16:27:43.073Z
Answers.LastActivityDate: 2020-12-10T16:27:43.073Z
Answers.UserDisplayName: Marv S
Answers.Body: <p>Trying to upgrade a D8.8.6 site to D9 -> </p>
  
  <pre><code>karins-MBP:d9civicrm.local sysadmin$ composer require drupal/core-recommended:~9.0.0@dev drupal/core-composer-scaffold:~9.0.0@dev --update-with-dependencies --no-update
  ./composer.json has been updated
  karins-MBP:d9civicrm.local sysadmin$ composer update
  </code></pre>
  
  <p>Found two issues:</p>
  
  <pre><code>symfony conflict -&gt; Drupal 9 requires 4.4
  civicrm/civicrm-core 5.25.0 requires symfony/dependency-injection ^2.8.50 || ~3.0
  
  pear exception conflict: Can only install one of: pear/pear_exception[v1.0.1, v1.0.0]; - pear/log 1.13.1 requires pear/pear_exception 1.0.0 -&gt; satisfiable by pear/pear_exception[v1.0.0].
  </code></pre>
  
  <p>WIP PR by Core Team -> to resolve the symfony conlict: <a href="https://github.com/civicrm/civicrm-core/pull/17380" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/17380</a></p>
  
  <p>And resolved!</p>
  
  <p>This now works:</p>
  
  <p>a) create a D8 project -> </p>
  
  <pre><code>composer create-project drupal/recommended-project d9civicrm.local
  </code></pre>
  
  <p>b) <code>cd d9civicrm.local</code></p>
  
  <p>c) <code>composer require civicrm/civicrm-core:dev-master civicrm/civicrm-packages:dev-master civicrm/civicrm-drupal-8:dev-master civicrm/civicrm-asset-plugin:~1.0.1</code></p>
  
  <p>Go through the usual motions of installing D8 in your favourite language, database and timezone -> and then enable CiviCRM Core [you will need to ensure your <code>web/sites/default dir</code> is writable for the <code>civicrm.settings.php</code> file to be generated].</p>
  
  <p>d) then onto D9 -> </p>
  
  <pre><code>composer require pear/pear_exception:'1.0.1 as 1.0.0'
  </code></pre>
  
  <p>e) <code>rm composer.lock</code></p>
  
  <p>f) <code>composer require drupal/core-recommended:^9.0 drupal/core-composer-scaffold:^9.0 drupal/core-project-message:^9.0 drupal/core-dev:^9.0 --update-with-all-dependencies</code></p>
  
  <p>And that produces:
  <a href="https://i.sstatic.net/8F1Wl.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/8F1Wl.png" alt="enter image description here"></a></p>
  
  <p>Next step is here: <code>https://github.com/civicrm/civicrm-drupal-8/pull/40/files</code>
  [that will make CiviCRM installable as a D9 module]. </p>
  
  <p>Many more steps to go I'm sure! Thanks to Core Team and Mikey for their quick action on some of these items!</p>
  
  <p>Update -> as of June 03 - 2020 -> webform_civicrm module is officially D9 Compatible:</p>
  
  <p><a href="https://i.sstatic.net/5sI9Z.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5sI9Z.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-05T16:33:25.973Z
Answers.Text: Ok done - also included the most recent acquia report - clean slate now!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-31T15:45:16.273Z
Answers.Text: In step a) the title should be " create a D9 project or latest Drupal" because that composer command will install whatever the latest version is at the time
Answers.UserDisplayName: salah-1
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-28T19:35:26.463Z
Answers.Text: latest from Chat: https://chat.civicrm.org/civicrm/pl/d71dtacth7n97buncexo8jc8dr
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-28T20:57:51.297Z
Answers.Text: I'm sure there will be bumps ahead [possible breaking changes in webform module itself] - but we're close to where we can be at this point.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-29T00:43:52.317Z
Answers.Text: do you want to update the answer with what you had pasted in CHat?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-24T21:21:33.297Z
Answers.LastActivityDate: 2020-06-05T16:32:41.087Z
Answers.LastEditDate: 2020-06-05T16:32:41.087Z
Answers.UserDisplayName: KarinG - Semper IT
Answers.Body: <p>There's now a proposal to begin to phase out support for drupal 9 at 3-6 months after drupal 11 is released: <a href="https://lab.civicrm.org/dev/drupal/-/issues/198" rel="nofollow noreferrer">https://lab.civicrm.org/dev/drupal/-/issues/198</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-28T18:19:23.057Z
Answers.LastActivityDate: 2024-05-28T18:19:23.057Z
Answers.UserDisplayName: Demerit
Body: <p>With the official release only a few days away (June 3, 2020) and the Drupal 9 porting weekend having just completed with a big effort by KarinG (<a href="https://github.com/colemanw/webform_civicrm/pull/314" rel="nofollow noreferrer">https://github.com/colemanw/webform_civicrm/pull/314</a>), what is the status of CiviCRM working with Drupal 9?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-11T17:16:20.237Z
Comments.Text: See also related question about Drupal 8: https://civicrm.stackexchange.com/questions/4414/does-civicrm-work-with-drupal-8-and-how-can-i-help
Comments.UserDisplayName: William Mortada
Tags: <drupal>
Title: What is the status of CiviCRM working with Drupal 9?
ThreadText: # What is the status of CiviCRM working with Drupal 9?
  
  (Asked by: username_0 on 2020-05-24)
  
  With the official release only a few days away (June 3, 2020) and the Drupal 9 porting weekend having just completed with a big effort by KarinG (<https://github.com/colemanw/webform_civicrm/pull/314>), what is the status of CiviCRM working with Drupal 9?
  
  **Tags:** drupal
  
  > **Comments:**
  > **username_1**: See also related question about Drupal 8: https://civicrm.stackexchange.com/questions/4414/does-civicrm-work-with-drupal-8-and-how-can-i-help  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2020-12-10. Score: 3
  
  As of CiviCRM version 5.31, Civi will work with Drupal 9. <https://civicrm.org/blog/dev-team/civicrm-531-release>
  
  
  ---
  
  ### Answer by username_3 on 2020-05-24. Score: 3
  
  Trying to upgrade a D8.8.6 site to D9 -> 
  karins-MBP:d9civicrm.local sysadmin$ composer require drupal/core-recommended:~9.0.0@dev drupal/core-composer-scaffold:~9.0.0@dev --update-with-dependencies --no-update
  ./composer.json has been updated
  karins-MBP:d9civicrm.local sysadmin$ composer update
  
  Found two issues:
  symfony conflict -> Drupal 9 requires 4.4
  civicrm/civicrm-core 5.25.0 requires symfony/dependency-injection ^2.8.50 || ~3.0
  
  pear exception conflict: Can only install one of: pear/pear_exception[v1.0.1, v1.0.0]; - pear/log 1.13.1 requires pear/pear_exception 1.0.0 -> satisfiable by pear/pear_exception[v1.0.0].
  
  WIP PR by Core Team -> to resolve the symfony conlict: https://github.com/civicrm/civicrm-core/pull/17380
  And resolved!
  This now works:
  a) create a D8 project -> 
  composer create-project drupal/recommended-project d9civicrm.local
  
  b) cd d9civicrm.local
  c) composer require civicrm/civicrm-core:dev-master civicrm/civicrm-packages:dev-master civicrm/civicrm-drupal-8:dev-master civicrm/civicrm-asset-plugin:~1.0.1
  Go through the usual motions of installing D8 in your favourite language, database and timezone -> and then enable CiviCRM Core [you will need to ensure your web/sites/default dir is writable for the civicrm.settings.php file to be generated].
  d) then onto D9 -> 
  composer require pear/pear_exception:'1.0.1 as 1.0.0'
  
  e) rm composer.lock
  f) composer require drupal/core-recommended:^9.0 drupal/core-composer-scaffold:^9.0 drupal/core-project-message:^9.0 drupal/core-dev:^9.0 --update-with-all-dependencies
  And that produces:
  
  Next step is here: https://github.com/civicrm/civicrm-drupal-8/pull/40/files
  [that will make CiviCRM installable as a D9 module]. 
  Many more steps to go I'm sure! Thanks to Core Team and Mikey for their quick action on some of these items!
  Update -> as of June 03 - 2020 -> webform_civicrm module is officially D9 Compatible:
  
  > **Comments:**
  > **username_0**: latest from Chat: https://chat.civicrm.org/civicrm/pl/d71dtacth7n97buncexo8jc8dr  
  > **username_3**: I'm sure there will be bumps ahead [possible breaking changes in webform module itself] - but we're close to where we can be at this point.  
  > **username_0**: do you want to update the answer with what you had pasted in CHat?  
  > **username_3**: Ok done - also included the most recent acquia report - clean slate now!  
  > **username_4**: In step a) the title should be " create a D9 project or latest Drupal" because that composer command will install whatever the latest version is at the time  
  
  ---
  
  ### Answer by username_5 on 2024-05-28. Score: 1
  
  There's now a proposal to begin to phase out support for drupal 9 at 3-6 months after drupal 11 is released: <https://lab.civicrm.org/dev/drupal/-/issues/198>
  
  
  ---
  
  