• Resolved Francis Chandler

    (@fjchandler1)


    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:103288

    I 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 ###
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Thank you for your patience.

    Trying to make sure I’m following things correctly here.

    1. You created the post types and taxonomies with CPTUI.
    2. You imported the content intended for the content types into your WP install.
    3. You’re seeing some details about the content in the admin, but not everything, and you’re not able to edit/manage the content?

    Nothing regarding the settings got imported into the install from Drupal, correct?

    Thread Starter Francis Chandler

    (@fjchandler1)

    Thanks for responding. As to your understanding;

    1. yes
    2. yes, after creating the content type I exported it with WP Import Export Lite as a csv. I created a query in Drupal Views to fit the desired output into a csv file, imported it with WP Import Export Lite.
    3. Using Gutenberg block editor threw the error and prevented editing or adding posts with a tag. Using Classic Editor allows for editing, and tagging. However, in the Admin section for the Photo CPT taxonomy it displays the correct number of entries per tag, but when I click on the number to go to those posts, nothing is shown. I can click the All, and it will show all. Whereas, with the Image CPT taxonomy it shows the posts sorted, and when I click on that number it shows only those posts with that tag.
    4. Concerning: “Nothing regarding the settings got imported into the install from Drupal, correct?” That is correct, only data was imported. When I exported the CPTs, I added all fields, which was probably not necessary (possible WordPress nubie mistake). That added custom fields that show in Classic Editor, but are not visible in Gutenberg.

    I do now have the site on a live server, and could give access if needed.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm,

    Not sure what may be going on, as the editor screen is largely a detail outside of our plugin. As long as the content types are getting registered, with the settings intended via our provided UI, our job is done.

    The biggest unknown, at least from where I’m sitting, is what all is being done with the import process.

    Also, because I know I’ve troubleshot oddities in the past because of it, I’m curious what your content type slugs are. For example, we “disallowed” the slug of “themes” because it threw stuff off internally and resulted in odd behavior.

    Thread Starter Francis Chandler

    (@fjchandler1)

    The “Post Type Slug”s are image and photo

    For image
    REST API base slug: images
    Custom Rewrite Slug: left blank
    Custom Query Var Slug: left blank

    For photo
    REST API base slug: photos
    Custom Rewrite Slug: left blank
    Custom Query Var Slug: left blank

    I have done this same process for five sites. The other four have not had issues with Gutenberg.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    hmm.

    Looking at the export from earlier in the thread, i’m curious if there’s some internal issues coming in from naming post types and taxonomies the same.

    I know you have “image” for a post type and then “images” plural for the taxonomy. You also have “photo” as both a post type and a taxonomy slug, and I’m wondering if that’s causing some of the issues.

    Beyond that, I’m not really managing to encounter any issues with those settings imported, but I also have a barebones install compared to yours with imported data. However a lot of the parts you’ve been discussing are also outside of CPTUI’s control or influence.

      Thread Starter Francis Chandler

      (@fjchandler1)

      I was wondering it that naming practice could be exacerbating my problems.

      I also understand the control or influence aspect.

      Plugin Contributor Michael Beckwith

      (@tw2113)

      The BenchPresser

      We’re able and willing to try and bounce ideas with, but at the moment any troubleshooting by us would need to be able to be hands on with things.

      Thread Starter Francis Chandler

      (@fjchandler1)

      I do have a live testing site that we could play on. I added CPTUI and imported the two types and again have the issue in Gutenberg. I am kind of new to some of this, so how would I give you access?

      Thread Starter Francis Chandler

      (@fjchandler1)

      I made a user profile on my test site. You should have gotten and email.

      Plugin Contributor Michael Beckwith

      (@tw2113)

      The BenchPresser

      Please reach out via https://pluginize.com/contact/ for off-forum discussion and support needs instead of outright providing credentials without permission.

      Also at this point I’m not going to be able to do much outside of trying to rename the content types to see if it results any different results, which you can more than do on your own as well. You’d be able to create alternative taxonomies and some terms in them for the content types in question and see if the behavior repeats with those.

      Thread Starter Francis Chandler

      (@fjchandler1)

      So I dissociated the taxonomies from their post types and saved them. I then renamed them, migrated the terms, cleared and then repopulated the the labels with the new name, made sure the old name was not represented in any of the fields, and then saved the new version. They are now working with Gutenberg and the back end correctly.

      Plugin Contributor Michael Beckwith

      (@tw2113)

      The BenchPresser

      Awesome to hear. I’m admittedly curious what the issue was, but I’m happy that things are working again.

    Viewing 12 replies - 1 through 12 (of 12 total)
    • You must be logged in to reply to this topic.