drupal - 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)
我发现升级后这些东西不见了,
升级后我需要运行一些作曲家命令吗?
解决方案
试试这个代码来更新所有的包
composer update -vvv
推荐阅读
- include - 我正在尝试包括
在我的 Redhat Enterprise linux 服务器上的源代码中,需要安装它 - flutter - Flutter:如何在 Flutter 中向 http 包添加标头
- c - 计算子进程的问题
- c - 如何在 Linux 中解码系统调用的输入标志?
- c# - 将带逗号的字符串转换为带点的浮点数
- database - 多个值的结果子查询 - SQL
- c++ - 如何解决对几个函数的未定义引用
- javascript - 使用 nextjs9 在 img 标签中加载 .svg 文件
- mysql - 在一列中选择具有多个选项的单个值
- c++ - 运行我的代码时出现分段错误(核心转储)问题