MAMP環境でDrushでDrupal8.6.4から8.6.9にupdateしようとしたときのメモ
Drushでdrush up drupalを実行すると下記のようにエラー。
Code updates will be made to drupal core.
WARNING: Updating core will discard any modifications made to Drupal core files, most noteworthy among these are .htaccess and robots.txt. If you have made any modifications to these files, please back them up before updating so that you can re-create your modifications in the updated version of the file.
Note: Updating core can potentially break your site. It is NOT recommended to update production sites without prior testing.
Do you really want to continue? (y/n): y
Project drupal was updated successfully. Installed version is now 8.6.9.
Backups were saved into the directory [ok]
/Users/******/drush-backups/****/20190220120548/drupal.
Symfony\Component\DependencyInjection\Exception\LogicException: Service [error]
'twig_xdebug' for consumer 'twig' does not implement
Twig_ExtensionInterface.
サイト画面は
「The website encountered an unexpected error. Please try again later.」
と表示される。
https://www.drupal.org/project/twig_xdebug/issues/2852208
twig_xdebugが必要なようで。
$ composer require drupal/twig_xdebug
Using version ^1.0 for drupal/twig_xdebug
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 35 installs, 0 updates, 0 removals
以後略・・・
$ drush st
Drupal version : 8.6.9
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database port : 3306
Database username : root
Database name : ****
Database : Connected
Drupal bootstrap : 成功