I am using the latest WordPress version together with latest wordpress plugin. Upon posting automagically from WP into Discourse, I get this error:
A post has failed to publish on Discourse from your site [netzwissen.de]. The post '@netzwissen.de Migration erledigt' was published on WordPress by autor01, on 2024-01-01 13:34:14. [<https://www.netzwissen.de/2024/01/01/netzwissen-de-migration-erledigt/>](https://www.netzwissen.de/2024/01/01/netzwissen-de-migration-erledigt/)
Reason for failure: A 422 response code was returned from Discourse. Embed url wird bereits verwendet If you're having trouble with the WP Discourse plugin, you can find help at: [<https://meta.discourse.org/c/support/wordpress>](https://meta.discourse.org/c/support/wordpress)
Despite this error, the post appears in Discourse, but with some empty <div> ...</div> blocks which come from the Divi theme framework in WordPress (Divi — The Ultimate WordPress Theme & Visual Page Builder). Shouldn’t such html/css code be removed automatically processing into the bbcode/md scheme at Discourse?
Hey Thomas, my initial thought is that the error is occurring because the post is being sent to Discourse twice and the HTML issue is separate. Let’s start with the double-publishing issue. Could you confirm a few things for me:
Where are you seeing this error? In the Logs Viewer in the WP Discourse plugin?
Do you see this on all posts being published to Discourse or only some?
Are you scheduling the posts?
Which Wordpress composer are you using to compose the posts (classic or gutenberg)?
Are you using any other theme or plugin or customisation that affects the way you post in Wordpress?
Hi Angus, first a “happy new year” to Scotland (I assume)
its an error mail coming from the WP CMS, so its created from the WP plugin code and sent through the CMS framework.
all posts so far
No. But I edited the post on WP and saved it as draft before publishing it finally. So, theoretically, the “publish” including the “publish to Discourse API” should only appear once …
I use the Divi theme and in-build composer from
Havent’t tested with Gutenberg or the classic one yet.
Could you head over to the Logs view in WP Discourse, click “Download” and PM me the downloaded file? That’ll help me get a better understanding of your environment, settings and the error. Thanks!
Happy new year as well! (I’m only Australian unfortunately, much less interesting )
Hey! I have the exact same problem atm and can’t solve it by my own. Everytime I publish an article, it doesn’t connect it with the discourse topic. Same error code as above. Would love to hear if you found a solution.
Do you also have the ActivityPub plugin enabled? If so, it is not yet compatible with embedded topics created by the WP Discourse plugin (which was the issue in this topic).
I still have massive problems with the WP-DIscourse plugin when using it with a current WP installation in combination with the Divi Theme/Divi composer from https://www.elegantthemes.com
422 error when posting new blog entries in WP, as described above.
no “clean” MD content in the posting created by the plugin through the discourse API
I disabled the WP-DIscourse plugin 2.5.2 for now as it is not yet usable for my use cases. NOTE: I believe now that my original headline was wrong/misleading. This is a WP >> Discourse issue, it has nothing to do with the ActivityPub plugin in WP (ActivityPub – WordPress-Plugin | WordPress.org Deutsch) and even less with @angus ActivityPub plugin installed inside the Discourse instance.