ユーザ用ツール

サイト用ツール


cms:drupal:drupal10try1

Drupal10Try1

バックアップを作って動作させたサイト側Upgradeするつもり、頑張ったがどうにも、サブディレクトリにするとうまく動作させられずに諦めて。

ディレクトリ全部のコピーだけ取得、データベースも複製するだけにして本ちゃんサイトでやってみることにする。

Try1-1

$ composer outdated drupal/*
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
drupal/captcha                1.10.0 2.0.5  The CAPTCHA module provides this feature to virtually any user facing we...
drupal/coder                  8.3.21 8.3.22 Coder is a library to review Drupal code.
drupal/colorbutton            1.4.0  1.5.0  Adds the Color Button plugin to CKEditor.
drupal/core                   9.5.11 10.1.6 Drupal is an open source content management platform powering millions o...
drupal/core-composer-scaffold 9.5.11 10.1.6 A flexible Composer project scaffold builder.
drupal/core-dev               9.5.11 10.1.6 require-dev dependencies from drupal/drupal; use in addition to drupal/c...
drupal/core-project-message   9.5.11 10.1.6 Adds a message after Composer installation.
drupal/core-recommended       9.5.11 10.1.6 Core and its dependencies with known-compatible minor versions. Require ...
drupal/core-vendor-hardening  8.9.20 10.1.6 Hardens the vendor directory for when it's in the docroot.

通常通り試す

$ composer update "drupal/core-*" --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 17 updates, 0 removals
  - Upgrading composer/composer (2.2.21 => 2.2.22)
  - Upgrading composer/spdx-licenses (1.5.7 => 1.5.8)
  - Upgrading doctrine/deprecations (v1.1.1 => 1.1.2)
  - Upgrading doctrine/instantiator (1.5.0 => 2.0.0)
  - Upgrading drupal/coder (8.3.21 => 8.3.22)
  - Upgrading justinrainbow/json-schema (5.2.12 => v5.2.13)
  - Upgrading laminas/laminas-escaper (2.12.0 => 2.13.0)
  - Upgrading laminas/laminas-feed (2.20.0 => 2.22.0)
  - Upgrading laminas/laminas-servicemanager (3.20.0 => 3.22.1)
  - Upgrading laminas/laminas-stdlib (3.16.1 => 3.18.0)
  - Upgrading phpstan/phpdoc-parser (1.24.1 => 1.24.3)
  - Upgrading react/promise (v2.10.0 => v2.11.0)
  - Upgrading slevomat/coding-standard (8.13.4 => 8.14.1)
  - Upgrading symfony/http-kernel (v4.4.50 => v4.4.51)
  - Upgrading symfony/phpunit-bridge (v5.4.26 => v5.4.31)
  - Upgrading symfony/var-dumper (v5.4.28 => v5.4.29)
  - Upgrading theseer/tokenizer (1.2.1 => 1.2.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 17 updates, 0 removals
  - Downloading composer/spdx-licenses (1.5.8)
  - Downloading symfony/var-dumper (v5.4.29)
  - Downloading symfony/http-kernel (v4.4.51)
  - Downloading laminas/laminas-stdlib (3.18.0)
  - Downloading laminas/laminas-escaper (2.13.0)
  - Downloading laminas/laminas-feed (2.22.0)
  - Downloading symfony/phpunit-bridge (v5.4.31)
  - Downloading theseer/tokenizer (1.2.2)
  - Downloading doctrine/instantiator (2.0.0)
  - Downloading phpstan/phpdoc-parser (1.24.3)
  - Downloading doctrine/deprecations (1.1.2)
  - Downloading justinrainbow/json-schema (v5.2.13)
  - Downloading slevomat/coding-standard (8.14.1)
  - Syncing drupal/coder (8.3.22) into cache
  - Downloading react/promise (v2.11.0)
  - Downloading composer/composer (2.2.22)
  - Downloading laminas/laminas-servicemanager (3.22.1)
  - Upgrading composer/spdx-licenses (1.5.7 => 1.5.8): Extracting archive
  - Upgrading symfony/var-dumper (v5.4.28 => v5.4.29): Extracting archive
  - Upgrading symfony/http-kernel (v4.4.50 => v4.4.51): Extracting archive
  - Upgrading laminas/laminas-stdlib (3.16.1 => 3.18.0): Extracting archive
  - Upgrading laminas/laminas-escaper (2.12.0 => 2.13.0): Extracting archive
  - Upgrading laminas/laminas-feed (2.20.0 => 2.22.0): Extracting archive
  - Upgrading symfony/phpunit-bridge (v5.4.26 => v5.4.31): Extracting archive
  - Upgrading theseer/tokenizer (1.2.1 => 1.2.2): Extracting archive
  - Upgrading doctrine/instantiator (1.5.0 => 2.0.0): Extracting archive
  - Upgrading phpstan/phpdoc-parser (1.24.1 => 1.24.3): Extracting archive
  - Upgrading doctrine/deprecations (v1.1.1 => 1.1.2): Extracting archive
  - Upgrading justinrainbow/json-schema (5.2.12 => v5.2.13): Extracting archive
  - Upgrading slevomat/coding-standard (8.13.4 => 8.14.1): Extracting archive
  - Upgrading drupal/coder (8.3.21 => 8.3.22): Checking out ba6e62303d from cache
  - Upgrading react/promise (v2.10.0 => v2.11.0): Extracting archive
  - Upgrading composer/composer (2.2.21 => 2.2.22): Extracting archive
  - Upgrading laminas/laminas-servicemanager (3.20.0 => 3.22.1): Extracting archive
    Cleaning: symfony/http-kernel
    Cleaning: symfony/phpunit-bridge
    Cleaning: theseer/tokenizer
    Cleaning: doctrine/instantiator
    Cleaning: justinrainbow/json-schema
    Cleaning: drupal/coder
    Cleaning: composer/composer
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.
86 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
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>]...

成功したかに見えるが、upgradeの項目に10.0・・の項目がないんだけど・・・

update.php かけても、9.5.11のままだった。。。残念!

Try1-2

再度

$ composer outdated 'drupal/*'
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
drupal/captcha                1.10.0 2.0.5  The CAPTCHA module provides this feature to virtually any user facing we...
drupal/colorbutton            1.4.0  1.5.0  Adds the Color Button plugin to CKEditor.
drupal/core                   9.5.11 10.1.6 Drupal is an open source content management platform powering millions o...
drupal/core-composer-scaffold 9.5.11 10.1.6 A flexible Composer project scaffold builder.
drupal/core-dev               9.5.11 10.1.6 require-dev dependencies from drupal/drupal; use in addition to drupal/c...
drupal/core-project-message   9.5.11 10.1.6 Adds a message after Composer installation.
drupal/core-recommended       9.5.11 10.1.6 Core and its dependencies with known-compatible minor versions. Require ...
drupal/core-vendor-hardening  8.9.20 10.1.6 Hardens the vendor directory for when it's in the docroot.
$ composer update "drupal/core-*" --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
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.
86 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
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>]...

Try1-3

それでは、upgradeバージョン決め打ちで(やり方はreleaseのページに書いてるのをコピーする)

$ composer require drupal/core-recommended:10.1.6 drupal/core-composer-scaffold:10.1.6 drupal/core-project-message:10.1.6 --update-with-all-dependencies
./composer.json has been updated
Running composer update drupal/core-recommended drupal/core-composer-scaffold drupal/core-project-message --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
 
  Problem 1
    - Root composer.json requires drupal/core-recommended 10.1.6 -> satisfiable by drupal/core-recommended[10.1.6].
    - drupal/core-recommended 10.1.6 requires drupal/core 10.1.6 -> found drupal/core[10.1.6] but these were not loaded, likely because it conflicts with another require.
 
 
Installation failed, reverting ./composer.json and ./composer.lock to their original content.

composer.json

“drupal/core-recommended”: “^9”,となっているのを、10にしてみる

    "require": {
        "composer/installers": "^1.9",
        "defuse/php-encryption": "^2.3",
        "drupal/backup_migrate": "^5.0",
        "drupal/bluemasters": "1.x-dev@dev",
        "drupal/captcha": "^1.10",
        "drupal/color": "^1.0",
        "drupal/colorbox": "^2.0",
        "drupal/colorbox_inline": "^2.0",
        "drupal/colorbutton": "^1.3",
        "drupal/core-composer-scaffold": "^9",
        "drupal/core-project-message": "^9",
        "drupal/core-recommended": "^10",
        "drupal/core-vendor-hardening": "^8.8",
        "drupal/entity": "^1.4",
        "drupal/insert": "^2.0",
        "drupal/libraries": "^4.0.4",
        "drupal/marinelli": "1.x-dev@dev",
        "drupal/mathjax": "^4.0",
        "drupal/panelbutton": "^1.4",
        "drupal/upgrade_status": "^4.0",
        "drupal/webform": "^6.2"
    },

composer.lockをtmp/へ移動

cms/drupal/drupal10try1.txt · 最終更新: 2023/11/20 21:38 by king