ServedFileForm incompatible with D10

Created on 6 October 2023, over 1 year ago
Updated 9 October 2023, over 1 year ago

Problem/Motivation

HTTP 500 response when visiting admin/config/system/served_files/add:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "app.root". in Drupal\Component\DependencyInjection\Container->get() (line 157 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Drupal\serve_plain_file\Form\ServedFileForm::create(Object) (Line: 28)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\serve_plain_file\Form\ServedFileForm') (Line: 210)
...

Steps to reproduce

See above (in D10)

Proposed resolution

Fix code, while temporarily keeping backward compatibility.

Remaining tasks

User interface changes

Review, commit.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands roderik Amsterdam,NL / Budapest,HU

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

Comments & Activities

Production build 0.71.5 2024