Error on saving configuration

Created on 22 January 2025, 9 days ago

Problem/Motivation

After upgrading to version 10 am getting a fatal error on saving configuration form.

Steps to reproduce

  1. Enable the Search API Attachments module.
  2. Navigate to /admin/config/search/search_api_attachments.
  3. Under Extraction method, select any extraction method and fill in required fields. Then click “Submit and test extraction”. This triggers the following error:
    Error: Call to a member function createInstance() on null
    in Drupal\search_api_attachments\Form\TextExtractorFormSettings->validateForm()
    (line 125 of /app/web/modules/contrib/search_api_attachments/src/Form/
    TextExtractorFormSettings.php)

Proposed resolution

When the form is submitted Drupal uses a cached copy of the form state where $textExtractorPluginManager is null as the property is set to private instead of protected.

@mably mentioned this in Drupal 11 Ready Needs review but it looks like it didn't make it into the MR.

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