Cannot edit posts/pages with WP-Discourse enabled

When I try to edit a post or page on my site, I get this error:

When I click “Attempt Recover” it doesn’t do anything. When I click copy error, here is what it shows:

TypeError: Cannot read property 'split' of undefined
at DiscourseSidebar.buildPostState (
at DiscourseSidebar.initializePostState (
at new DiscourseSidebar (
at Ag (
at Vg (
at ph (
at lh (
at O (
at ze (

I’ve run troubleshooting so if I disable all other plugins/themes except for WP-Discourse, it’s still broken. If I enable all other plugins/themes except for WP-Discourse, then the site works fine.

I’m running the latest versions of both Wordpress and WP-Discourse.

Any ideas?

Thanks for reporting this Tim, and apologies for the delay in responding to you.

I’ve submitted a PR to the plugin repo that addresses it. When this is merged the plugin should work for you.

Let me know how that goes.