Publish to Discourse and scheduling

Closing the loop on this – in excellent news, it would seem that WP Missed Schedule was the culprit. I’ve disabled it and I’m back in business.

Thanks all for your help on this – I really appreciate it.

7 个赞

Glad to hear it. WordPress plugin clashes can be a bit of a nightmare.

1 个赞

虽然我不想在五年后提起这件事,但我遇到了和 Hawk 当时一样的问题。当我将一篇帖子设置为发布到 Discourse 并然后在 WP 中安排在未来的某个时间发布时,保存后它不会保持选中状态。我尝试禁用除 Discourse 之外的所有插件,但问题仍然存在。还有其他想法吗?

1 个赞

嘿 David,你使用的是原生的 WordPress 文章排程系统,还是插件?

(仅供参考,我刚在我自己的测试网站上测试过,似乎运行正常。并不是说没有问题,只是我目前无法重现。)

谢谢 Angus,这是在使用默认调度,我没有任何与调度相关的插件。我也尝试过禁用所有插件,但问题仍然存在。

日志看起来正常:

[2022-06-08 12:52:35] connection.INFO: check_connection_status.successful_connection  
[2022-06-08 12:52:35] connection.INFO: check_connection_status.valid_scopes 

我在控制台中也看不到任何相关内容。

David,您能否分享一下您下载的日志中的“meta”文件(其中包含您所有的 WP Discourse 设置和您的 Wordpress 服务器环境),并且能否录制一个问题发生的视频给我?我仍然无法重现该问题。

这是录制视频的方法:

  1. 开始屏幕录制。
  2. 打开您的 Wordpress 管理面板和您的浏览器控制台日志。
  3. 创建一个测试帖子,选择发布选项。
  4. 将其安排在几分钟后发布,然后点击“安排”。
  5. 一旦安排好,只需刷新页面以检查帖子的状态(这在实际操作中并非必需,但为了录制视频的目的)。
  6. 等待帖子发布。
  7. 结束屏幕录制。

如果您能通过这种方式重现问题,我将能够确切地看到那里发生了什么。如果您能私信给我。

谢谢 Angus,现在我正尝试录制它,但当然无法重现,而且它似乎已神奇修复 :crazy_face: 如果再次发生并且我能重现,我会给你发私信。

1 个赞

I am definitely seeing this issue and have the steps to manually add the discourse permalink and post_id in the post custom fields segment. Not ideal for use since we have a lot of editors scheduling posts.

Edit: Using the Wordpress.com schedule post feature and the wordpress admin scheduled post feature. No plugins

Seeing logs like this:

[2023-10-03 01:28:32] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 01:40:20] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 01:44:30] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261661"} 
[2023-10-03 01:44:52] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261661"} 
[2023-10-03 01:46:34] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261675"} 
[2023-10-03 01:46:43] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 01:46:58] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261675"} 
[2023-10-03 01:53:12] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261661"} 
[2023-10-03 01:55:04] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261661"} 
[2023-10-03 01:57:34] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261661"} 
[2023-10-03 02:01:07] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261675"} 
[2023-10-03 03:51:36] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 05:07:05] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 05:08:36] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 07:11:03] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 07:11:03] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 07:11:04] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 07:11:04] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 07:11:04] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 10:00:05] publish.INFO: create_post.post_success {"wp_title":"Daily Bullets (Oct. 3): Ranking the Remaining Schedule, Afternoon Kick for Kansas Game","wp_author_id":"103","wp_post_id":261716} 
[2023-10-03 10:00:05] publish.INFO: create_post.body_valid {"wp_title":"Daily Bullets (Oct. 3): Ranking the Remaining Schedule, Afternoon Kick for Kansas Game","wp_author_id":"103","wp_post_id":261716} 
[2023-10-03 10:00:05] publish.INFO: create_post.after_publish {"post_id":261716,"remote_post_type":"create_post","discourse_post_id":"500799","discourse_topic_id":"19153","discourse_permalink":"https://forum.pistolsfiringblog.com/t/daily-bullets-oct-3-ranking-the-remaining-schedule-afternoon-kick-for-kansas-game/19153"} 
[2023-10-03 10:00:07] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 10:00:07] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261716"} 
[2023-10-03 11:16:11] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261735"} 
[2023-10-03 13:26:23] publish.ERROR: create_post.post_error {"wp_title":"The Top 5 Quotes from Mike Gundy's Pre-Kansas State News Conference","wp_author_id":"20980","wp_post_id":261735,"response_message":"Embed url has already been taken","http_code":422} 
[2023-10-03 13:27:03] publish.ERROR: create_post.post_error {"wp_title":"The Top 5 Quotes from Mike Gundy's Pre-Kansas State News Conference","wp_author_id":"20980","wp_post_id":261735,"response_message":"Embed url has already been taken","http_code":422} 
[2023-10-03 13:28:48] connection.INFO: check_connection_status.successful_connection  
[2023-10-03 13:28:48] connection.INFO: check_connection_status.valid_scopes  
[2023-10-03 13:33:03] publish.ERROR: create_post.post_error {"wp_title":"The Top 5 Quotes from Mike Gundy's Pre-Kansas State News Conference","wp_author_id":"20980","wp_post_id":261735,"response_message":"Embed url has already been taken","http_code":422} 
[2023-10-03 13:35:23] publish.INFO: update_post.post_success {"wp_title":"Daily Bullets (Oct. 3): Ranking the Remaining Schedule, Afternoon Kick for Kansas Game","wp_author_id":"103","wp_post_id":261716} 
[2023-10-03 13:35:23] publish.INFO: update_post.body_valid {"wp_title":"Daily Bullets (Oct. 3): Ranking the Remaining Schedule, Afternoon Kick for Kansas Game","wp_author_id":"103","wp_post_id":261716} 
[2023-10-03 13:35:23] publish.ERROR: featured_link.post_error {"wp_title":"Daily Bullets (Oct. 3): Ranking the Remaining Schedule, Afternoon Kick for Kansas Game","wp_author_id":"103","wp_post_id":261716,"response_message":"There was an error updating that topic.","http_code":422} 
[2023-10-03 13:35:24] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 13:35:25] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 13:37:34] publish.ERROR: create_post.post_error {"wp_title":"Safety Trey Rucker 'Active' Following Alleged DUI Arrest","wp_author_id":"20980","wp_post_id":261731,"response_message":"Embed url has already been taken","http_code":422} 
[2023-10-03 13:50:56] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261735"} 
[2023-10-03 13:59:02] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 14:49:45] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 14:53:23] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261675"} 
[2023-10-03 14:59:45] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 15:07:33] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261474"} 
[2023-10-03 15:14:55] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261675"} 
[2023-10-03 15:26:45] publish.INFO: create_post.post_success {"wp_title":"Mike Gundy Names Alan Bowman Starter for Kansas State Game","wp_author_id":"20980","wp_post_id":261751} 
[2023-10-03 15:26:45] publish.INFO: create_post.body_valid {"wp_title":"Mike Gundy Names Alan Bowman Starter for Kansas State Game","wp_author_id":"20980","wp_post_id":261751} 
[2023-10-03 15:26:45] publish.INFO: create_post.after_publish {"post_id":261751,"remote_post_type":"create_post","discourse_post_id":"500847","discourse_topic_id":"19158","discourse_permalink":"https://forum.pistolsfiringblog.com/t/mike-gundy-names-alan-bowman-starter-for-kansas-state-game/19158"} 
[2023-10-03 15:26:46] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 15:26:46] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261751"} 
[2023-10-03 15:28:49] publish.INFO: create_post.post_success {"wp_title":"Video: Oklahoma State Players Preview Kansas State","wp_author_id":"20980","wp_post_id":261746} 
[2023-10-03 15:28:49] publish.INFO: create_post.body_valid {"wp_title":"Video: Oklahoma State Players Preview Kansas State","wp_author_id":"20980","wp_post_id":261746} 
[2023-10-03 15:28:49] publish.INFO: create_post.after_publish {"post_id":261746,"remote_post_type":"create_post","discourse_post_id":"500849","discourse_topic_id":"19159","discourse_permalink":"https://forum.pistolsfiringblog.com/t/video-oklahoma-state-players-preview-kansas-state/19159"} 
[2023-10-03 15:28:51] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 15:28:51] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261746"} 
[2023-10-03 16:09:44] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261728"} 
[2023-10-03 17:03:51] publish.INFO: update_post.post_success {"wp_title":"Mike Gundy Names Alan Bowman Starter for Kansas State Game","wp_author_id":"20980","wp_post_id":261751} 
[2023-10-03 17:03:51] publish.INFO: update_post.body_valid {"wp_title":"Mike Gundy Names Alan Bowman Starter for Kansas State Game","wp_author_id":"20980","wp_post_id":261751} 
[2023-10-03 17:03:51] publish.ERROR: featured_link.post_error {"wp_title":"Mike Gundy Names Alan Bowman Starter for Kansas State Game","wp_author_id":"20980","wp_post_id":261751,"response_message":"There was an error updating that topic.","http_code":422} 
[2023-10-03 17:03:54] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 17:03:54] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 17:10:34] publish.INFO: create_post.post_success {"wp_title":"Notebook: Cooper's Grind, Bowman on Presley's Involvement and Cameron Epps Just Getting Going","wp_author_id":"20980","wp_post_id":261754} 
[2023-10-03 17:10:34] publish.INFO: create_post.body_valid {"wp_title":"Notebook: Cooper's Grind, Bowman on Presley's Involvement and Cameron Epps Just Getting Going","wp_author_id":"20980","wp_post_id":261754} 
[2023-10-03 17:10:34] publish.INFO: create_post.after_publish {"post_id":261754,"remote_post_type":"create_post","discourse_post_id":"","discourse_topic_id":"19160","discourse_permalink":""} 
[2023-10-03 17:10:37] webhook_topic.ERROR: update_topic_content.response_body_error  
[2023-10-03 17:10:37] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261754"} 
[2023-10-03 17:10:42] publish.INFO: create_post.post_success {"wp_title":"Notebook: Cooper's Grind, Bowman on Presley's Involvement and Cameron Epps Just Getting Going","wp_author_id":"20980","wp_post_id":261754} 
[2023-10-03 17:10:42] publish.INFO: create_post.body_valid {"wp_title":"Notebook: Cooper's Grind, Bowman on Presley's Involvement and Cameron Epps Just Getting Going","wp_author_id":"20980","wp_post_id":261754} 
[2023-10-03 17:10:42] publish.INFO: create_post.after_publish {"post_id":261754,"remote_post_type":"create_post","discourse_post_id":"","discourse_topic_id":"19160","discourse_permalink":""} 
[2023-10-03 18:48:51] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261751"} 
[2023-10-03 18:52:25] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261751"} 
[2023-10-03 19:21:24] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"261735"} 
[2023-10-03 19:26:04] publish.INFO: create_post.post_success {"wp_title":"Hoops Notebook: Miranda's Goofiness, Hicklen's Degrees and Small's Distribution","wp_author_id":"20980","wp_post_id":261765} 
[2023-10-03 19:26:04] publish.INFO: create_post.body_valid {"wp_title":"Hoops Notebook: Miranda's Goofiness, Hicklen's Degrees and Small's Distribution","wp_author_id":"20980","wp_post_id":261765} 
[2023-10-03 19:26:04] publish.INFO: create_post.after_publish {"post_id":261765,"remote_post_type":"create_post","discourse_post_id":"500876","discourse_topic_id":"19161","discourse_permalink":"https://forum.pistolsfiringblog.com/t/hoops-notebook-mirandas-goofiness-hicklens-degrees-and-smalls-distribution/19161"}```

感谢您的报告,我会尽快查看并回复您。

@MiggityMac,您能否具体指出您共享的日志中哪些帖子在按计划发布到 Discourse 时失败?