首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >由于taxonomy_post_update_make_taxonomy_term_revisionable,无法更新到Drupal8.7.1

由于taxonomy_post_update_make_taxonomy_term_revisionable,无法更新到Drupal8.7.1
EN

Stack Overflow用户
提问于 2019-05-16 19:24:39
回答 1查看 274关注 0票数 1

在运行composer update drupal/core webflo/drupal-core-require-dev --with-dependencies更新到v8.7.1,然后运行drush updb之后,更新失败如下:

代码语言:javascript
复制
[notice] Update started: taxonomy_post_update_make_taxonomy_term_revisionable [4.77 sec, 33.46 MB]
[error]  Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null: INSERT INTO {tmp_b3edd9taxonomy_term_field_data} (tid, revision_id, vid, langcode, name, description__value, description__format, weight, changed, default_langcode, status, revision_translation_affected) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11); 
Array
(
   [:db_insert_placeholder_0] => 1
   [:db_insert_placeholder_1] => 1
   [:db_insert_placeholder_2] => tags
   [:db_insert_placeholder_3] => zxx
   [:db_insert_placeholder_4] =>
   [:db_insert_placeholder_5] =>
   [:db_insert_placeholder_6] =>
   [:db_insert_placeholder_7] =>
   [:db_insert_placeholder_8] =>
   [:db_insert_placeholder_9] =>
   [:db_insert_placeholder_10] =>
   [:db_insert_placeholder_11] => 1
)
in Drupal\Core\Database\Connection->handleQueryException() (line 689 of /mnt/www/html/optivode42/docroot/core/lib/Drupal/Core/Database/Connection.php). [7.12 sec, 45.21 MB]
[error]  The entity update process failed while processing the entity type taxonomy_term, ID: 1. [8.17 sec, 45.24 MB]
[error]  Update failed: taxonomy_post_update_make_taxonomy_term_revisionable [8.17 sec, 38.9 MB]

其他解决方案建议在taxonomy_term_field_data字段中使用错误数据,但这似乎不是问题所在。

我检查了taxonomy_term_field_data,没有name为空的记录,我甚至没有任何带有langcode zxx的记录,所以我现在有点不知所措。似乎我不能像在其他答案中那样删除任何东西来修复这个问题。

*编辑:我在taxonomy_term_data中有langcode zxx记录,所以我删除了这些记录,我得到了相同的错误,但是:

代码语言:javascript
复制
Array
(
   [:db_insert_placeholder_0] => 2
   [:db_insert_placeholder_1] => 2
   [:db_insert_placeholder_2] => tags
   [:db_insert_placeholder_3] => en
   [:db_insert_placeholder_4] =>
   [:db_insert_placeholder_5] =>
   [:db_insert_placeholder_6] =>
   [:db_insert_placeholder_7] =>
   [:db_insert_placeholder_8] =>
   [:db_insert_placeholder_9] =>
   [:db_insert_placeholder_10] =>
   [:db_insert_placeholder_11] => 1
)
EN

回答 1

Stack Overflow用户

发布于 2019-05-24 02:24:47

我发现这与replicate-ui module中的一个错误有关,该错误实际上是在没有在taxonomy_index表中创建真正的父记录的情况下创建分类法的。

因此,我已经向开发人员开放了一个bug报告来解决这个问题。

同时,我实际上升级到了Drupalv8.6.16,因为它有我需要的安全更新,而且我还不需要一直升级到v8.7。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56167458

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档