PHP error on the performance form screen

Created on 28 April 2025, about 1 month ago

Problem/Motivation

With the update to using OOP hooks in #3519844 this has now brought an error on /admin/config/development/logging

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "Drupal\fileslog\Hook\FormAlter". Did you mean one of these: "Drupal\fileslog\Hook\Help", "Drupal\fileslog\Hook\Cron"? in Drupal\Component\DependencyInjection\Container->get() (line 159 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

Go to page listed above.

Proposed resolution

I think the definition in services.yml for the form alter hook should be:

Drupal\fileslog\Hook\FormAlter:
    class: Drupal\fileslog\Hook\FormAlter

Remaining tasks

Make a patch

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇬🇧United Kingdom andybroomfield

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

Comments & Activities

Production build 0.71.5 2024