Closed (fixed)
Project:
Serve plain file
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
6 Oct 2023 at 15:54 UTC
Updated:
23 Oct 2023 at 14:14 UTC
Jump to comment: Most recent
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)
...
See above (in D10)
Fix code, while temporarily keeping backward compatibility.
Review, commit.
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
roderikComment #4
roderikManually tested:
Form opens without errors on recent D9 and D10, when visiting admin/config/system/served_files/add
Comment #6
ciprian.stavovei commentedI like the approach. Merged.