WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.46k stars 4.18k forks source link

Uncaught (in promise) Error with many taxonomies registered to custom post type #31208

Closed desrosj closed 2 years ago

desrosj commented 3 years ago

Description

This report has been copied over from Trac-52952.

I get a "Uncaught (in promise) Error: The entity being edited (postType, undefined) does not have a loaded config." error message when trying to edit a custom post type with lots of taxonomies registered. When the number of registered taxonomies reaches 67, the error is triggered. At less than 67, the error is not present.

Taxonomies and CPT were registered with Custom Post Type UI, but the error is still there if I switch to registering via code.

This error is present with latest version of WP (5.7) with the twentytwentyone theme. Using the Classic editor does not trigger the error, even with more than 67 taxonomies.

Screenshots or screen recording (optional)

Screen Shot 2021-03-31 at 12 33 53 PM

WordPress information

kathrynwp commented 2 years ago

Hi @dsutoyo Would you be able to confirm if this issue is still occurring in the latest version of WordPress, with the latest version of Gutenberg active or inactive?

Also, would you be able to answer the question from the Trac ticket that @desrosj had asked last year:

One question you could answer that would be helpful is whether there were any other plugins active, or if you were able to reproduce the behavior on a fresh install with no active plugins.

Thanks for your help!

dsutoyo commented 2 years ago

@kathrynwp thanks for following up. I believe we can close this one. The issue was caused by me using a reserved word for a CPT.