Error: Call to a member function get() on null in Drupal\user\AccountSettingsForm->buildForm()

Created on 26 February 2024, 4 months ago
Updated 5 March 2024, 4 months ago

I'm not sure if it's related to this module but I get an error message like below when I enter account settings in the admin area. I'm on D10.2.3 - PHP8.2.15. its a commerce website with commerce_email, mail_login and some minor custom modules.

The website encountered an unexpected error. Try again later.

Error: Call to a member function get() on null in Drupal\user\AccountSettingsForm->buildForm() (line 289 of core/modules/user/src/AccountSettingsForm.php).
call_user_func_array() (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)
🐛 Bug report
Status

Postponed: needs info

Version

1.4

Component

Code

Created by

🇹🇷Turkey RgnYLDZ

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

Comments & Activities

  • Issue created by @RgnYLDZ
  • Assigned to chetan 11
  • Issue was unassigned.
  • 🇹🇷Turkey RgnYLDZ

    This might be related;

    Warning: Undefined variable $mail_config in Drupal\user\AccountSettingsForm->buildForm() (line 289 of /var/www/website.com.tr/web/core/modules/user/src/AccountSettingsForm.php)
    #0 /var/www/website.com.tr/web/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
    #1 /var/www/website.com.tr/web/core/modules/user/src/AccountSettingsForm.php(289): _drupal_error_handler()
    #2 [internal function]: Drupal\user\AccountSettingsForm->buildForm()
    #3 /var/www/website.com.tr/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array()
    #4 /var/www/website.com.tr/web/core/lib/Drupal/Core/Form/FormBuilder.php(283): Drupal\Core\Form\FormBuilder->retrieveForm()
    #5 /var/www/website.com.tr/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
    #6 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
    #7 /var/www/website.com.tr/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
    #8 /var/www/website.com.tr/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #9 /var/www/website.com.tr/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
    #10 /var/www/website.com.tr/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
    #11 /var/www/website.com.tr/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #12 /var/www/website.com.tr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
    #13 /var/www/website.com.tr/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
    #14 /var/www/website.com.tr/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
    #15 /var/www/website.com.tr/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
    #16 /var/www/website.com.tr/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
    #17 /var/www/website.com.tr/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
    #18 /var/www/website.com.tr/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
    #19 /var/www/website.com.tr/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
    #20 /var/www/website.com.tr/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
    #21 /var/www/website.com.tr/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
    #22 /var/www/website.com.tr/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
    #23 /var/www/website.com.tr/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
    #24 /var/www/website.com.tr/web/index.php(19): Drupal\Core\DrupalKernel->handle()
    #25 {main}
  • Status changed to Postponed: needs info 4 months ago
  • 🇬🇧United Kingdom AdamPS

    Needs more info to explain how the error is related to this module

Production build 0.69.0 2024