首页 > 解决方案 > Drupal 升级后 Drupal 模块丢失

问题描述

我对 Drupal 很陌生。我在 Red Hat Linux 上有一个正在运行的网站。我按照以下步骤升级到 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)

我发现升级后这些东西不见了,

在此处输入图像描述

升级后我需要运行一些作曲家命令吗?

标签: drupaldrupal-8

解决方案


试试这个代码来更新所有的包

composer update -vvv

推荐阅读