# WP Discourse: can't access editor for post types created with Toolset Types plugin

**URL:** <https://meta.discourse.org/t/wp-discourse-cant-access-editor-for-post-types-created-with-toolset-types-plugin/105725>\
**Category:** WordPress\
**Created:** [January 4, 2019, 11:39pm UTC](https://meta.discourse.org/t/wp-discourse-cant-access-editor-for-post-types-created-with-toolset-types-plugin/105725 "2019-01-04T23:39:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![madrush](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/madrush/32/119502_2.png) [@madrush](https://meta.discourse.org/u/madrush)\
**Post date:** [January 5, 2019, 1:54am UTC](https://meta.discourse.org/t/wp-discourse-cant-access-editor-for-post-types-created-with-toolset-types-plugin/105725/3 "2019-01-05T01:54:15Z")

</div>

Hi Simon, Thanks for looking into this. We are using Toolset Types 3.2.4, which is the latest release of the premium version. I believe I can get you the files for troubleshooting, as well as our configuration. You have also just reminded me that Toolset Types has its own configuration option to force the Block or Classic editor or allow selection on a Per Post basis for its custom post types. I do not have the Classic Editor plugin installed, but Toolset provides the same functionality.

I had the Block editor selected for the post types displaying the conflict. Switching to Classic allows the editor to load. Switching to Per Post allows loading the editor when the Classic editor is selected on a post, but not when the Block editor is selected, which displays the error again.

Regarding the error, you’re right, here is the full output:

> ```
> TypeError: Cannot read property 'discourse_post_id' of undefined
> at DiscourseSidebar.componentDidUpdate (webpack-internal:///43:1199:61)
> at zc (https://metapsy.theoryofetest.wpengine.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:146:349)
> at wc (https://metapsy.theoryofetest.wpengine.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:138:272)
> at fa (https://metapsy.theoryofetest.wpengine.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:137:115)
> at gg (https://metapsy.theoryofetest.wpengine.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:135:196)
> at Ca (https://metapsy.theoryofetest.wpengine.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:133:365)
> at Object.enqueueSetState (https://metapsy.theoryofetest.wpengine.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.6.3:191:324)
> at DiscourseSidebar.q.setState (https://metapsy.theoryofetest.wpengine.com/wp-includes/js/dist/vendor/react.min.js?ver=16.6.3:20:304)
> at eval (webpack-internal:///43:924:25)
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-cant-access-editor-for-post-types-created-with-toolset-types-plugin/105725)._
