如何修复在Shopware 6中删除用户时出现的错误“无法解析写入顺序”?

huangapple go评论74阅读模式
英文:

How to fix error "Can not resolve write order " when deleting user in Shopware 6?

问题

尝试删除用户时,我们遇到了错误:“无法解析所提供数据的写入顺序。剩余的写入顺序类别:用户、用户配置、媒体”,在Shopware 6管理面板中删除用户时出现此错误。这个错误看起来很专业,所以我在StackOverflow上发布了帖子。

这是仍然有数据分配给用户,还是编程错误的意思吗?

如何修复在Shopware 6中删除用户时出现的错误“无法解析写入顺序”?

我们如何删除这个用户?我们是否需要通过SQL查询重置用户分配?

英文:

When trying to delete a user, we are getting the error:

"Can not resolve write order for provided data. Remaining write order classes: user, user_config, media" when trying to delete a user in the Shopware 6 admin panel.

The error looks pretty programmer-specific so I am posting on StackOverflow.

Does that mean there is still data assigned to the user or is it a programming error?

如何修复在Shopware 6中删除用户时出现的错误“无法解析写入顺序”?

How can we delete this user? Do we have to reset the user assignments via SQL query?

答案1

得分: 1

看起来像是我们在6.5版本中修复的一个错误。这是工单链接: https://issues.shopware.com/issues/NEXT-22262

目前,为了能够删除用户,您可以手动删除用户的个人资料图片(这是链接工单中的根本问题)。

否则,手动将要删除的用户在媒体表中的所有userId列设置为null,这应该作为一种解决方法解决这个问题。

英文:

That looks like a bug that we fixed with 6.5. Here the link to the ticket: https://issues.shopware.com/issues/NEXT-22262.

For now to be able to delete the user you can manually delete the profile image of the user (that was the root issue in the linked ticket).

Otherwise unset all the userId columns in the media table for the user you want to delete to null manually, that should solve the issue as a workaround.

huangapple
  • 本文由 发表于 2023年4月14日 00:07:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76007576-2.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定