【问题标题】:migrate drupal 6 to drupal 8将 drupal 6 迁移到 drupal 8
【发布时间】: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 核心(我认为)。

标签: drupal drupal-8 migrate


【解决方案1】:

Drupal 8.1.7 已经过时了。请更新到最新版本,然后重试。迁移系统直到 8.4 或 8.5 才稳定,因此可能存在模块不兼容问题,需要考虑尝试将更新的贡献模块与旧版本的 Drupal 一起使用。

最后,Drupal 8.1.7 中有一些开放的安全漏洞不会被修补,因为它已经 EOL。 Drupal 的每个次要版本都会看到之前的次要版本 EOL,而在撰写本文时当前的次要版本是 5。

【讨论】:

    猜你喜欢
    • 2023-03-23
    • 2015-10-26
    • 2019-04-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-02
    • 2023-03-25
    • 2016-12-30
    相关资源
    最近更新 更多