目次

Drupal9 Minor-update7

いつも通り進行

composer

$ composer outdated "drupal/*"
Info from https://repo.packagist.org: #StandWithUkraine
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
drupal/captcha                1.5.0  1.8.0  The CAPTCHA module provides this feature to virtually any user facing web form on a Drupal site.
drupal/core                   9.4.7  9.4.9  Drupal is an open source content management platform powering millions of websites and applications.
drupal/core-composer-scaffold 9.4.7  9.4.9  A flexible Composer project scaffold builder.
drupal/core-dev               9.4.7  9.4.9  require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run te...
drupal/core-project-message   9.4.7  9.4.9  Adds a message after Composer installation.
drupal/core-recommended       9.4.7  9.4.9  Core and its dependencies with known-compatible minor versions. Require this project INSTEAD OF d...
drupal/core-vendor-hardening  8.9.20 9.4.9  Hardens the vendor directory for when it's in the docroot.
drupal/upgrade_status         3.16.0 3.18.0 Review Drupal major upgrade readiness of the environment and components of the site.

update

例のように依存関係を保って、coreの全てをupdateする。

$ composer update drupal/core "drupal/core-*" --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 27 updates, 0 removals
  - Upgrading composer/ca-bundle (1.3.3 => 1.3.4)
  - Upgrading drupal/core (9.4.7 => 9.4.9)
  - Upgrading drupal/core-composer-scaffold (9.4.7 => 9.4.9)
  - Upgrading drupal/core-dev (9.4.7 => 9.4.9)
  - Upgrading drupal/core-project-message (9.4.7 => 9.4.9)
  - Upgrading drupal/core-recommended (9.4.7 => 9.4.9)
  - Upgrading instaclick/php-webdriver (1.4.15 => 1.4.16)
  - Upgrading nikic/php-parser (v4.15.1 => v4.15.2)
  - Upgrading phpdocumentor/type-resolver (1.6.1 => 1.6.2)
  - Upgrading phpspec/prophecy (v1.15.0 => v1.16.0)
  - Upgrading phpstan/phpdoc-parser (1.8.0 => 1.13.1)
  - Upgrading phpunit/php-code-coverage (9.2.17 => 9.2.19)
  - Upgrading phpunit/phpunit (9.5.25 => 9.5.27)
  - Upgrading sirbrillig/phpcs-variable-analysis (v2.11.8 => v2.11.9)
  - Upgrading slevomat/coding-standard (8.5.2 => 8.6.4)
  - Upgrading symfony/console (v4.4.45 => v4.4.49)
  - Upgrading symfony/dependency-injection (v4.4.44 => v4.4.49)
  - Upgrading symfony/http-foundation (v4.4.46 => v4.4.49)
  - Upgrading symfony/http-kernel (v4.4.46 => v4.4.49)
  - Upgrading symfony/phpunit-bridge (v5.4.11 => v5.4.16)
  - Upgrading symfony/polyfill-php72 (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-php73 (v1.26.0 => v1.27.0)
  - Upgrading symfony/psr-http-message-bridge (v2.1.3 => v2.1.4)
  - Upgrading symfony/serializer (v4.4.45 => v4.4.47)
  - Upgrading symfony/translation (v4.4.45 => v4.4.47)
  - Upgrading symfony/validator (v4.4.46 => v4.4.48)
  - Upgrading symfony/var-dumper (v5.4.13 => v5.4.14)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 27 updates, 0 removals
  - Downloading composer/ca-bundle (1.3.4)
  - Downloading symfony/polyfill-php72 (v1.27.0)
  - Downloading symfony/validator (v4.4.48)
  - Downloading symfony/translation (v4.4.47)
  - Downloading symfony/serializer (v4.4.47)
  - Downloading symfony/http-foundation (v4.4.49)
  - Downloading symfony/psr-http-message-bridge (v2.1.4)
  - Downloading symfony/polyfill-php73 (v1.27.0)
  - Downloading symfony/var-dumper (v5.4.14)
  - Downloading symfony/http-kernel (v4.4.49)
  - Downloading symfony/dependency-injection (v4.4.49)
  - Downloading symfony/console (v4.4.49)
  - Downloading drupal/core (9.4.9)
  - Downloading symfony/phpunit-bridge (v5.4.16)
  - Downloading nikic/php-parser (v4.15.2)
  - Downloading phpunit/php-code-coverage (9.2.19)
  - Downloading phpunit/phpunit (9.5.27)
  - Downloading phpdocumentor/type-resolver (1.6.2)
  - Downloading phpspec/prophecy (v1.16.0)
  - Downloading instaclick/php-webdriver (1.4.16)
  - Downloading phpstan/phpdoc-parser (1.13.1)
  - Downloading slevomat/coding-standard (8.6.4)
  - Downloading sirbrillig/phpcs-variable-analysis (v2.11.9)
  - Upgrading drupal/core-composer-scaffold (9.4.7 => 9.4.9): Extracting archive
  - Upgrading drupal/core-project-message (9.4.7 => 9.4.9): Extracting archive
  - Upgrading composer/ca-bundle (1.3.3 => 1.3.4): Extracting archive
  - Upgrading symfony/polyfill-php72 (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/validator (v4.4.46 => v4.4.48): Extracting archive
  - Upgrading symfony/translation (v4.4.45 => v4.4.47): Extracting archive
  - Upgrading symfony/serializer (v4.4.45 => v4.4.47): Extracting archive
  - Upgrading symfony/http-foundation (v4.4.46 => v4.4.49): Extracting archive
  - Upgrading symfony/psr-http-message-bridge (v2.1.3 => v2.1.4): Extracting archive
  - Upgrading symfony/polyfill-php73 (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/var-dumper (v5.4.13 => v5.4.14): Extracting archive
  - Upgrading symfony/http-kernel (v4.4.46 => v4.4.49): Extracting archive
  - Upgrading symfony/dependency-injection (v4.4.44 => v4.4.49): Extracting archive
  - Upgrading symfony/console (v4.4.45 => v4.4.49): Extracting archive
  - Upgrading drupal/core (9.4.7 => 9.4.9): Extracting archive
  - Upgrading symfony/phpunit-bridge (v5.4.11 => v5.4.16): Extracting archive
  - Upgrading nikic/php-parser (v4.15.1 => v4.15.2): Extracting archive
  - Upgrading phpunit/php-code-coverage (9.2.17 => 9.2.19): Extracting archive
  - Upgrading phpunit/phpunit (9.5.25 => 9.5.27): Extracting archive
  - Upgrading phpdocumentor/type-resolver (1.6.1 => 1.6.2): Extracting archive
  - Upgrading phpspec/prophecy (v1.15.0 => v1.16.0): Extracting archive
  - Upgrading instaclick/php-webdriver (1.4.15 => 1.4.16): Extracting archive
  - Upgrading phpstan/phpdoc-parser (1.8.0 => 1.13.1): Extracting archive
  - Upgrading slevomat/coding-standard (8.5.2 => 8.6.4): Extracting archive
  - Upgrading sirbrillig/phpcs-variable-analysis (v2.11.8 => v2.11.9): Extracting archive
  - Upgrading drupal/core-dev (9.4.7 => 9.4.9)
  - Upgrading drupal/core-recommended (9.4.7 => 9.4.9)
    Cleaning: symfony/validator
    Cleaning: symfony/translation
    Cleaning: symfony/serializer
    Cleaning: symfony/http-foundation
    Cleaning: symfony/psr-http-message-bridge
    Cleaning: symfony/http-kernel
    Cleaning: symfony/dependency-injection
    Cleaning: symfony/console
    Cleaning: symfony/phpunit-bridge
    Cleaning: phpunit/php-code-coverage
    Cleaning: phpunit/phpunit
    Cleaning: phpspec/prophecy
    Cleaning: instaclick/php-webdriver
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
87 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Cleaning vendor directory.
Scaffolding files for drupal/core:
 
 
  [RuntimeException]                                                                 
  Could not delete /home/husq/www/www_cycle_eek/sites/default/default.services.yml:  
 
 
update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

update.php

特に何もなかった。ただし、phpのバージョンが古いと言ってきており、いずれ8.0以降にする必要がありそうである。

7.4.33 (もっと詳しく)
Your PHP installation is too old. Drupal requires at least PHP 8.0. It is recommended to upgrade to PHP version 8.0 or higher for the best ongoing support. See PHP's version support documentation and the Drupal PHP requirements page for more information.

PHP versions 8.1.0 to 8.1.5 have an OPcache bug that can cause fatal errors with class autoloading. It can be avoided by using PHP 8.1.6 or later.

php8にすると、うまく動かなかった気がするんだけど。もうそんなことないかな。