首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Drupal升级后缺少Drupal模块

Drupal升级后缺少Drupal模块
EN

Stack Overflow用户
提问于 2020-11-26 15:06:14
回答 2查看 52关注 0票数 1

我对Drupal非常陌生。我有一个运行在Red Hat Linux上的网站。我按照以下步骤升级到8.9.9 https://www.drupal.org/docs/updating-drupal/updating-drupal-core-manually。简而言之,我已经做到了,

代码语言:javascript
复制
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时,

代码语言:javascript
复制
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命令?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-11-26 22:26:57

我认为升级文档https://www.drupal.org/docs/updating-drupal/updating-drupal-core-manually遗漏了非常重要的部分。从composer.json带来更改后,不要忘记运行composer install/update/require。而不是手动将我所有的更改从我的composer.json带到新的更改中,我用我需要的包运行composer require mypackage,它起作用了。

票数 0
EN

Stack Overflow用户

发布于 2020-12-01 13:17:07

尝试使用此代码更新所有包

代码语言:javascript
复制
composer update -vvv
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65017409

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档