Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Class "Drupal\error_prepend_string\EventSubscriber\ErrorPrependStringEventSubscriber" used for service ".......

Created on 17 April 2025, 7 days ago

Problem/Motivation

When I try to enable this module, it throws an error.

Steps to reproduce

1: Install the "Error prepend string" using the following command:
composer require 'drupal/error_prepend_string:^1.0'

2: Enable this module.

4: The following error appears:
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Class "Drupal\error_prepend_string\EventSubscriber\ErrorPrependStringEventSubscriber" used for service "error_prepend_string.event_subscriber" cannot be found. in Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass->process() (line 126 of D:\laragon\www\16d11\vendor\symfony\event-dispatcher\DependencyInjection\RegisterListenersPass.php).

Note: I am using Drupal 11 with PHP 8.3.13 version.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India aman_lnwebworks

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