Skip to main content

While the Drupal site has a great outline of the steps to follow, I found we needed to tweak so the update would work for us.  I found the update process from 8.7.10 to 8.8.0 that worked on our sites was as follows

Starting with ssh
  • composer update # To update any dependencies
Transfer the Drupal 8.8.0 tar gz file

Either using command line or FTP, transfer drupal-8.8.0.tar.gz to your respective directory.

Back to ssh
  • unpack the the drupal-8.8.0.tar.gz - see our update script via ssh
  • git add composer.lock; git commit
  • composer remove webflo/drupal-core-strict --no-update
  • composer remove drupal/core --no-update
  • composer require 'composer/installers:^1.7' --no-update
  • rm composer.lock
  • rm -rf vendor # Also helps avoid conflicts
  • composer require drupal/core-recommended:^8.8 --update-with-dependencies
  • git add composer.json composer.lock; git commit -m "Update Drupal to 8.8.0 and use drupal/core-recommended instead of webflo/drupal-core-strict"

I know there are many ways to complete this process.  However, when we first ran without unpacking drupal-8.8.0.tar.gz, the site failed to complete the update process due.  The errors received included

Your requirements could not be resolved to an installable set of packages.

Problem 1
  • The requested package typo3/phar-stream-wrapper (locked at v3.1.3, required as ^2.1.1) is satisfiable by typo3/phar-stream-wrapper[v3.1.3] but these conflict with your requirements or minimum-stability.
Problem 2
  • drupal/core-recommended 8.8.0 requires typo3/phar-stream-wrapper v3.1.3 -> satisfiable by typo3/phar-stream-wrapper[v3.1.3] but these conflict with your requirements or minimum-stability
  • drupal/core-recommended 8.8.0 requires typo3/phar-stream-wrapper v3.1.3 -> satisfiable by typo3/phar-stream-wrapper[v3.1.3] but these conflict with your requirements or minimum-stability
  • drupal/core-recommended 8.8.0 requires typo3/phar-stream-wrapper v3.1.3 -> satisfiable by typo3/phar-stream-wrapper[v3.1.3] but these conflict with your requirements or minimum-stability
  • Installation request for drupal/core-recommended (locked at 8.8.0, required as ^8.8) -> satisfiable by drupal/core-recommended[8.8.0]

 

Whereas, when we unpacked Drupal 8.8.0 and then ran the above scripts, the process ran seamlessly.

Unexpected error message

Once you have reached this point after updating to Drupal core 8.8.0, and you go to your site and find the error message

"The website encountered an unexpected error. Please try again later."

You need to run '/update.php' after the update.  Then your site will be back up and running.

Related articles

Andrew Fletcher30 Apr 2024
Best Practices for Configuring Twig Debug Settings in Drupal 10
When developing with Drupal 10, it's crucial to maintain an environment that is both secure and efficient. One of the important aspects of this setup involves the management of Twig template debugging. Proper configuration of these settings helps prevent unnecessary performance degradation and...