다시 한번 감사합니다. 오늘의 로그 덤프를 첨부합니다. (오류가 줄었습니다.) 여전히 몇 가지 오류가 발생하는 이유에 대해 혹시 아시는 점이 있을까요?
[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
WordPress로 가져온 Discourse 댓글을 커스터마이징하는 방법에 대해 이 스레드 외에 다른 스레드가 있나요?:
Is there an easy way to style comments in Wordpress with the same CSS being used at the bottom of this post?
감사합니다
comment_formatter.ERROR: 문제도 동일한데, discourse의 댓글 기능도, ajax도 켜져 있지 않습니다. 그럼에도 불구하고 24시간 내내 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
angus
(Angus McLeod)
5월 2, 2022, 8:13오전
4
@gizadev 보고해 주셔서 감사합니다. 로깅 문제를 곧 해결할 예정입니다 (이번 주 최우선 과제입니다).
WP Discourse 가 문제의 원인일 가능성에 대해 몇 가지 의문이 듭니다. 말씀하신 문제는 다른 원인과도 부분적으로 관련이 있을 수 있어 보입니다.
과거에 해당 기능을 활성화했던 적이 있고, WordPress에 기존 Discourse 댓글이 있는 상태인가요?
가능하시다면, WP Discourse 로그를 비공개로 공유해 주실 수 있을까요.
angus
(Angus McLeod)
5월 2, 2022, 10:15오전
5
@haydenjames 이 건에 대해 후속 조치로, 로그를 확인해서 해당 경고가 다시 나타났는지 살펴봐 주실 수 있을까요?
다시 살펴보니 로깅은 정확해 보이지만, 에러가 아니라 경고로 표시되어야 하고, 추가 데이터(예: 원인이 된 게시물)도 필요합니다. 다만 테스트에서 모든 시나리오를 포착하고 있는지 확실하지 않습니다.
물론 로깅을 활성화할 수 있습니다. 결과를 보고드리겠습니다. 이후로 문제는 없었습니다. (제가 아는 한 말이에요, 하하)
그리고 제 다른 스레드도 한번 봐주실 수 있을까요? 일요일에 게시글을 올린 건 제 실수인 것 같습니다:
일요일을 축하합니다.
두 개의 포럼 주제가 관련은 있지만 병합할 정도로 유사하지 않은 경우, 이 두 주제를 연결할 수 있는 공식적이거나 권장되는 방법이 있나요?
각 주제 끝에 댓글을 달아 서로를 링크하는 방법 외에요.
주제가 분할되면, 방문자가 클릭하여 분할된 관련 주제를 따라갈 수 있는 공개된 흔적이 남는다는 것을 알고 있습니다. 기본적으로는 그와 유사하지만, 반대 방향을 찾고 있습니다. 즉, 병합할 정도로 유사하지는 않지만 연결/링크하면 유용한 두 개의 관련 주제 말입니다.
감사합니다!
이전에 비활성화했던 로그를 활성화하지 않고도 이것을 발견했습니다. 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일이었습니다.