Title: Fatal errors
Last modified: September 8, 2022

---

# Fatal errors

 *  Resolved [bramokki](https://wordpress.org/support/users/bramokki/)
 * (@bramokki)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-errors-78/)
 * Hey,
 * Lately i am getting alot of fatal errors with fluentsmtp sending e-mails
 * : CRITICAL Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of
   type string, array given in httpdocs/wp-includes/PHPMailer/PHPMailer.php:1845
   
   Stack trace:
    -  This topic was modified 3 years, 9 months ago by [bramokki](https://wordpress.org/support/users/bramokki/).
    -  This topic was modified 3 years, 9 months ago by [bramokki](https://wordpress.org/support/users/bramokki/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Shahjahan Jewel](https://wordpress.org/support/users/techjewel/)
 * (@techjewel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-errors-78/#post-15991496)
 * Would you please provide the stack trace so We can take a look?
 * Thanks
 *  Thread Starter [bramokki](https://wordpress.org/support/users/bramokki/)
 * (@bramokki)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-errors-78/#post-15992303)
 * 2022-09-07T07:25:38+00:00 CRITICAL Uncaught TypeError: preg_match(): Argument#
   2 ($subject) must be of type string, array given in /var/www/vhosts/testyourparfum.
   com/httpdocs/wp-includes/PHPMailer/PHPMailer.php:1845
    Stack trace: #0 /var/www/
   vhosts/testyourparfum.com/httpdocs/wp-includes/PHPMailer/PHPMailer.php(1845):
   preg_match() #1 /var/www/vhosts/testyourparfum.com/httpdocs/wp-includes/PHPMailer/
   PHPMailer.php(1857): PHPMailer\PHPMailer\PHPMailer::isPermittedPath() #2 /var/
   www/vhosts/testyourparfum.com/httpdocs/wp-includes/PHPMailer/PHPMailer.php(3174):
   PHPMailer\PHPMailer\PHPMailer::fileIsAccessible() #3 /var/www/vhosts/testyourparfum.
   com/httpdocs/wp-content/plugins/fluent-smtp/app/Functions/helpers.php(540): PHPMailer\
   PHPMailer\PHPMailer->addAttachment() #4 /var/www/vhosts/testyourparfum.com/httpdocs/
   wp-content/plugins/fluent-smtp/fluent-smtp.php(40): fluentMailSend() #5 /var/
   www/vhosts/testyourparfum.com/httpdocs/wp-content/plugins/fluent-smtp/app/Models/
   Logger.php(344): wp_mail() #6 /var/www/vhosts/testyourparfum.com/httpdocs/wp-
   content/plugins/fluent-smtp/app/Http/Controllers/LoggerController.php(66): FluentMail\
   App\Models\Logger->resendEmailFromLog() #7 [internal function]: FluentMail\App\
   Http\Controllers\LoggerController->retry() #8 /var/www/vhosts/testyourparfum.
   com/httpdocs/wp-content/plugins/fluent-smtp/includes/Core/Container.php(507):
   call_user_func_array() #9 /var/www/vhosts/testyourparfum.com/httpdocs/wp-content/
   plugins/fluent-smtp/includes/Core/Container.php(633): FluentMail\Includes\Core\
   Container->call() #10 /var/www/vhosts/testyourparfum.com/httpdocs/wp-content/
   plugins/fluent-smtp/includes/Core/Container.php(502): FluentMail\Includes\Core\
   Container->callClass() #11 /var/www/vhosts/testyourparfum.com/httpdocs/wp-content/
   plugins/fluent-smtp/includes/Core/CoreTrait.php(73): FluentMail\Includes\Core\
   Container->call() #12 /var/www/vhosts/testyourparfum.com/httpdocs/wp-content/
   plugins/fluent-smtp/includes/Core/CoreTrait.php(31): FluentMail\Includes\Core\
   Application->FluentMail\Includes\Core\{closure}() #13 /var/www/vhosts/testyourparfum.
   com/httpdocs/wp-includes/class-wp-hook.php(307): FluentMail\Includes\Core\Application-
   >FluentMail\Includes\Core\{closure}() #14 /var/www/vhosts/testyourparfum.com/
   httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #15 /var/
   www/vhosts/testyourparfum.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->
   do_action() #16 /var/www/vhosts/testyourparfum.com/httpdocs/wp-admin/admin-ajax.
   php(187): do_action()
 *  Thread Starter [bramokki](https://wordpress.org/support/users/bramokki/)
 * (@bramokki)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-errors-78/#post-15995144)
 * Is this the stack u meant?
 *  Plugin Author [Shahjahan Jewel](https://wordpress.org/support/users/techjewel/)
 * (@techjewel)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-errors-78/#post-15995224)
 * Yes, I am debugging it. I will get back to you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal errors’ is closed to new replies.

 * ![](https://ps.w.org/fluent-smtp/assets/icon.svg?rev=2458343)
 * [FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider](https://wordpress.org/plugins/fluent-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluent-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluent-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/fluent-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluent-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluent-smtp/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Shahjahan Jewel](https://wordpress.org/support/users/techjewel/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-errors-78/#post-15995224)
 * Status: resolved