Problem/Motivation

Having block_content installed and starting a search, leads to:

Error: Call to undefined method Drupal\block_content\Entity\BlockContent::getParentEntity() in Drupal\scanner\Plugin\Scanner\Paragraph->search() (Zeile 55 in /web/modules/contrib/scanner/src/Plugin/Scanner/Paragraph.php).
#0 /web/modules/contrib/scanner/src/Plugin/Scanner/Entity.php(59): Drupal\scanner\Plugin\Scanner\Paragraph->search()
#1 /web/modules/contrib/scanner/src/Form/ScannerForm.php(297): Drupal\scanner\Plugin\Scanner\Entity->search()
#2 /web/core/includes/batch.inc(296): Drupal\scanner\Form\ScannerForm::batchSearch()
[...]

Same issue has already been mentioned here: #3196119: Errors on search-only for deep-nested paragraphs

Steps to reproduce

Proposed resolution

Don't call getParentEntity() if it's not available on the object

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork scanner-3485911

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

anybody’s picture

Status: Active » Needs review

Instead of fixing this node-specific or block_content specific, let's assume paragraphs can also exist on other entity types (they can) and work with interfaces.

anybody’s picture

PS: I think MR!1 in #3196119: Errors on search-only for deep-nested paragraphs is the better long-term solution!

smustgrave’s picture

Status: Needs review » Postponed (maintainer needs more info)

Should this be closed then?

anybody’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Yeah let's close this as duplicate.