【发布时间】:2020-10-21 16:40:47
【问题描述】:
自从 Drupal 9 发布后,在 Drupal 8 中上传了较新版本的模块后,Drupal 站点出现故障。刚刚展示:An error has been occurred.
【问题讨论】:
自从 Drupal 9 发布后,在 Drupal 8 中上传了较新版本的模块后,Drupal 站点出现故障。刚刚展示:An error has been occurred.
【问题讨论】:
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'
网站将再次运行。
【讨论】: