再次感谢。这是今天的日志转储。(错误更少)。您知道为什么仍然存在一些错误吗?
[2022-04-18 01:37:57] comment.INFO: sync_comments.success {"post_id":9305}
[2022-04-18 02:27:47] comment.INFO: sync_comments.success {"post_id":9305}
[2022-04-18 02:39:16] comment.INFO: sync_comments.success {"post_id":9305}
[2022-04-18 02:39:17] comment.INFO: sync_comments.success {"post_id":14775}
[2022-04-18 05:57:20] comment.INFO: sync_comments.success {"post_id":9305}
[2022-04-18 07:20:20] comment.INFO: sync_comments.success {"post_id":9305}
[2022-04-18 08:10:57] comment.INFO: sync_comments.success {"post_id":9305}
[2022-04-18 11:00:41] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-18 11:04:45] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-18 11:06:40] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-18 11:15:22] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-18 11:42:45] comment.INFO: sync_comments.success {"post_id":9305}
[2022-04-18 11:45:47] comment.INFO: sync_comments.success {"post_id":14785}
[2022-04-18 11:45:48] comment.INFO: sync_comments.success {"post_id":14775}
[2022-04-18 11:57:11] publish.INFO: update_post.post_success {"wp_title":"Webpc: Personal cloud desktop in your browser","wp_author_id":"34","wp_post_id":14785,"discourse_post_id":"555"}
[2022-04-18 11:57:11] publish.INFO: update_post.body_valid {"wp_title":"Webpc: Personal cloud desktop in your browser","wp_author_id":"34","wp_post_id":14785,"discourse_post_id":"555"}
[2022-04-18 11:57:12] publish.INFO: featured_link.post_success {"wp_title":"Webpc: Personal cloud desktop in your browser","wp_author_id":"34","wp_post_id":14785,"discourse_post_id":"555"}
[2022-04-18 11:57:12] comment.INFO: sync_comments.success {"post_id":14785}
[2022-04-18 11:57:12] comment.INFO: sync_comments.success {"post_id":14775}
[2022-04-18 12:05:24] comment.INFO: sync_comments.success {"post_id":9305}
[2022-04-18 12:08:39] comment.INFO: sync_comments.success {"post_id":14785}
[2022-04-18 12:11:51] connection.INFO: check_connection_status.successful_connection
关于将 Discourse 评论导入 WordPress 的自定义,除了这个帖子之外,还有其他帖子吗?
谢谢
1 个赞
angus
(Angus McLeod)
拆分了此话题
2
我遇到了与 comment_formatter.ERROR: 相同的问题,并且甚至没有启用 discourse 的评论,也没有启用 ajax。它每 2 秒就会记录一次日志,全天候运行。与此同时,大量的慢速 PHP 进程和一个会阻止一切的 FLOCK,反复导致网站崩溃。
script_filename = /www/index.php
[0x00007fa5ef613c90] flock() /www/wp-content/plugins/wp-discourse/vendor_namespaced/monolog/monolog/src/Monolog/Handler/StreamHandler.php:106
[0x00007fa5ef613c00] write() /www/wp-content/plugins/wp-discourse/lib/logs/handlers/file-handler.php:167
[0x00007fa5ef613b50] write() /www/wp-content/plugins/wp-discourse/vendor_namespaced/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:34
[0x00007fa5ef613ad0] handle() /www/wp-content/plugins/wp-discourse/vendor_namespaced/monolog/monolog/src/Monolog/Logger.php:283
[0x00007fa5ef6139b0] addRecord() /www/wp-content/plugins/wp-discourse/vendor_namespaced/monolog/monolog/src/Monolog/Logger.php:614
[0x00007fa5ef613930] error() /www/wp-content/plugins/wp-discourse/lib/discourse-comment-formatter.php:62
[0x00007fa5ef613670] format() /www/wp-content/plugins/wp-discourse/lib/discourse-comment.php:310
2 个赞
angus
(Angus McLeod)
4
@gizadev 感谢您的报告。我们很快就会处理日志记录问题(这是我本周的首要任务)。
请注意,我对 WP Discourse 是您问题的根源表示怀疑,因为听起来您的问题至少部分与其他来源有关。
您以前启用过它们吗?您的 WordPress 中有现有的 Discourse 评论吗?
如果可能,能否请您私下与我分享您的 WP Discourse 日志。
1 个赞
angus
(Angus McLeod)
5
@haydenjames 只是跟进一下,您能否检查一下日志,看看那个警告是否再次出现?
现在再看一遍,日志记录似乎是准确的,尽管它应该是一个警告而不是一个错误,并且它需要额外的数据(例如导致它的帖子),但我不太确定我是否在测试中捕获了所有场景。
1 个赞
当然,我可以启用日志记录。我会及时汇报。自从上次以来我没有遇到任何问题。(据我所知,哈哈)
另外,您能否看看我的另一个帖子,可能是我周日发帖不妥:
2 个赞
在未启用我之前禁用的日志的情况下,我发现了这些。仅在 4 月 30 日出现:
[2022-04-30 17:17:01] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-30 17:20:01] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-30 17:20:18] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-30 17:20:47] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-30 17:28:06] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-30 17:29:11] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-30 17:29:41] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
[2022-04-30 17:38:09] comment_formatter.ERROR: format.missing_post_data {"keys":"discourse_comments_raw"}
在此之前,日志文件上次写入是在 19 日,就在禁用之前。
2 个赞