We are getting below error when an email is queued.
Warning: Undefined array key "from" in Drupal\queue_mail\Plugin\QueueWorker\SendMailQueueWorker->processItem() (line 169 of \web\modules\contrib\queue_mail\src\Plugin\QueueWorker\SendMailQueueWorker.php)
Steps to replicate:
1. Write an custom hook_mail logic. for example:
function my_module_mail($key, &$message, $params) {
$message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed; delsp=yes';
switch ($key) {
case 'custom_notification':
$message['subject'] = t($params['subject']);
$message['body'] = [t($params['body'])];
$message['from'] = \Drupal::config('system.site')->get('mail');
break;
}
}
2. Trigger email as per logic.
3. Email will get queued and then run Cron to receive email.
FYI, the error is around code written in patch #8
+ $message = $this->mailManager->mail(
+ $message['module'],
+ $message['key'],
+ $message['to'],
+ $message['langcode'],
+ $message['params'],
+ $message['from']
+ );
omsingh89 → created an issue.
Patch for 5.1.0 salesforce version.
Note: This patch is designed to work only for Salesforce Push module and its functionality.
omsingh89 → created an issue.
Thanks @cilefen for checking.
The issue is not occuring for drupal version 10.2.2, but after update to version 10.2.4
omsingh89 → created an issue.
Could we have this patch https://www.drupal.org/files/issues/2023-10-25/3029675-93.patch → for Drupal core 10.2.1 version please? Thanks in Advance.
@saschaeggi, could you please check this with the scenario provided?
Thanks in Advance.
Reopening.
Please find the scenario to reproduce.
If the page does not have any CKEditor enabled field and in the same page when we add a dynamic field like adding a paragraph which has CKEditor enabled field (this paragraph is not load on page load), for this CKeditor field the links are in black instead of blue.
Patch for 5.0.3 salesforce version.
Note: This patch is designed to work only for Salesforce Push module and its functionality.
@saschaeggi, we are using Drupal 10.1.3 version
omsingh89 → created an issue.
@saschaeggi, We have gin_toolbar version 8.x-1.0-rc3 enabled, the above issue is happening for few content type only.
Gin theme is loading, but not getting applied.
omsingh89 → created an issue.
Is it possible to release this functionality for Ckeditor 5?
omsingh89 → created an issue.
Uploading patch: 3358568-deprecated-function-explode.patch
Our project had a requirement to map a webform to a different salesforce Instance other than the default salesforce auth provider selected.
We are using only Salesforce Push trigger option, created a patch for this enhancement:
- Provided a configration in mapping form '/admin/structure/salesforce/mappings/add' to choose the salesforce auth provider to push the current webform submission
- Based on the Auth Provider selected, the Salesforce object will load, and also the salesforce fields.
- Salesforce Push is working.
Could others try this patch out?
Transformed the patch #17 into a working patch for Drupal 9.5.x. For Media Core module patch use 'user media-enable-image-resize.patch' patch from #30, and created a new patch for CKEditor 4 Contrib module: 3132211_drupal_ckeditor_4_resize.patch
Unable to apply patch ckeditor-enable-image-resize.patch #30
Drupal Core: 9.5.3, PHP: 8.1