Incompatibility with block_content module

Created on 6 November 2024, 5 months ago

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: πŸ› Errors on search-only for deep-nested paragraphs Needs review

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

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.71.5 2024