ExtractedText field formatter broken

Created on 7 February 2025, about 2 months ago

Problem/Motivation

ExtractedText __construct() tries to use variables before they are defined.

Error: Call to a member function get() on null in /var/www/html/web/modules/contrib/search_api_attachments/src/Plugin/Field/FieldFormatter/ExtractedText.php on line 101 #0 /var/www/html/web/modules/contrib/search_api_attachments/src/Plugin/Field/FieldFormatter/ExtractedText.php(118): Drupal\search_api_attachments\Plugin\Field\FieldFormatter\ExtractedText->__construct()

Steps to reproduce

Configure any field display to use the ExtractedText formatter.

Proposed resolution

Move __contruct() operations to create()

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

10.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024