Frontend problem with "View id is not valid in entity ref formatter"

Created on 14 December 2023, 6 months ago
Updated 15 December 2023, 6 months ago

Problem/Motivation

Error:
"View id is not valid in entity ref formatter." at /web/modules/contrib/view_entity_ref_field_formatter/src/Plugin/Field/FieldFormatter/ViewsRenderEntityRefFieldFormatter.php line 125

Steps to reproduce

Update from Drupal 9.5.11 to Drupal 10 and update module from version 8.x-1.1 to 8.x-1.2

Backend is working. The entered referenced Ids are in the textfield with name. Adding new items also not working.

πŸ› Bug report
Status

Closed: works as designed

Version

1.2

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany thomaswalther Rhein-Main Area

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

Comments & Activities

  • Issue created by @thomaswalther
  • πŸ‡©πŸ‡ͺGermany thomaswalther Rhein-Main Area
    • $view is null (so no object)
    • $view_id is the system name of a paragraphs_type
    • $display_id value is "block_paragraphlist"
    • $entities value is [{"in_preview":null},{"in_preview":null},{"in_preview":null},{"in_preview":null}]
  • Status changed to Closed: works as designed 6 months ago
  • πŸ‡©πŸ‡ͺGermany thomaswalther Rhein-Main Area

    with deinstalling the values were removed, so its ok.

  • πŸ‡¦πŸ‡ΊAustralia taggartj

    Thanks @thomaswalther good to see you debugged it as it wold be quite some time before i had a chance to

  • Status changed to Active 6 months ago
  • πŸ‡©πŸ‡ͺGermany thomaswalther Rhein-Main Area

    Sorry, with only update to the right time, I do not delete the module and got the error.
    After update, the backend values are:

    • "products_new"
    • "block_paragraphlist"

    The problem is on an own created paragraph type "productlist" with a field "field_productlist_product_ref" with an entity reference to another node type. The manage display for the ref field (field_productlist_product_ref) is the formatter "Views render entity ref field formatter" with the 2 values from top (products_new, block_paragraphlist).

    If I change the format to another like "FlexSlider (Entity view)" it looks like the result I had (2 items in a slick-slider).

  • Status changed to Closed: works as designed 6 months ago
  • πŸ‡©πŸ‡ͺGermany thomaswalther Rhein-Main Area

    After the Drupal update the view "products_new" was gone

Production build 0.69.0 2024