PHP 8.2 compitable

Created on 2 April 2024, 3 months ago
Updated 3 April 2024, 3 months ago

in my dev:
PHP: 8.2
LDAP: 4.8

The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\ldap_user\Processor\DrupalUserProcessor::__construct(), 15 passed in /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 16 expected in Drupal\ldap_user\Processor\DrupalUserProcessor->__construct() (line 225 of modules/contrib/ldap/ldap_user/src/Processor/DrupalUserProcessor.php).
Drupal\ldap_user\Processor\DrupalUserProcessor->__construct(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'ldap.drupal_user_processor') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('ldap.drupal_user_processor', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'ldap_authentication.login_validator') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('ldap_authentication.login_validator') (Line: 207)
Drupal::service('ldap_authentication.login_validator') (Line: 230)
ldap_authentication_user_login_authenticate_validate(Array, Object)
call_user_func_array('ldap_authentication_user_login_authenticate_validate', Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 275)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'user_login_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('user_login_form', Array, Object) (Line: 593)
Drupal\Core\Form\FormBuilder->processForm('user_login_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 67)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ’¬ Support request
Status

Closed: cannot reproduce

Version

4.8

Component

Code

Created by

πŸ‡¨πŸ‡³China zterry95

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

Comments & Activities

  • Issue created by @zterry95
  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    Odd, the service definition has 16 and the DrupalUserProcessor class construct has 16 arguments.

    Service

      ldap.drupal_user_processor:
        class: Drupal\ldap_user\Processor\DrupalUserProcessor
        arguments:
          - '@logger.channel.ldap_user'
          - '@config.factory'
          - '@ldap.detail_log'
          - '@ldap.token_processor'
          - '@externalauth.authmap'
          - '@entity_type.manager'
          - '@file_system'
          - '@token'
          - '@module_handler'
          - '@current_user'
          - '@ldap.user_manager'
          - '@event_dispatcher'
          - '@ldap_user.field_provider'
          - '@messenger'
          - '@password_generator'
          - '@service_container'

    DrupalUserProcessor

    public function __construct(
        LoggerInterface $logger,
        ConfigFactory $config_factory,
        LdapDetailLog $detail_log,
        TokenProcessor $token_processor,
        AuthmapInterface $authmap,
        EntityTypeManagerInterface $entity_type_manager,
        FileSystemInterface $file_system,
        Token $token,
        ModuleHandlerInterface $module_handler,
        AccountInterface $current_user,
        LdapUserManager $ldap_user_manager,
        EventDispatcherInterface $event_dispatcher,
        FieldProvider $field_provider,
        MessengerInterface $messenger,
        PasswordGeneratorInterface $passwordGenerator,
        ContainerInterface $container) {
    

    Drupal 10.2.4
    PHP 8.2
    Ldap: 4.8.0

    ldap_user enabled fine with no errors for me locally.

  • Status changed to Postponed: needs info 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    I am not able to reproduce. Additionally, the user did not post their settings.

  • Status changed to Closed: cannot reproduce 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9
Production build 0.69.0 2024