Error adding new popup entity and fields due to entity_content_visibility incompatibility with current Drupal version

Created on 12 April 2024, 8 months ago

When adding a new field on entity_popup, or if you try to create a new popup, the following error is triggered:

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "entity_content_visibility" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: color_field_widget_spectrum, color_field_widget_box, color_field_widget_default, color_field_widget_html5, color_field_widget_grid, comment_default, moderation_state_default, datetime_default, datetime_datelist, daterange_datelist, daterange_default, dynamic_entity_reference_default, dynamic_entity_reference_options_buttons, dynamic_entity_reference_options_select, entity_browser_file, entity_browser_entity_reference, entity_reference_revisions_autocomplete, entityqueue_dragtable, file_generic, image_focal_point, image_image, image_widget_crop, inline_entity_form_simple, inline_entity_form_complex, layout_builder_widget, link_default, link_attributes, linkit, linkit_attributes, oembed_textfield, media_library_widget, menu_item_extras_view_mode_selector_select, metatag_firehose, path, redirect_source, datetime_timestamp_no_default, svg_image_field_widget, text_textarea, text_textfield, text_textarea_with_summary, viewsreference_select, viewsreference_autocomplete, webform_entity_reference_autocomplete, webform_entity_reference_select, paragraphs, entity_reference_paragraphs, email_default, options_buttons, entity_reference_autocomplete, options_select, language_select, uri, number, string_textarea, string_textfield, boolean_checkbox, entity_reference_autocomplete_tags, datetime_timestamp in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Drupal\Core\Plugin\DefaultPluginManager->getDefinition('entity_content_visibility') (Line: 117)
Drupal\Core\Field\WidgetPluginManager->createInstance('entity_content_visibility', Array) (Line: 110)
Drupal\Core\Field\WidgetPluginManager->getInstance(Array) (Line: 157)
Drupal\Core\Entity\Entity\EntityFormDisplay->getRenderer('visibility') (Line: 183)
Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm(Object, Array, Object) (Line: 121)
Drupal\Core\Entity\ContentEntityForm->form(Array, Object) (Line: 107)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object) (Line: 20)
Drupal\popup_entity\Form\PopupForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('popup_entity_popup_form', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Install the module, patch it with https://www.drupal.org/project/popup_entity/issues/3432607 🐛 Error: You have requested a non-existent service "entity.manager" RTBC and https://www.drupal.org/project/popup_entity/issues/3432916 🐛 Error: Entity queries must explicitly set whether the query should be access checked or not. RTBC , then enable and go to

  • /popup_entity_popup/add (just open the page).
  • /admin/structure/popup_entity_popup_settings/fields/add-field (just create a text field for testing purpose).
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇹Italy finex

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

Comments & Activities

Production build 0.71.5 2024