常见问题
常见问题解析文章时出错

解析文章时出错

如果您收到如下日志错误:

[Query "translate-customposts"] Execution with errors: 🔴 Error parsing post ID 4957: This post does not appear to contain block content. This fields is designed to parse Gutenberg blocks and can not read classic editor content.

解决方案取决于您所使用的编辑器:

如果使用 Gutenberg

如果您使用的是 Gutenberg 编辑器,此错误表示文章内容已损坏。

修复方法:

  1. 在 WordPress 编辑器中编辑该文章
  2. 以正确的 Gutenberg 格式重新保存文章

如果使用 Elementor 或 Bricks

如果您使用的是 Elementor 或 Bricks 等页面构建器,此错误是因为插件尝试翻译 post_content 字段,而该内容不符合 Gutenberg 格式。

页面构建器将内容存储在元数据中。翻译 post_content 字段在大多数情况下并非必要(仅在某些特定情形下才需要,例如将站点从 Gutenberg 迁移到 Elementor,且文章内容尚未完成迁移时)。

修复方法:

  1. 前往设置页面,找到 Plugin Integration Configuration > [Page Builder](Elementor 或 Bricks)
  2. 禁用翻译 post_content 字段的选项
为 Elementor 禁用「Translate content」选项
为 Elementor 禁用「Translate content」选项