我对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命令?
发布于 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,它起作用了。
发布于 2020-12-01 13:17:07
尝试使用此代码更新所有包
composer update -vvvhttps://stackoverflow.com/questions/65017409
复制相似问题