ユーザ用ツール

サイト用ツール


cms:drupal:drupal10try3post

Drupal10移行後

insertモジュールを戻す(再インストール)

$ composer require drupal/insert
./composer.json has been updated
Running composer update drupal/insert
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking drupal/insert (3.0.0-beta2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing drupal/insert (3.0.0-beta2): Extracting archive
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
90 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
phpstan/extension-installer: Extensions installed
Cleaning vendor directory.
No security vulnerability advisories found.
Using version ^3.0@beta for drupal/insert

有効にしてupdate

upgrade status

upgrade statusモジュールが、D9用であるため削除しておかなければいけないという記事が少しあったが、その必要はなかった。

D10になった後、upgrade statusはD11へのupgrade要件情報になってる。

minor update

D9の時と同じで

composer outdated "drupal/core-*"
composer update "drupal/core-*" --with-all-dependencies

で、やれる。うまくいかないときは、composer.jsonの記載がいけないか、特定バージョン指定でやれる(リリースページに記載がある)。また、モジュールのupdateも同様にcomposerで。しかしながら、どうしてもupdateできないものがある。composerでは成功し、json中身のupdateもできている。しかし、サイト上ではいつまで経ってもバージョンが古いままである。ということがあった、ctools。実際のディレクトリを覗いてみると、ほんらい、module/contrib/の中にあるものが、module/下にある。ctoolsは両方にあってcontribの方はupdateできているが、サイト上ではmodule配下の物を参照しているようで、どうすれば変更できるのかわからない。

そこで、ctoolsの圧縮ファイルをダウンロードし、ftpでmodule/に強制的にuploadすることでサイト上の更新ができた。これ、いつか、うまくいかなくなる気がする。しかし、方法がわからない。

cms/drupal/drupal10try3post.txt · 最終更新: 2023/12/21 22:00 by king