Title: CPT &amp; Gutenberg Javascript error
Last modified: August 5, 2019

---

# CPT & Gutenberg Javascript error

 *  Resolved [Michele](https://wordpress.org/support/users/msustudio/)
 * (@msustudio)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/cpt-gutenberg-javascript-error/)
 * Custom post types that are Gutenberg enabled crash due to this javascript error.
   Plugin has to be inactive in order to edit these post types. Please advise on
   how to fix this issue. Or are there changes to be expected to that latest version
   to fix this?
 * TypeError: Cannot read property ‘ngg_post_thumbnail’ of undefined
    at /wp-content/
   plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_block/static/
   build/post-thumbnail.min.js?ver=3.2.10:1:13830 at n (/wp-includes/js/dist/data.
   min.js?ver=4.4.0:1:15092) at new r (/wp-includes/js/dist/data.min.js?ver=4.4.0:
   1:15359) at Yf (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:67:42)
   at qg (/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:92:302) at hi (/
   wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:104:285) at Qg (/wp-includes/
   js/dist/vendor/react-dom.min.js?ver=16.8.4:144:217) at Rg (/wp-includes/js/dist/
   vendor/react-dom.min.js?ver=16.8.4:145:76) at Sc (/wp-includes/js/dist/vendor/
   react-dom.min.js?ver=16.8.4:158:109) at Z (/wp-includes/js/dist/vendor/react-
   dom.min.js?ver=16.8.4:156:492)
    -  This topic was modified 6 years, 9 months ago by [Michele](https://wordpress.org/support/users/msustudio/).

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

 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/cpt-gutenberg-javascript-error/#post-11805675)
 * Hi [@msustudio](https://wordpress.org/support/users/msustudio/)
 * We are happy to help.
    Let’s try to isolate the problem and check is the problem
   is only when NextGen Gallery is active.
 * 1.- Temporarily deactivate **all your plugins** except NextGen Gallery.
 * 2.- Is the problem solved? Then, it was caused by one of your plugins. Please
   check one by one and find the one causing the problem.
 * 3.- If the problem is not solved with the deactivation of the plugins, try changing
   to a standard WordPress theme, it could be a conflict with your current theme.
 * Please let us know how it goes.
 *  Thread Starter [Michele](https://wordpress.org/support/users/msustudio/)
 * (@msustudio)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/cpt-gutenberg-javascript-error/#post-11806044)
 * I deactivated all plugins and changed the theme to twentynineteen. Gutenberg 
   Custom Post Types still does not work with the NextGen Gallery.
 *  [callerpatty](https://wordpress.org/support/users/callerpatty/)
 * (@callerpatty)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/cpt-gutenberg-javascript-error/#post-11808759)
 * Hi
    I am also having this issue. I’ve reached out to my theme developer, and 
   their response:
 * “NextGen ought to work with any custom post type out of the box. I recommend 
   reporting this to NextGen to ask them if there is a bug and if they say that 
   our plugin is causing the issue then we will look into it.”
 * I’ve gone through the usual deactivate routine, and only when Nextgen is deactivated
   can I edit the theme’s custom posts
 * Is there something I can tell them to look at? Our site is Gutenburg-enabled 
   and the theme is using some custom post types to serve up information.
 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/cpt-gutenberg-javascript-error/#post-11810613)
 * Thank you [@msustudio](https://wordpress.org/support/users/msustudio/),
 * We need to take some notes and escalate this conflict with CPT to our developers
   
   We may need to deactivate plugins and switch the theme while troubleshooting 
   temporarily. Would you feel OK with that?. If so, please report this issue as
   a bug using this form: [https://www.imagely.com/report-bug/](https://www.imagely.com/report-bug/).
   Be as specific as possible and let them know Gaby referred you.
 * Note: do not forget to include this forum’s link.
    Many thanks!
 * [@callerpatty](https://wordpress.org/support/users/callerpatty/), thank you for
   sharing.
    We do ask if possible have individual threads for each case, sometimes
   it’s not the same problem due to the different combinations of plugins and themes
   available in WordPress.

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

The topic ‘CPT & Gutenberg Javascript error’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 4 replies
 * 3 participants
 * Last reply from: [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/cpt-gutenberg-javascript-error/#post-11810613)
 * Status: resolved