# "There has been an error publishing this post to Discourse."

**URL:** <https://meta.discourse.org/t/there-has-been-an-error-publishing-this-post-to-discourse/76844>\
**Category:** WordPress\
**Created:** [27 Dicembre 2017, 9:48pm UTC](https://meta.discourse.org/t/there-has-been-an-error-publishing-this-post-to-discourse/76844 "2017-12-27T21:48:16Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [4 Gennaio 2018, 8:36pm UTC](https://meta.discourse.org/t/there-has-been-an-error-publishing-this-post-to-discourse/76844/16 "2018-01-04T20:36:09Z")

</div>

Could you try disabling the Sync Comment Data option on the Webhooks tab and see if that makes a difference? There are a couple of things that could be going wrong with updating the comments with a webhook.

When the webhook is not enabled, comments are cached for 10 minutes. For testing purposes, you can change that time period in your theme’s `functions.php` file with some code like this:

```php
add_filter( 'wpdc_comment_sync_period', 'wpdc_custom_comment_sync_period' );
function wpdc_custom_comment_sync_period() {

    return 0;
}

```

> [@gerald](#):
>
> \*btw - when enabling “ajax” comments, it overrides the “old commend system” setting so that old comments are always hidden if using ajax

Thanks for the feedback on that. Loading comments with javascript is an undocumented feature at this point. I’m going to make a few changes to it later this week.

---

_[View the full topic](https://meta.discourse.org/t/there-has-been-an-error-publishing-this-post-to-discourse/76844)._
