# WP-Discourse Plugin Preventing Post Editing

**URL:** <https://meta.discourse.org/t/wp-discourse-plugin-preventing-post-editing/115889>\
**Category:** WordPress\
**Created:** [April 24, 2019, 7:05pm UTC](https://meta.discourse.org/t/wp-discourse-plugin-preventing-post-editing/115889 "2019-04-24T19:05:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![PTKen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ptken/32/139213_2.png) [@PTKen](https://meta.discourse.org/u/PTKen)\
**Post date:** [April 24, 2019, 7:05pm UTC](https://meta.discourse.org/t/wp-discourse-plugin-preventing-post-editing/115889/1 "2019-04-24T19:05:02Z")

</div>

Hello. I am recently getting an error from the WP-Discourse plugin that is preventing me from editing a blog post. I was recently upgraded to WP5 and also updated my DIVI theme. I suspect this has something to do with the error, but I’m not sure how to fix it.

My Discourse forum is hosted on Digital Ocean. I use the plugin so my users can share their same login from my WP site.

When I disable the plugin I do not get the error, but I cannot leave it disabled for obvious reasons. The error I get is (URL blocked out):

> TypeError: Cannot read property ‘indexOf’ of null  
> at DiscourseSidebar.isAllowedPostType (webpack-internal:///43:977:51)  
> at DiscourseSidebar.updateStateFromDatabase (webpack-internal:///43:937:22)  
> at new DiscourseSidebar (webpack-internal:///43:903:17)  
> at zf ([https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:69:258](https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:69:258))  
> at Mf ([https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:87:4](https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:87:4))  
> at ph ([https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:98:474](https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:98:474))  
> at eg ([https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:125:307](https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:125:307))  
> at fg ([https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:126:168](https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:126:168))  
> at wc ([https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:138:237](https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:138:237))  
> at fa ([https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:137:115](https://XXXXX.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:137:115))

I am also including a screenshot of what I see when I try to open a blog post in my editor. I never get to the post in order to edit it.

 ![07%20PM](https://global.discourse-cdn.com/meta/original/3X/4/1/4152e4ceb98bef68cbb59ca850c6bcd14bf5d8ba.png)

Thank you for any help you can offer!

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-plugin-preventing-post-editing/115889)._
