• Resolved bergrachael

    (@bergrachael)


    Hi,

    When trying to resend failed emails, the screen freezes and I have to refresh to get the log back, but emails are not sent. The console error is:

    Uncaught TypeError: Cannot read properties of undefined (reading ‘data’)
    at Object. (fluent-mail-admin-app.js?ver=2.2.80:1:129039)
    at c (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill,moxiejs,plupload&ver=6.6.2:2:25304)
    at Object.fireWith as rejectWith
    at t (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill,moxiejs,plupload&ver=6.6.2:2:27442)

    We are using PHP 8.1

    I have turned debug on and this is what is in the debug file:

    [08-Oct-2024 00:39:49 UTC] PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /home/transformedpty/public_html/wp-includes/PHPMailer/PHPMailer.php:1880 Stack trace:
    #0 /home/transformedpty/public_html/wp-includes/PHPMailer/PHPMailer.php(1880): preg_match(‘#^[a-z][a-z\\d+….’, Array)
    #1 /home/transformedpty/public_html/wp-includes/PHPMailer/PHPMailer.php(1892): PHPMailer\PHPMailer\PHPMailer::isPermittedPath(Array) #2 /home/transformedpty/public_html/wp-includes/PHPMailer/PHPMailer.php(3271): PHPMailer\PHPMailer\PHPMailer::fileIsAccessible(Array)
    #3 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/app/Functions/helpers.php(543): PHPMailer\PHPMailer\PHPMailer->addAttachment(Array)
    #4 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/fluent-smtp.php(42): fluentMailSend(Array, ‘Residential Eff…’, ‘<!doctype html>…’, Array, Array)
    #5 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/app/Models/Logger.php(346): wp_mail(Array, ‘Residential Eff…’, ‘<!doctype html>…’, Array, Array)
    #6 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/app/Http/Controllers/LoggerController.php(66): FluentMail\App\Models\Logger->resendEmailFromLog(‘315’, ‘retry’)
    #7 [internal function]: FluentMail\App\Http\Controllers\LoggerController->retry(Object(FluentMail\Includes\Request\Request), Object(FluentMail\App\Models\Logger))
    #8 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/includes/Core/Container.php(507): call_user_func_array(Array, Array)
    #9 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/includes/Core/Container.php(633): FluentMail\Includes\Core\Container->call(Array, Array)
    #10 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/includes/Core/Container.php(502): FluentMail\Includes\Core\Container->callClass(‘FluentMail\\App\\…’, Array, NULL)
    #11 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/includes/Core/CoreTrait.php(73): FluentMail\Includes\Core\Container->call(‘FluentMail\\App\\…’) #12 /home/transformedpty/public_html/wp-content/plugins/fluent-smtp/includes/Core/CoreTrait.php(31): FluentMail\Includes\Core\Application->FluentMail\Includes\Core\{closure}()
    #13 /home/transformedpty/public_html/wp-includes/class-wp-hook.php(324): FluentMail\Includes\Core\Application->FluentMail\Includes\Core\{closure}(”)
    #14 /home/transformedpty/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #15 /home/transformedpty/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #16 /home/transformedpty/public_html/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_fluentm…’) #17 {main} thrown in /home/transformedpty/public_html/wp-includes/PHPMailer/PHPMailer.php on line 1880
    [08-Oct-2024 00:42:13 UTC] {}
    [08-Oct-2024 00:42:31 UTC] {}

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have this error as well. Please provide a fix.

    Thread Starter bergrachael

    (@bergrachael)

    Hi, just wondering if you might be able to help with this soon? We have quite a lot of emails failing and need to resend them as soon as possible. It seems to be the emails with attachments that are giving this error. If I resend an email without an attachment, it works as expected. Thanks

    Plugin Support Ibrahim Sharif

    (@ibrahimsharif)

    Hello @bergrachael,

    I’ve reviewed the details you provided, and it seems that the issue may be related to using a higher version of PHP (8.1). We recommend switching to a lower version such as 7.4 or 8.0. This might resolve the console error you’re encountering.

    However, to ensure a thorough investigation, I’ve also forwarded your case to our relevant department. They will delve deeper into the issue and provide additional insights or solutions if necessary.

    In the meantime, if you have any further questions or need additional support, please don’t hesitate to reach out to us.

    Thread Starter bergrachael

    (@bergrachael)

    Hi,

    Thanks so much for your reply. I switched to PHP 8.0, but unfortunately the problem still persists. I’m unable to change to 7.4 due to other plugins not being compatible.

    If you are able to provide a fix for this to work with 8.0+ that would be great.

    Thank you

    Thread Starter bergrachael

    (@bergrachael)

    Hi, I’m just wondering if you have any update on this?

    Thank you

    For anyone facing the issue, installing cURL extension in cPanel fixed the issue with PHP 8.1.

    I would also install pearl HTTP_Request2 module.

    • This reply was modified 1 month, 1 week ago by jamal1wp.
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.