Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Drupal升级后缺少Drupal模块_Drupal_Drupal 8 - Fatal编程技术网

Drupal升级后缺少Drupal模块

Drupal升级后缺少Drupal模块,drupal,drupal-8,Drupal,Drupal 8,我对Drupal很陌生。我有一个运行在Red Hat Linux上的网站。我按照以下步骤升级到8.9.9。简言之,我已经做到了 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 'modul

我对Drupal很陌生。我有一个运行在Red Hat Linux上的网站。我按照以下步骤升级到8.9.9。简言之,我已经做到了

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命令?

我认为升级文档遗漏了非常重要的部分。从composer.json引入更改后,永远不要忘记运行composer安装/update/require。我没有手动将我的所有更改从my composer.json转换为新的,而是用我所需的包运行了
composer require mypackage
,并且运行正常。

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

composer update -vvv