• hello after i update wp 5.5 and last woo commerce, i have a error page when i try to send invoice
    i have this error in log
    2020-08-31T09:00:11+00:00 CRITICAL Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use dans /home/roseetcacao/public_html/wp-includes/PHPMailer/SMTP.php à la ligne 30
    if i desactived your plyugin (2.6) no error …
    any idea ?
    regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello @yberges,
    I’m sorry to hear that. For WordPress 5.4 and older we have code in our plugin that fixes an issue with older versions of PHPMailer, but since WordPress 5.5 has updated the bundled PHPMailer, we do not apply this fix if the site uses 5.5 or higher (source here). This fix was added in version 2.5.3 of this plugin, you mention 2.6 which I assume is 2.6.0?

    You mention that you are using WP5.5 which means that this code will not be executed, and there is no other code in our plugin that touches the PHPMailer.

    There are a few things I can think of that may cause this error:

    1. There is another plugin on your site that is affected by whether or not an email contains an attachment – are you using any third party plugins that do something with the email proccess (SMTP)?
    2. Our plugin cannot properly detect the WordPress version and thinks you are using an older version – this is hard to test if you’re not a coder I guess. We use get_bloginfo( 'version' ) to get the WordPress version.

    Does that help?

    Thread Starter yberges

    (@yberges)

    hello if i check version numbre in update page i have 2.6.0 for your plugin
    if i desactived your plugin no error on sending email
    if i actived it i have this error ..

    Plugin Contributor Ewout

    (@pomegranate)

    I’m sorry to hear that. To date we have not received any other reports of this issue, so I’m not sure why it’s doing this on your site.
    Can you check those points I mentioned in my previous response?

    There are a few things I can think of that may cause this error:

    *There is another plugin on your site that is affected by whether or not an email contains an attachment – are you using any third party plugins that do something with the email proccess (SMTP)?
    *Our plugin cannot properly detect the WordPress version and thinks you are using an older version – this is hard to test if you’re not a coder I guess. We use get_bloginfo( 'version' ) to get the WordPress version.

    Does that help?

    Thread Starter yberges

    (@yberges)

    hello i can add get_bloginfo( ‘version’ ) but where ? in config file ?
    thanks for your props support

    Plugin Contributor Ewout

    (@pomegranate)

    First thing you could check is the bottom right corner of any admin page on your site, which should show something like this:

    Additionally, you could go to WooCommerce > Status and then check what it shows for “WordPress version:

    Thread Starter yberges

    (@yberges)

    hello
    Version de WooCommerce: 4.4.1
    Package WooCommerce REST API:1.0.15
    Package WooCommerce Blocks:3.3.0
    Package du planificateur d’actions:3.1.6
    Package WooCommerce Admin: 1.4.0
    Version de WordPress:5.5.1

    Plugin Contributor Ewout

    (@pomegranate)

    That looks all good to me. No third party plugins that are involved in the email process (SMTP or external email service)?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Site crash when i want to send invoice’ is closed to new replies.