- Issue created by @mandclu
- Issue was unassigned.
- Status changed to Fixed
almost 2 years ago 7:27pm 20 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.
While attempting to use the preview capability, I ran into a couple of fatal errors:
TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in implode() (line 286 of /var/www/html/web/modules/custom/easy_email/easy_email.module).
And...
TypeError: Drupal\Core\File\FileUrlGenerator::generateAbsoluteString(): Argument #1 ($uri) must be of type string, null given, called in /var/www/html/web/modules/custom/easy_email/easy_email.module on line 308 in Drupal\Core\File\FileUrlGenerator->generateAbsoluteString() (line 65 of /var/www/html/web/core/lib/Drupal/Core/File/FileUrlGenerator.php).
I probably was giving it bad input, but the code should be able to handle these cases more gracefully.
Add checks that will prevent fatal errors if the input isn't what the code expects.
Fixed
2.1
Code
Automatically closed - issue fixed for 2 weeks with no activity.