Problem/Motivation
After upgrading to version 10 am getting a fatal error on saving configuration form.
Steps to reproduce
- Enable the Search API Attachments module.
- Navigate to /admin/config/search/search_api_attachments.
-
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 #3474910-11: Drupal 11 Ready but it looks like it didn't make it into the MR.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork search_api_attachments-3501304
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
Comment #2
cb_govcms commentedComment #4
izus commentedThanks for this
Comment #6
izus commentedComment #7
izus commentedComment #8
izus commentedThe release 10.0.1 has this in