Cannot place the UUID field in the Form display when a Feed type exists for the same content type

Created on 21 May 2023, over 1 year ago

Problem/Motivation

Some interaction with the Feeds item field from feeds module make it impossible to enable the UUID field in the form display.

  1. Virgin install of Drupal 10.0.9 (with DDEV CMS Quickstart),
  2. composer require drupal/uuid_extra
  3. drush enable uuid_extra
  4. composer require 'drupal/feeds:^3.0@beta'
  5. drush enable feeds
  6. Create a feed type processing nodes of type Article
  7. Article's Manage form display: try to enable UUID
  8. Stays loading forever (or white screen if you save) and silently fires the error:
  9. Location: /admin/structure/types/manage/article/form-display?_wrapper_format=drupal_ajax&ajax_form=1
  10. Message: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "hidden" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: comment_default, datetime_datelist, datetime_default, file_generic, image_image, link_default, path, text_textarea_with_summary, text_textfield, text_textarea, uuid, viewsreference_autocomplete, viewsreference_select, uri, entity_reference_autocomplete_tags, number, email_default, language_select, string_textfield, entity_reference_autocomplete, boolean_checkbox, string_textarea, options_buttons, options_select, datetime_timestamp in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

(All well with the Manage Display instead)

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇹Italy kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kopeboy
  • Assigned to kopeboy
  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy kopeboy Milan

    Nevermind, I had tried a few modules before that apparently where causing the error in combination with uuid_extra
    No such error on a real clean install. Investigating what it was now.

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • 🇮🇹Italy kopeboy Milan

    Found it: it's the Feeds module.
    Just create a feed type for the same content type (this will create the Feed item field below on the same form) and you start getting the error when enabling either the "Feeds item" or UUID field only (no error with any other default field).. weird:

  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy kopeboy Milan

    Btw, this has never happened to me before using UUID Extra, so I guess this could be a bug in this module as well?

    Unless UUID generation should depend on what is in the form display, I don't think being able to enable it should depend on (a correct implementantion of) a field from another module..

Production build 0.71.5 2024