Title: Can&#8217;t create CPT posts with plugin activated
Last modified: April 4, 2019

---

# Can’t create CPT posts with plugin activated

 *  Resolved [manutecon2](https://wordpress.org/support/users/manutecon2/)
 * (@manutecon2)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/)
 * Hi, I’ve just installed this plugin for testing. When I try to add a new CustomPostType
   post and the plugin is activated I get this error:
 * Wordpress version is 5.1.1.
 * Steps to get the error.
    – Install and activate Custom Post Type UI and Oasis
   Workflow. – Create post type. – Check new post type in Oasis Workflow Settings.–
   Try to create new CPT post.
 * The editor has encountered an unexpected error. Attempt Recovery Copy Post Text
   Copy Error
 * Checking the console I get:
    TypeError: Cannot read property ‘_oasis_is_in_workflow’
   of undefined at OasisWorkflowProComponent.componentDidMount (ow-sidebar.js?cf87:
   114) at zc (react-dom.min.js?ver=16.6.3:146) at wc (react-dom.min.js?ver=16.6.3:
   138) at fa (react-dom.min.js?ver=16.6.3:137) at gg (react-dom.min.js?ver=16.6.3:
   135) at Ca (react-dom.min.js?ver=16.6.3:133) at Object.enqueueSetState (react-
   dom.min.js?ver=16.6.3:191) at r.q.setState (react.min.js?ver=16.6.3:20) at r.
   value (data.min.js?ver=4.2.1:1) at data.min.js?ver=4.2.1:1
 * I don’t see anywhere how to solve this problem.
    Anyone else has this problem?
 * Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [nuggetsol](https://wordpress.org/support/users/nuggetsol/)
 * (@nuggetsol)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11391822)
 * Hi [@manutecon2](https://wordpress.org/support/users/manutecon2/),
 * It’s not an issue with Oasis Workflow per se. Here’s what you need to do..
 * Make sure your custom post types and taxonomies have the “show in rest” option
   set to true. Essentially, go back to the definition of the custom post type, 
   change the “show in rest” to true and save it. If it’s already true, still save
   it again and this will fix the issue.
 * Here’s the thread on CPT plugin page – [https://wordpress.org/support/topic/wordpress-5-0-and-gutenberg-compatibility/](https://wordpress.org/support/topic/wordpress-5-0-and-gutenberg-compatibility/)
 * In any case, I guess, we should handle this error gracefully and display some
   kind of error message, so the user can make this change. We will take that as
   an action item.
 *  Thread Starter [manutecon2](https://wordpress.org/support/users/manutecon2/)
 * (@manutecon2)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11392442)
 * Hi [@nuggetsol](https://wordpress.org/support/users/nuggetsol/),
 * thanks for your reply. I’m afraid that it’s still not working. I still get this
   error after saving CPT config and “Show in rest API” set to true. If i disable
   Oasis Workflow plugin the problem disappears.
 *  Plugin Author [nuggetsol](https://wordpress.org/support/users/nuggetsol/)
 * (@nuggetsol)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11392478)
 * Do one thing.
 * 1. Update the CPT config again with “Show in rest API” as false. Save it.
    and
   then again 2. Update the CPT config with “Show in rest API” as true.
 * See if this solves the issue.
 *  Thread Starter [manutecon2](https://wordpress.org/support/users/manutecon2/)
 * (@manutecon2)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11392573)
 * Nop, same issue. But if I set it as false it works well with the old editor.
 *  Plugin Author [nuggetsol](https://wordpress.org/support/users/nuggetsol/)
 * (@nuggetsol)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11392610)
 * Ah ha. Found the issue.
 * Along with “Show in rest API” as true, go to the section called “Supports”. And
   in that section, check “Custom Fields”. So, essentially, allow this post type
   to support custom fields.
 * That should do it.
 *  Plugin Author [nuggetsol](https://wordpress.org/support/users/nuggetsol/)
 * (@nuggetsol)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11393330)
 * Did you get a chance to try out the above suggestion?
 *  Thread Starter [manutecon2](https://wordpress.org/support/users/manutecon2/)
 * (@manutecon2)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11394662)
 * [@nuggetsol](https://wordpress.org/support/users/nuggetsol/) thank you so much!
   Now it works!
 *  Plugin Author [nuggetsol](https://wordpress.org/support/users/nuggetsol/)
 * (@nuggetsol)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11396923)
 * Cool. I’ll go ahead and close this issue.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Can’t create CPT posts with plugin activated’ is closed to new replies.

 * ![](https://ps.w.org/oasis-workflow/assets/icon-256x256.png?rev=1890301)
 * [Oasis Workflow](https://wordpress.org/plugins/oasis-workflow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/oasis-workflow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/oasis-workflow/)
 * [Active Topics](https://wordpress.org/support/plugin/oasis-workflow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oasis-workflow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oasis-workflow/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [nuggetsol](https://wordpress.org/support/users/nuggetsol/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/cant-create-cpt-posts-with-plugin-activated/#post-11396923)
 * Status: resolved