【发布时间】:2018-10-13 13:51:25
【问题描述】:
我有一个基于 Drupal 6.26 的网站,我想迁移到 Drupal 8.1.7。
我已遵循此指南:https://www.drupal.org/docs/8/upgrade/upgrade-using-drush
虽然,我成功建立了网站,并在“模块”文件夹中添加了 3 个模块。
但是当我运行这个命令时: drush en migrate_upgrade migrate_tools migrate_plus -y
然后出现错误:
PHP Fatal error: Class Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher contains 1 abstract method and must therefore be declared abstract or
implement the remaining methods (Symfony\Component\EventDispatcher\EventDispatcherInterface::getListenerPriority)
in /public_html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php on line 34
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher contains 1 abstract method and must therefore be declared abstract or implement
the remaining methods
(Symfony\Component\EventDispatcher\EventDispatcherInterface::getListenerPriority) in
/public_html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php, line 34
这是我的环境信息:
・亚马逊 Linux AMI 2016.03
・PHP 7.0.10
・ PostgreSQL 9.2
・Drupal 8.1.7
・Drush 8.1.15
你能告诉我我的问题是什么吗?
谢谢!
【问题讨论】:
-
阅读本文时不要使用 Drupal 8.1.7,将其更新到 Drupal 8.5.3 或任何最新版本的 Drupal。
-
我应该更清楚一点,最近已经修复了一些主要的安全建议,没有人应该使用未打补丁的 Drupal 版本。此外,Migrate 在 8.1 中不稳定,直到 8.4 才获得稳定的 drupal 核心(我认为)。