- Issue created by @astutonet
TypeError: Symfony\Component\Mime\Header\Headers::addMailboxHeader(): Argument #2 ($address) must be of type Symfony\Component\Mime\Address|string, null given, called in /home/u999999999/domains/mydomain.com/public_html/vendor/symfony/mime/Header/Headers.php on line 154 in Symfony\Component\Mime\Header\Headers->addMailboxHeader() (line 90 of /home/u999999999/domains/mydomain.com/public_html/vendor/symfony/mime/Header/Headers.php).
When forward a message using the Forward Module.
The backtrace:
#0 /home/u999999999/domains/mydomain.com/public_html/vendor/symfony/mime/Header/Headers.php(154): Symfony\Component\Mime\Header\Headers->addMailboxHeader()
#1 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/symfony_mailer/src/LegacyMailerHelper.php(144): Symfony\Component\Mime\Header\Headers->addHeader()
#2 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/symfony_mailer/src/Plugin/EmailBuilder/LegacyEmailBuilder.php(136): Drupal\symfony_mailer\LegacyMailerHelper->emailFromArray()
#3 [internal function]: Drupal\symfony_mailer\Plugin\EmailBuilder\LegacyEmailBuilder->build()
#4 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/symfony_mailer/src/Email.php(490): call_user_func()
#5 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/symfony_mailer/src/Mailer.php(179): Drupal\symfony_mailer\Email->process()
#6 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/symfony_mailer/src/Mailer.php(149): Drupal\symfony_mailer\Mailer->doSend()
#7 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\symfony_mailer\Mailer->Drupal\symfony_mailer\{closure}()
#8 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/symfony_mailer/src/Mailer.php(147): Drupal\Core\Render\Renderer->executeInRenderContext()
#9 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/symfony_mailer/src/Email.php(292): Drupal\symfony_mailer\Mailer->send()
#10 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/symfony_mailer/src/MailManagerReplacement.php(92): Drupal\symfony_mailer\Email->send()
#11 /home/u999999999/domains/mydomain.com/public_html/modules/contrib/forward/src/Form/ForwardForm.php(599): Drupal\symfony_mailer\MailManagerReplacement->mail()
#12 [internal function]: Drupal\forward\Form\ForwardForm->submitForm()
#13 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/Form/FormSubmitter.php(129): call_user_func_array()
#14 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/Form/FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers()
#15 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm()
#16 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
#17 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#18 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#19 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#20 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#21 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#22 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#23 /home/u999999999/domains/mydomain.com/public_html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#24 /home/u999999999/domains/mydomain.com/public_html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#25 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#26 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#27 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#28 /home/u999999999/domains/mydomain.com/public_html/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#29 /home/u999999999/domains/mydomain.com/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#30 /home/u999999999/domains/mydomain.com/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#31 /home/u999999999/domains/mydomain.com/public_html/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#32 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#33 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#34 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#35 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#36 /home/u999999999/domains/mydomain.com/public_html/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#37 /home/u999999999/domains/mydomain.com/public_html/index.php(19): Drupal\Core\DrupalKernel->handle()
#38 {main}
I found a similar bug, followed by a fix, for the Reroute Email module, here 🐛 Argument #2 ($value) must be of type string, null given Fixed .
Can anyone help us? Tks!
Active
4.0
Code