"RequireLoginSubscriber" not found

Created on 4 June 2023, about 1 year ago
Updated 10 June 2023, about 1 year ago

Problem/Motivation

Error: Class "Drupal\require_login\EventSubscriber\RequireLoginSubscriber" not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of core\lib\Drupal\Component\DependencyInjection\Container.php).
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 136)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 145)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 718)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

After updating Require Login from 8.x-2.4 to 3.0.4
I am using Drupal core 9.5.9.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States max_shen

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

Comments & Activities

  • Issue created by @max_shen
  • Status changed to Postponed: needs info about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States robphillips

    Needs more information. Have you rebuilt cache, ran database updates, etc? Others have already upgraded from 2.x to 3.x.

  • πŸ‡ΊπŸ‡ΈUnited States max_shen

    Thanks for the quick response. I cleared the cache and successfully upgrade Require Login to 3.0. When I updated the database, got the error below. Pleas help. Thanks!

    Update #8300
    Failed: Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "language.config_factory_override". in Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (line 1030 of E:\drupal-project\vendor\symfony\dependency-injection\ContainerBuilder.php).

  • πŸ‡ΊπŸ‡ΈUnited States max_shen

    Just saw a post for the same issue. Instead of upgrading to 3.0.0, I upgraded to 3.0.4 without any issue.

    Thanks

  • Status changed to Closed: duplicate about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States robphillips
Production build 0.69.0 2024