Drupal 升级后缺少 Drupal 模块
Drupal Module is missing after Drupal upgrade
我是 Drupal 的新手。我在 Red Hat Linux 上有一个 运行ning 网站。我按照以下步骤升级到 8.9.9 https://www.drupal.org/docs/updating-drupal/updating-drupal-core-manually。总之我做到了,
Select all the files in the top-level directory (also hidden files starting with a dot) as well as
the 'core' and 'vendor' directories, and delete them. Be sure not to delete the 'modules',
'profiles', 'sites', and 'themes' directories.
现在,当我按照所有步骤进行操作时,运行 update.php 我得到了,
Symfony\Component\DependencyInjection\Exception\LogicException: Service
'dzango.twig.truncate_extension' for consumer 'twig' does not implement
Twig\Extension\ExtensionInterface. in Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass()
(line 164 of /var/www/html/add-main/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php).
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass(Array, 'twig', Object) (Line: 97)
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->process(Object) (Line: 140)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 789)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1335)
Drupal\Core\DrupalKernel->compileContainer() (Line: 916)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 477)
Drupal\Core\DrupalKernel->boot() (Line: 707)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
我发现升级后这些东西不见了,
升级后我需要运行一些作曲家命令吗?
我认为升级文档https://www.drupal.org/docs/updating-drupal/updating-drupal-core-manually遗漏了非常重要的部分。带来来自 composer.json 的更改后,永远不要忘记 运行 composer install/update/require。我没有手动将所有更改从我的 composer.json 带到新的,而是 运行 composer require mypackage
和我需要的包并且它起作用了。
尝试使用此代码更新所有包
composer update -vvv
我是 Drupal 的新手。我在 Red Hat Linux 上有一个 运行ning 网站。我按照以下步骤升级到 8.9.9 https://www.drupal.org/docs/updating-drupal/updating-drupal-core-manually。总之我做到了,
Select all the files in the top-level directory (also hidden files starting with a dot) as well as
the 'core' and 'vendor' directories, and delete them. Be sure not to delete the 'modules',
'profiles', 'sites', and 'themes' directories.
现在,当我按照所有步骤进行操作时,运行 update.php 我得到了,
Symfony\Component\DependencyInjection\Exception\LogicException: Service
'dzango.twig.truncate_extension' for consumer 'twig' does not implement
Twig\Extension\ExtensionInterface. in Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass()
(line 164 of /var/www/html/add-main/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php).
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass(Array, 'twig', Object) (Line: 97)
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->process(Object) (Line: 140)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 789)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1335)
Drupal\Core\DrupalKernel->compileContainer() (Line: 916)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 477)
Drupal\Core\DrupalKernel->boot() (Line: 707)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
我发现升级后这些东西不见了,
升级后我需要运行一些作曲家命令吗?
我认为升级文档https://www.drupal.org/docs/updating-drupal/updating-drupal-core-manually遗漏了非常重要的部分。带来来自 composer.json 的更改后,永远不要忘记 运行 composer install/update/require。我没有手动将所有更改从我的 composer.json 带到新的,而是 运行 composer require mypackage
和我需要的包并且它起作用了。
尝试使用此代码更新所有包
composer update -vvv