0

目前我正在研究 Drupal-8.6.17 和 Lightning 3.2.9

我正在尝试将我的闪电版本 3.2.9 更新到 3.3.0(Core 8.6.17 到 8.7) taxonomy_term_field_datastatus值已经是 1

运行时显示错误drush updb

错误:在 /var/www/mysite/docroot/core/modules/taxonomy/taxonomy.post_update.php 中的 null 上调用成员函数 setRevisionable()

重现错误步骤:

composer require acquia/lightning:~3.3.0 --no-update
composer update
drush updb

请给我建议!

4

1 回答 1

0

现在我通过检查非空description字段解决了这个问题。

第 172 行/docroot/core/modules/taxonomy/taxonomy.post_update

实际代码:

$field_storage_definitions['description']->setRevisionable(TRUE);

变成

  if(!empty($field_storage_definitions['description'])){
      $field_storage_definitions['description']->setRevisionable(TRUE);
  }

它对我很好。干杯!

于 2019-07-17T06:34:53.140 回答