• Resolved xd67

    (@xd67)


    Hi,
    After upgrading this plugin I receive a critical error and after that I am not bale anymore to access the plugins in my dashboard. I have this at several websites
    I tried to disable other plugins but this is not solving the issue
    
    Is this a known error? Until now I only can stay at version 1.5.3
    
    Hopefully you could help me.  
    With kind regards,
    Andre Kremer
    
    Als je hulp nodig hebt met dit probleem, kan je gevraagd worden om de volgende informatie:
    WordPress versie 6.1.1
    Actief thema: Salient Child Theme (versie 1.0)
    Huidige plugin: Easy WP SMTP (versie 2.1.0)
    PHP versie 8.0.25
    
    Foutdetails
    ===========
    Een fout van het type E_ERROR werd veroorzaakt op regelnummer 124 van het bestand /www/wp-content/plugins/easy-wp-smtp/src/Providers/MailerAbstract.php. Foutmelding: Uncaught TypeError: EasyWPSMTP\Providers\MailerAbstract::__construct(): Argument #1 ($phpmailer) must be of type EasyWPSMTP\MailCatcherInterface, PHPMailer\PHPMailer\PHPMailer given, called in /www/wp-content/plugins/easy-wp-smtp/src/Providers/Loader.php on line 176 and defined in /www/wp-content/plugins/easy-wp-smtp/src/Providers/MailerAbstract.php:124
    Stack trace:
    #0 /www/wp-content/plugins/easy-wp-smtp/src/Providers/Loader.php(176): EasyWPSMTP\Providers\MailerAbstract->__construct(Object(PHPMailer\PHPMailer\PHPMailer), NULL)
    #1 /www/wp-content/plugins/easy-wp-smtp/src/Providers/Loader.php(131): EasyWPSMTP\Providers\Loader->get_entity('smtp', 'Mailer', Array)
    #2 /www/wp-content/plugins/easy-wp-smtp/src/Admin/UserFeedback.php(180): EasyWPSMTP\Providers\Loader->get_mailer('smtp', Object(PHPMailer\PHPMailer\PHPMailer))
    #3 /www/wp-content/plugins/easy-wp-smtp/src/Admin/UserFeedback.php(77): EasyWPSMTP\Admin\UserFeedback->is_smtp_configured()
    #4 /www/wp-content/plugins/easy-wp-smtp/src/Admin/UserFeedback.php(65): EasyWPSMTP\Admin\UserFeedback->display()
    #5 /www/wp-includes/class-wp-hook.php(308): EasyWPSMTP\Admin\UserFeedback->maybe_display('')
    #6 /www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #7 /www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #8 /www/wp-admin/admin-header.php(303): do_action('admin_notices')
    #9 /www/wp-admin/update-core.php(1026): require_once('/www/wp-admin/a...')
    #10 {main}
    ?thrown
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Dake

    (@dakeg)

    Hi @xd67

    Thanks for reaching out to us.

    Based on the error log you shared, it looks like there is a conflict with another plugin or custom code in your theme. Specifically, the conflict is attempting to replace our MailCatcher object with PHPMailer.

    You mentioned you already tried disabling other plugins, but there is a specific means to testing this issue.

    To confirm what plugin is causing the conflict on your end, we would suggest disabling your other plugins and then re-enabling them one by one to confirm which one is causing the conflict.

    To check if the conflict is still present, you would need to navigate to the “Send a test” page from the Easy WP SMTP dashboard menu. If the page loads successfully, then the conflict is not occurring and you can proceed to enable the next plugin and refresh the page.

    I hope this helps.

    Thread Starter xd67

    (@xd67)

    Hi, even when I have disabled all other plugins and also activated the standard theme (twenty one one) I get the critical errror when i update you plugin or even when I remove first the plugin and install it from scratch. During the activation I receive the test mail in my mailbox but after that the critical error occurs.

    What else can I do to get the root cause of this error ?

    Greetings,

    Andre Kremer

    Plugin Support Dake

    (@dakeg)

    Hi @xd67

    Thank you for keeping us posted and we apologize for the delay.

    Recently, we have seen this issue occur on one other website that may be from the same or similar website host. For reference purposes, who is your website host?

    Also, can you reach out to them to confirm if they have any MU plugins installed or if the wp-config.php file has any code that uses MailCatcher.

    Thread Starter xd67

    (@xd67)

    Hi…my host is Transip.nl

    I don’t see anything mentioned in the wp-config.php about MailCatcher…the only thing I see mentioned in the wp-config about mail is the following:

    /** TransIP fix: sendmail does not support flags. This fix is needed in order to make mailing work. */
    global $phpmailer;
    if ((!is_object( $phpmailer ) || !is_a( $phpmailer, ‘PHPMailer’ )) &&
    file_exists(ABSPATH . ‘/wp-includes/class-phpmailer.php’) &&
    file_exists(ABSPATH . ‘/wp-includes/class-smtp.php’)) {
    require_once ABSPATH . ‘/wp-includes/class-phpmailer.php’;
    require_once ABSPATH . ‘/wp-includes/class-smtp.php’;
    $phpmailer = new PHPMailer( true );
    }
    $phpmailer->UseSendmailOptions = false;

    Can this be a cause of my issue with the plugin ?

    Greetings, Andre Kremer

    Plugin Support Dake

    (@dakeg)

    Hi @xd67

    Thank you for sharing. Our developers have confirmed that the code in your wp-config.php file is responsible for the issue. Starting from ‘global $phpmailer’ onwards, that code would need to be removed/commented out to resolve the issue. In case your website host adds this code for a reason, you may want to consider reaching out to them first.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Critical error after upgrade to 2.1.0’ is closed to new replies.