Custom post not working as expected
-
I created two content types, one is for paintings (images), the other is one for photos (photos). I created two taxonomies to sort the post types by subject matter. I exported the content types as templates to then import the data via a csv file from a Drupal site. Now, I can see it all on the front end, but the back end is not working correctly. For the images CPT, I can not add new posts, or edit the taxonomy terms for existing images without getting this “The editor has encountered an unexpected error.”, and two choices “copy post text” and “copy error”. The error is:
e/ce/<@https://wp-kendalbrown.com/wp-includes/js/dist/components.min.js?ver=36b97398bf090476214e:34:460446
ce@https://wp-kendalbrown.com/wp-includes/js/dist/components.min.js?ver=36b97398bf090476214e:34:460425
e@https://wp-kendalbrown.com/wp-includes/js/dist/components.min.js?ver=36b97398bf090476214e:34:461842
hu@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:60308
_o@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:74386
xi@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:120464
bs@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:108751
vs@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:108679
gs@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:108540
as@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:105347
is@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:105736
Hl@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:46663
551/rs/<@https://wp-kendalbrown.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:103288I have disabled all the plugins, and switched the theme to Twenty Twenty-Four, but still the error occurs. I also added the content types to a different installation with the same results. The backend does not work correctly. If I go to the taxonomy, it shows the number of posts by their term as designed, and clicking on the number takes me to the post admin, but shows no entries by term. I installed the Classic Editor, and I can now add and edit the custom posts. How could I get back to the way WordPress is designed to work with Gutenberg? Unfortuantely this is on my local machine, so I can’t get access for you.
Here is some other debug info:
### Begin Custom Post Type UI Debug Info ###
Multisite: No
SITE_URL: https://wp-kendalbrown.com
HOME_URL: https://wp-kendalbrown.com
WordPress Version: 6.6.1
Permalink Structure: /%postname%/
Active Theme: bootScore Child 5.2.0.0
Registered Post Types: post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block, wp_template, wp_template_part, wp_global_styles, wp_navigation, wp_font_family, wp_font_face, wpcode, wpcf7_contact_form, image, photo
PHP Version: 8.1.29
MySQL Version: 8.0.39
Web Server Info: Apache/2.4.52 (Ubuntu)
Show On Front: page
Page On Front: Home (#457)
Page For Posts: (#0)
WordPress Memory Limit: 40MB
TOTAL PLUGINS: 12
ACTIVE PLUGINS: (10)
A2 Optimized WP: 3.0.9
All in One SEO: 4.6.9.1
bs Contact Form 7: 5.3.3
bs Cookie Settings: 5.6.1
Classic Editor: 1.6.4
Contact Form 7: 5.9.8
Custom Post Type UI: 1.17.1
Honeypot for Contact Form 7: 2.1.4
WPCode Lite: 2.2.1
WP Import Export Lite: 3.9.27
INACTIVE PLUGINS: (2)
Akismet Anti-spam: Spam Protection: 5.3.3
W3 Total Cache: 2.7.5
Post Types:
{"image":{"name":"image","label":"images","singular_label":"image","description":"a post type for images","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":"true","has_archive_string":"","exclude_from_search":"true","capability_type":"post","hierarchical":"false","can_export":"true","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":null,"register_meta_box_cb":null,"supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","revisions","author","page-attributes","post-formats"],"taxonomies":["images"],"labels":{"menu_name":"My images","all_items":"All images","add_new":"Add new","add_new_item":"Add new image","edit_item":"Edit image","new_item":"New image","view_item":"View image","view_items":"View images","search_items":"Search images","not_found":"No images found","not_found_in_trash":"No images found in trash","parent":"Parent image:","featured_image":"Featured image for this image","set_featured_image":"Set featured image for this image","remove_featured_image":"Remove featured image for this image","use_featured_image":"Use as featured image for this image","archives":"image archives","insert_into_item":"Insert into image","uploaded_to_this_item":"Upload to this image","filter_items_list":"Filter images list","items_list_navigation":"images list navigation","items_list":"images list","attributes":"images attributes","name_admin_bar":"image","item_published":"image published","item_published_privately":"image published privately.","item_reverted_to_draft":"image reverted to draft.","item_trashed":"image trashed.","item_scheduled":"image scheduled","item_updated":"image updated.","parent_item_colon":"Parent image:"},"custom_supports":"","enter_title_here":"Add image"}, "photo":{"name":"photo","label":"photos","singular_label":"photo","description":"a post type for photos","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"photos","rest_controller_class":"","rest_namespace":"","has_archive":"true","has_archive_string":"photos","exclude_from_search":"false","capability_type":"post","hierarchical":"false","can_export":"true","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":null,"register_meta_box_cb":null,"supports":["title","editor","thumbnail","excerpt","custom-fields","author","page-attributes","post-formats"],"taxonomies":["photo"],"labels":{"menu_name":"My photos","all_items":"All photos","add_new":"Add new","add_new_item":"Add new photo","edit_item":"Edit photo","new_item":"New photo","view_item":"View photo","view_items":"View photos","search_items":"Search photos","not_found":"No photos found","not_found_in_trash":"No photos found in trash","parent":"Parent photo:","featured_image":"Featured image for this photo","set_featured_image":"Set featured image for this photo","remove_featured_image":"Remove featured image for this photo","use_featured_image":"Use as featured image for this photo","archives":"photo archives","insert_into_item":"Insert into photo","uploaded_to_this_item":"Upload to this photo","filter_items_list":"Filter photos list","items_list_navigation":"photos list navigation","items_list":"photos list","attributes":"photos attributes","name_admin_bar":"photo","item_published":"photo published","item_published_privately":"photo published privately.","item_reverted_to_draft":"photo reverted to draft.","item_trashed":"photo trashed.","item_scheduled":"photo scheduled","item_updated":"photo updated.","parent_item_colon":"Parent photo:"},"custom_supports":"","enter_title_here":"Add photo"}}}
Taxonomies:
{"images":{"name":"images","label":"images","singular_label":"image","description":"a post type for images","public":"true","publicly_queryable":"true","hierarchical":"false","show_ui":"true","show_in_menu":"true","show_in_nav_menus":"true","query_var":"true","query_var_slug":"images","rewrite":"true","rewrite_slug":"","rewrite_withfront":"1","rewrite_hierarchical":"0","show_admin_column":"false","show_in_rest":"true","show_tagcloud":"false","sort":"false","show_in_quick_edit":"","rest_base":"images","rest_controller_class":"","rest_namespace":"","labels":{"menu_name":"images","all_items":"All images","edit_item":"Edit image","view_item":"View image","update_item":"Update image name","add_new_item":"Add new image","new_item_name":"New image name","parent_item":"Parent image","parent_item_colon":"Parent image:","search_items":"Search images","popular_items":"Popular images","separate_items_with_commas":"Separate images with commas","add_or_remove_items":"Add or remove images","choose_from_most_used":"Choose from the most used images","not_found":"No images found","no_terms":"No images","items_list_navigation":"images list navigation","items_list":"images list","back_to_items":"Back to images","name_field_description":"The name is how it appears on your site.","parent_field_description":"Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.","slug_field_description":"The slug is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.","desc_field_description":"The description is not prominent by default; however, some themes may show it."},"meta_box_cb":"","default_term":"","object_types":["image"]},"photo":{"name":"photo","label":"photos","singular_label":"photo","description":"a catalog for photos","public":"true","publicly_queryable":"true","hierarchical":"false","show_ui":"true","show_in_menu":"true","show_in_nav_menus":"true","query_var":"true","query_var_slug":"","rewrite":"true","rewrite_slug":"","rewrite_withfront":"1","rewrite_hierarchical":"0","show_admin_column":"false","show_in_rest":"true","show_tagcloud":"false","sort":"false","show_in_quick_edit":"","rest_base":"photo","rest_controller_class":"","rest_namespace":"","labels":{"menu_name":"photos","all_items":"All photos","edit_item":"Edit photo","view_item":"View photo","update_item":"Update photo name","add_new_item":"Add new photo","new_item_name":"New photo name","parent_item":"Parent photo","parent_item_colon":"Parent photo:","search_items":"Search photos","popular_items":"Popular photos","separate_items_with_commas":"Separate photos with commas","add_or_remove_items":"Add or remove photos","choose_from_most_used":"Choose from the most used photos","not_found":"No photos found","no_terms":"No photos","items_list_navigation":"photos list navigation","items_list":"photos list","back_to_items":"Back to photos","name_field_description":"The name is how it appears on your site.","parent_field_description":"Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.","slug_field_description":"The slug is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.","desc_field_description":"The description is not prominent by default; however, some themes may show it."},"meta_box_cb":"","default_term":"","object_types":["photo"]}}
### End Debug Info ###
- You must be logged in to reply to this topic.