Remove '__disable_customize__' parameters while queuing legacy emails

Created on 17 January 2025, 14 days ago

Getting errors like

Error: Unknown named parameter $__disable_customize__ in /var/www/html/web/modules/contrib/symfony_mailer/src/EmailFactory.php on line 92 #0 /var/www/html/web/modules/contrib/symfony_mailer_queue/src/Service/EmailFactory.php(20): Drupal\symfony_mailer\EmailFactory->initEmail()
#1 /var/www/html/web/modules/contrib/symfony_mailer_queue/src/Plugin/QueueWorker/SymfonyMailerQueueWorker.php(87): Drupal\symfony_mailer_queue\Service\EmailFactory->newTypedEmail()
#2 /var/www/html/vendor/drush/drush/src/Commands/core/QueueCommands.php(104): Drupal\symfony_mailer_queue\Plugin\QueueWorker\SymfonyMailerQueueWorker->processItem()
#3 [internal function]: Drush\Commands\core\QueueCommands->run()

This happens because symfony_mailer/src/Plugin/EmailBuilder/LegacyEmailBuilder.php already built parameters before queuing the email.

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇮🇹Italy p4trizio Como

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

Comments & Activities

  • Issue created by @p4trizio
  • 🇩🇪Germany simonbaese Berlin

    Thanks for reporting the issue. I think the proposed change is not correct because the parameter is used to handle emails differently when sending them. See the comments in Drupal\symfony_mailer\Mailer::doSend().

    I am confused, though, about how legacy emails are queued at all. This should only be the case when using the "Queue sending" email adjuster. Can you please post the steps to reproduce the issue? Or describe in more detail how you are sending legacy emails?

Production build 0.71.5 2024