jtbayly
15 באוגוסט, 2025, 7:03pm
1
I’m having trouble that I assume is related to these errors in the WP-Discourse log:
[2025-08-14 20:28:35] comment.ERROR: sync_comments.response_error {"message":"","discourse_topic_id":"2464","wp_post_id":20434,"http_code":""}
[2025-08-14 20:36:04] comment.ERROR: sync_comments.response_error {"message":"","discourse_topic_id":"727","wp_post_id":12097,"http_code":""}
But there is no message about why it failed to sync, so I’m not sure what to do to debug this.
I just left a comment myself and I see this in the log:
[2025-08-15 18:44:39] comment.INFO: sync_comments.success {"post_id":22491}
That post now shows correctly that there is one comment up at the top of the page in the meta-data.
However, at the bottom of the page it still says “Start the discussion at …” instead of “Join the discussion” even though there is a comment now.
Anybody have any suggestions?
I do have “Only Import Moderator-Liked” selected, but I believe that should only affect which comments are displayed, not the wording or the comment count, correct?
angus
(Angus McLeod)
18 באוגוסט, 2025, 7:39am
2
היי @jtbayly , תודה על הדיווח. אני מנסה להבין מה אתה רואה כבעיה כאן. הנה מה שנראה כמצב העניינים בהתבסס על מה שאמרת:
פרסום פוסטים מוורדפרס לדיסקרוס עובד כראוי.
הגדרת את ה-Webhook של סנכרון נתוני תגובות (האם זה נכון?).
הפעלת את האפשרות “ייבוא תגובות שאהבו מנהלים בלבד”.
אתה רואה שגיאות סנכרון תגובות בלוגים.
כשאתה מגיב לפוסט שפורסם מוורדפרס בדיסקרוס, אתה רואה את ספירת התגובות עולה, אך אינך רואה את הפוסט מופיע בוורדפרס.
אם תתעלם לרגע מהלוגים, תוכל להסביר מה אתה מצפה שיקרה וכיצד המצב הנוכחי סוטה מהציפיות שלך.
jtbayly
18 באוגוסט, 2025, 5:58pm
3
מצטער, כנראה סיבכתי את ההודעה האחרונה שלי עם פרטים.
באופן כללי, ספירת התגובות לא נראית עולה מ-0. אני לא באמת מציג שום תגובות ב-WP.
angus
(Angus McLeod)
19 באוגוסט, 2025, 7:47am
4
I see! Do you have the Sync Comment Data webhook setup?
You can use webhooks to sync data between Discourse and WordPress, and enrich your integration. Reply to this topic if you have questions about how to setup the webhooks, or how they work.
Setup
WP Discourse
First setup an endpoint in WP Discourse:
Navigate to WP Discourse > Webhooks in Wordpress admin.
Select the endpoint(s) you want to enable (see below).
Set a “Webhook Secret Key”, if it’s not already set.
Click “Save Options”.
Discourse
Then create a new Webhook in Discourse (Go to /admi…
jtbayly
19 באוגוסט, 2025, 1:42pm
5
כן, אני כן. והפעלתי את “יומני Webhook מפורטים” ב-WP-Discourse. באופן מעניין, מאז שהפעלתי אותם, לא היו לי כשלים ביומנים, אבל זה עדיין לא עובד. הנה הרשומה האחרונה:
[2025-08-19 00:01:11] comment.INFO: sync_comments.success {"post_id":30298}
עם זאת, קח את הפוסט הזה כדוגמה. פוסט 30298 ב-WP מכיל:
פורסם ל-Discourse באופן אוטומטי על ידי WP-Discourse, ובכך יצר נושא עבורו.
ב-Discourse, נוצר פוסט תחת אותו נושא.
נתוני התגובה נשלחו ל-WP מ-Discourse באמצעות Webhook, ו-WP-Discourse רשם שהוא התקבל בהצלחה.
בין אם מחובר לחשבון ובין אם לא, בין אם ניקה מטמון ובין אם לא, פוסט 30298 ב-WP מדווח על אפס תגובות.
מחשבות?
angus
(Angus McLeod)
21 באוגוסט, 2025, 8:31am
6
האם תוכל לקשר אותי לדוגמה של פוסט שבו הלוגים מציינים שהסנכרון של ההערות הצליח?
לייק 1
angus
(Angus McLeod)
3 בספטמבר, 2025, 8:49am
7
רק הערה ש-@jtbayly שיתף איתי דוגמה בח
לייק 1
jtbayly
3 בספטמבר, 2025, 6:02pm
8
תודה על עזרתך, @angus . אכן נראה ששינוי ההגדרות האלה פתר את הבעיה. אני מניח שהייתי מבולבל.
כך הנחתי שזה עובד:
תגובות שיובאו יוצגו תחת הפוסט ב-WP.
ספירת התגובות תכלול את כל התשובות לנושא ב-Discourse.
בחרתי בכך כי בסופו של דבר קיוויתי להגיע להצגת התגובות שאושרו על ידי המוד מתחת לפוסטים. אבל אני מניח שזה לא אפשרי יחד עם הצגת המספר הכולל של התשובות לנושא?
angus
(Angus McLeod)
15 בספטמבר, 2025, 10:55am
9
Hey @jtbayly , just to close the circle on this, it sounds like essentially what you want is both
a total count, e.g. “45 total replies”; and
selected replies appearing e.g. 3 mod-like replies,
to appear at once. That is indeed a custom setup that is not supported out of the box. But we could make a version of that work. To recap:
a total count, e.g. “45 total replies”
This will work out of the box, as discussed.
When you get to that stage, create a new topic in Support > WordPress and we can figure it out based on your needs then.
2 לייקים