Answers.Body: <p>You can use:</p>
  <p>(confirming this syntax)</p>
  <pre><code>karins-MBP:d8civicrm.local sysadmin$ composer require pear/pear_exception:'1.0.1 as 1.0.0'
  ./composer.json has been updated
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Package operations: 0 installs, 0 updates, 0 removals
  Writing lock file
  Generating autoload files
    - CiviCRM asset map
  30 packages you are using are looking for funding.
  Use the `composer fund` command to find out more!
  </code></pre>
  <p>Syntax in
  <a href="https://docs.civicrm.org/installation/en/latest/drupal8/" rel="nofollow noreferrer">https://docs.civicrm.org/installation/en/latest/drupal8/</a>
  is wrong. Will put in an MR -&gt; <a href="https://lab.civicrm.org/documentation/docs/installation/-/merge_requests/10" rel="nofollow noreferrer">https://lab.civicrm.org/documentation/docs/installation/-/merge_requests/10</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-31T14:33:21.477Z
Answers.Text: KarinG, looks like the correct command is `composer require pear/pear_exception:"1.0.1 as 1.0.0"` (note colon, quotation marks, and `pear/pear_exception` instead of `pear/exception`). Do you think it's worth editing the answer?
Answers.UserDisplayName: TwoMice
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-31T15:29:35.183Z
Answers.Text: For reference, this worked for me: `composer require pear/pear_exception:"1.0.1 as 1.0.0";  
  composer require --update-with-dependencies civicrm/civicrm-core:5.28.3 civicrm/civicrm-drupal8:5.28.3;
  cv up:db;`
Answers.UserDisplayName: TwoMice
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-30T01:51:11.810Z
Answers.LastActivityDate: 2020-08-31T18:59:40.640Z
Answers.LastEditDate: 2020-08-31T18:59:40.640Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I'm guessing that the upgrade process for CiviCRM under Drupal 8 is something like this:</p>
  <ol>
  <li>Use <code>composer require</code> to get the latest version of the package.</li>
  <li>Navigate to the database update URL through the browser (<a href="http://example.org/civicrm/upgrade?reset=1" rel="nofollow noreferrer">http://example.org/civicrm/upgrade?reset=1</a>)</li>
  </ol>
  <p>But trying this now, I see what appears to be a version conflict around the pear/log package:</p>
  <pre><code>$ composer require --update-with-dependencies civicrm/civicrm-core:5.28.3
  ./composer.json has been updated
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - drupal/core-recommended 8.8.8 requires pear/pear_exception v1.0.0 -&gt; satisfiable by pear/pear_exception[v1.0.0].
      - drupal/core-recommended 8.8.8 requires pear/pear_exception v1.0.0 -&gt; satisfiable by pear/pear_exception[v1.0.0].
      - drupal/core-recommended 8.8.8 requires pear/pear_exception v1.0.0 -&gt; satisfiable by pear/pear_exception[v1.0.0].
      - Can only install one of: pear/pear_exception[v1.0.1, v1.0.0].
      - Can only install one of: pear/pear_exception[v1.0.1, v1.0.0].
      - Can only install one of: pear/pear_exception[v1.0.1, v1.0.0].
      - pear/log 1.13.2 requires pear/pear_exception 1.0.1 -&gt; satisfiable by pear/pear_exception[v1.0.1].
      - civicrm/civicrm-core 5.28.3 requires pear/log 1.13.2 -&gt; satisfiable by pear/log[1.13.2].
      - Installation request for civicrm/civicrm-core 5.28.3 -&gt; satisfiable by civicrm/civicrm-core[5.28.3].
      - Installation request for drupal/core-recommended (locked at 8.8.8, required as ^8.8) -&gt; satisfiable by drupal/core-recommended[8.8.8].
  
  
  Installation failed, reverting ./composer.json to its original content.
  </code></pre>
  <p>How can I get around this problem and upgrade CiviCRM under Drupal 8?</p>
  
Tags: <upgrade><drupal-8><composer>
Title: Upgrading CiviCRM under Drupal 8: How can I get around this error?
ThreadText: # Upgrading CiviCRM under Drupal 8: How can I get around this error?
  
  (Asked by: username_0 on 2020-08-30)
  
  I'm guessing that the upgrade process for CiviCRM under Drupal 8 is something like this:
  
  1. Use `composer require` to get the latest version of the package.
  2. Navigate to the database update URL through the browser (<http://example.org/civicrm/upgrade?reset=1>)
  
  But trying this now, I see what appears to be a version conflict around the pear/log package:
  
  ```
  $ composer require --update-with-dependencies civicrm/civicrm-core:5.28.3
  ./composer.json has been updated
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - drupal/core-recommended 8.8.8 requires pear/pear_exception v1.0.0 -> satisfiable by pear/pear_exception[v1.0.0].
      - drupal/core-recommended 8.8.8 requires pear/pear_exception v1.0.0 -> satisfiable by pear/pear_exception[v1.0.0].
      - drupal/core-recommended 8.8.8 requires pear/pear_exception v1.0.0 -> satisfiable by pear/pear_exception[v1.0.0].
      - Can only install one of: pear/pear_exception[v1.0.1, v1.0.0].
      - Can only install one of: pear/pear_exception[v1.0.1, v1.0.0].
      - Can only install one of: pear/pear_exception[v1.0.1, v1.0.0].
      - pear/log 1.13.2 requires pear/pear_exception 1.0.1 -> satisfiable by pear/pear_exception[v1.0.1].
      - civicrm/civicrm-core 5.28.3 requires pear/log 1.13.2 -> satisfiable by pear/log[1.13.2].
      - Installation request for civicrm/civicrm-core 5.28.3 -> satisfiable by civicrm/civicrm-core[5.28.3].
      - Installation request for drupal/core-recommended (locked at 8.8.8, required as ^8.8) -> satisfiable by drupal/core-recommended[8.8.8].
  
  Installation failed, reverting ./composer.json to its original content.
  
  ```
  
  How can I get around this problem and upgrade CiviCRM under Drupal 8?
  
  **Tags:** upgrade, drupal-8, composer
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-08-30. Score: 2
  
  You can use:
  
  (confirming this syntax)
  
  ```
  karins-MBP:d8civicrm.local sysadmin$ composer require pear/pear_exception:'1.0.1 as 1.0.0'
  ./composer.json has been updated
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Package operations: 0 installs, 0 updates, 0 removals
  Writing lock file
  Generating autoload files
    - CiviCRM asset map
  30 packages you are using are looking for funding.
  Use the `composer fund` command to find out more!
  
  ```
  
  Syntax in
  <https://docs.civicrm.org/installation/en/latest/drupal8/>
  is wrong. Will put in an MR -> <https://lab.civicrm.org/documentation/docs/installation/-/merge_requests/10>
  
  > **Comments:**
  > **username_0**: username_1, looks like the correct command is `composer require pear/pear_exception:"1.0.1 as 1.0.0"` (note colon, quotation marks, and `pear/pear_exception` instead of `pear/exception`). Do you think it's worth editing the answer?  
  > **username_0**: For reference, this worked for me: `composer require pear/pear_exception:"1.0.1 as 1.0.0";   composer require --update-with-dependencies civicrm/civicrm-core:5.28.3 civicrm/civicrm-drupal8:5.28.3; cv up:db;`  
  
  ---
  
  