- ๐ซ๐ทFrance aiphes
Hi,
As in #47, I still get this error with WSOD. v 8.x-1.0-alpha4The website encountered an unexpected error. Please try again later. ValueError: realpath(): Argument #1 ($path) must not contain any null bytes in realpath() (line 139 of core/lib/Drupal/Core/File/FileSystem.php). realpath('') (Line: 139) Drupal\Core\File\FileSystem->realpath('') (Line: 395) Drupal\mimemail\Utility\MimeMailFormatHelper::mimeMailFile(NULL, '', 'google_analytics_audience-_-_brise-lames.pdf', 'application/pdf', 'attachment') (Line: 216) Drupal\mimemail\Utility\MimeMailFormatHelper::mimeMailHtmlBody(' Mime Mail message template test envoi pj ', 'Poste recherchรฉ dans le domaine [webform_submission:webform:element:poste_recherche:raw]', , 'test envoi pj ', Array) (Line: 206) Drupal\mimemail\Plugin\Mail\MimeMail->prepareMessage(Array) (Line: 105) Drupal\mimemail\Plugin\Mail\MimeMail->format(Array) (Line: 43) Drupal\mailsystem\Adapter->format(Array) (Line: 289)
Do I need to patch the module or something else ?
Thanks - ๐จ๐ณChina qqboy
locally, if I use
$params['attachments'][] = [
'filepath' => $file->getFileUri(),
];avoided this patch, since this patch is stilled not imported to Module itself in alph-4.
- ๐ซ๐ทFrance mably
Tried to port #39 patch to alpha5 source code. Seems to work, not heavily tested though.
- ๐ฎ๐นItaly kris77
#55 +1 worked for me to with latest alpha5.
Thanks @mably.
- last update
over 1 year ago 27 pass - ๐บ๐ธUnited States RyanCMcConnell
#55 worked for me as well. Thank you @mably !
- Status changed to RTBC
about 1 year ago 12:14pm 15 December 2023 - ๐ฆ๐บAustralia Bagz
#55 works with alpha6 on Drupal 10.2.3 with PHP 8.2.16
- ๐ญ๐บHungary betarobot
#55 worked well with PHP 8.2.17 and Drupal 10.2.5.