【问题标题】:Drupal 8: uploading new module causes site break, site does not work shows errorDrupal 8:上传新模块导致站点中断,站点不工作显示错误
【发布时间】:2020-10-21 16:40:47
【问题描述】:

自从 Drupal 9 发布后,在 Drupal 8 中上传了较新版本的模块后,Drupal 站点出现故障。刚刚展示:An error has been occurred.

【问题讨论】:

    标签: drupal-8 drupal-modules


    【解决方案1】:

    Drupal 8 的较新模块版本与 Drupal 9 兼容。

    出现问题是因为现在,新模块的 info.yml 文件具有密钥:

    core 替换为core_version_requirement。

    只需将core_version_requirement 替换为core

    例如。模块信息文件:views_data_export.info.yml

    替换:

    core_version_requirement: ^8.8 || 9

    由

    core: '8.x'

    网站将再次运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-05-05
      • 2012-11-11
      • 1970-01-01
      相关资源
      最近更新 更多