Appearance > Widgets goes blank with CPTUI activated
-
I went to edit one of my widgets, and noticed that the admin screen is blank – I can’t see any of my widgets. I have the latest versions of WordPress and CPTUI. If I deactivate CPTUI, my widgets show again.
-
Impossible for us to know without getting some sort of logged errors from you. We don’t have any specific or known issues with regards to the widget screen, and it may very well also depend on what post type or taxonomy slugs may be getting registered.
Errors could be coming from either the server and PHP logs, or it could also be some sort of javascript based error in a browser developer console.
Michael,
I have gone through the site, working with tech support at our web host to try everything and watch for any sort of clue as I repeatedly reloaded the Widgets admin page that has the missing UI. Thus far:
There are no console errors, so it does not appear to be a front-end UI issue.
There are no Apache, or PHP errors in those logs.
With the site in debug mode, no errors are appearing.
I tried switching to a core theme, and I deactivated every plugin but CPTUI, but the problem still persisted. As soon as I deactivated CPTUI, the widgets reappeared on my admin screen.
What do you advise as a next step in troubleshooting?
Probably my next question would be what content types are you registering, most specifically around the topic of the post type slugs.
You should be able to use the CPTUI > Tools menu item to get to a page with some tabs on them, and copy/paste the blob of content on the right hand side, for some quick backup of settings for both post types and taxonomies. Then you could do an import of this specific value:
{""}
to override the settings and remove just the CPTUI settings. YOU WON’T lose the content you’ve created thus far. Feel free to run a database backup anyway, if worried. It’ll just reset the CPTUI settings. The backed up settings can be re-imported later to restore things to where they were.The idea here is to reset CPTUI’s settings back to zero to see if the widgets screen works at that time, before any content types were created. If yes, then we know it’s potentially from one of the content types, and all that’s left is figuring out which one.
ALTERNATELY If you want to paste the post type/taxonomy blobs of content to me, I can try on a dev install and see if I can notice anything potentially peculiar or try and recreate myself.
I tried what you described, and the widgets admin reappeared.
So I reformatted the exported JSON and scanned through it visually. Lots of posts types, but not a lot of settings are set. My initial reaction: could using the name “Sidebar” for a post type be causing some kind of collision? If so, what’s the best way to remedy it? Doesn’t renaming a CPT end up copying everything? That will break some of my hardcoded inclusions of those in my template files.
The JSON dump:
{ "project_profiles": { "name": "project_profiles", "label": "Project Profiles", "singular_label": "Project Profile", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "project-profiles", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-welcome-widgets-menus", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "clients": { "name": "clients", "label": "Clients", "singular_label": "Client", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "true", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "clients", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-businessman", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "services": { "name": "services", "label": "Services", "singular_label": "Service", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "services", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-admin-tools", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "solutions": { "name": "solutions", "label": "Solutions", "singular_label": "Solution", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "solutions", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-admin-generic", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "testimonials": { "name": "testimonials", "label": "Testimonials", "singular_label": "Testimonial", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "true", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "testimonials", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-format-quote", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "presentations": { "name": "presentations", "label": "Presentations", "singular_label": "Presentation", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "presentations", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-analytics", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "partners": { "name": "partners", "label": "Partners", "singular_label": "Partner", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "industry-partners-technology", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-groups", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "events": { "name": "events", "label": "Events", "singular_label": "Event", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "events", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-calendar-alt", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "conversations": { "name": "conversations", "label": "Conversations", "singular_label": "Conversation", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "conversations", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-format-chat", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "du_solutions": { "name": "du_solutions", "label": "DU Solutions", "singular_label": "DU Solution", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "digital-utility", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-dashboard", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "authors": { "name": "authors", "label": "Authors", "singular_label": "Author", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "authors", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-edit", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "ebooks": { "name": "ebooks", "label": "eBooks", "singular_label": "eBook", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "ebooks", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-book-alt", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "leaders": { "name": "leaders", "label": "Leaders", "singular_label": "Leader", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "udc-leadership", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-id-alt", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "news": { "name": "news", "label": "News Items", "singular_label": "News Item", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "news", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-media-document", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "sidebars": { "name": "sidebars", "label": "Sidebars", "singular_label": "Sidebar", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "true", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-index-card", "register_meta_box_cb": null, "supports": [ "title", "editor" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_trashed": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" }, "industries": { "name": "industries", "label": "Industries", "singular_label": "Industry", "description": "", "public": "true", "publicly_queryable": "true", "show_ui": "true", "show_in_nav_menus": "true", "delete_with_user": "false", "show_in_rest": "true", "rest_base": "", "rest_controller_class": "", "rest_namespace": "", "has_archive": "false", "has_archive_string": "", "exclude_from_search": "false", "capability_type": "post", "hierarchical": "false", "can_export": "false", "rewrite": "true", "rewrite_slug": "industries", "rewrite_withfront": "true", "query_var": "true", "query_var_slug": "", "menu_position": "", "show_in_menu": "true", "show_in_menu_string": "", "menu_icon": "dashicons-list-view", "register_meta_box_cb": null, "supports": [ "title", "editor", "thumbnail", "excerpt", "revisions" ], "taxonomies": [], "labels": { "menu_name": "", "all_items": "", "add_new": "", "add_new_item": "", "edit_item": "", "new_item": "", "view_item": "", "view_items": "", "search_items": "", "not_found": "", "not_found_in_trash": "", "parent_item_colon": "", "featured_image": "", "set_featured_image": "", "remove_featured_image": "", "use_featured_image": "", "archives": "", "insert_into_item": "", "uploaded_to_this_item": "", "filter_items_list": "", "items_list_navigation": "", "items_list": "", "attributes": "", "name_admin_bar": "", "item_published": "", "item_published_privately": "", "item_reverted_to_draft": "", "item_trashed": "", "item_scheduled": "", "item_updated": "" }, "custom_supports": "", "enter_title_here": "" } }
Definitely appears to be the “sidebars” post type. Once I imported everything, I confirmed that the widget page broke and never showed anything.
Once I deleted just the “sidebars” post type, it worked again.
This is one that I’m going to want to add to the reserved slugs list, to be honest, as I’d prefer not to have people encountering this going forward.
Doesn’t renaming a CPT end up copying everything? That will break some of my hardcoded inclusions of those in my template files.
Renaming a post type only duplicates the settings, with the new slug. However, you’d want to make sure to check the “Migrate posts to newly renamed post type?” option as well to have the posts in the post type automatically update to the new slug. That said as well, yes, you’d need to modify your templates to refer to the new slug. Hopefully there’s not too many places.
I followed your suggestion, and it was an easy fix. +1 on adding that to the reserved slug list.
Awesome to hear.
Let us know if you need anything else.
- The topic ‘Appearance > Widgets goes blank with CPTUI activated’ is closed to new replies.