• Resolved timrei

    (@timrei)


    Hi, i get a fatal error while clicking to site-health.php. How can it be resolved? Thanks in advance.

    WordPress-Version 6.5.3
    
    Aktives Theme: Bridge Child (Version 1.0.0) Aktuelles Plugin: Easy WP SMTP (Version 2.3.0) PHP-Version 8.2.18
    
    Fehler-Details
    
    ==============
    
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 124 der Datei /html/wordpress/wp-content/plugins/easy-wp-smtp/src/Providers/MailerAbstract.php verursacht. Fehlermeldung: Uncaught TypeError: EasyWPSMTP\Providers\MailerAbstract::__construct(): Argument #1 ($phpmailer) must be of type EasyWPSMTP\MailCatcherInterface, PHPMailer\PHPMailer\PHPMailer given, called in /html/wordpress/wp-content/plugins/easy-wp-smtp/src/Providers/Loader.php on line 179 and defined in /html/wordpress/wp-content/plugins/easy-wp-smtp/src/Providers/MailerAbstract.php:124
    
    Stack trace:
    
    #0 /html/wordpress/wp-content/plugins/easy-wp-smtp/src/Providers/Loader.php(179): EasyWPSMTP\Providers\MailerAbstract->__construct(Object(PHPMailer\PHPMailer\PHPMailer), NULL)
    
    #1 /html/wordpress/wp-content/plugins/easy-wp-smtp/src/Providers/Loader.php(134): EasyWPSMTP\Providers\Loader->get_entity('...', '...', Array)
    
    #2 /html/wordpress/wp-content/plugins/easy-wp-smtp/src/SiteHealth.php(181): EasyWPSMTP\Providers\Loader->get_mailer('...', Object(PHPMailer\PHPMailer\PHPMailer))
    
    #3 /html/wordpress/wp-admin/includes/class-wp-site-health.php(194): EasyWPSMTP\SiteHealth->mailer_setup_complete_test()
    
    #4 /html/wordpress/wp-admin/includes/class-wp-site-health.php(145): WP_Site_Health->perform_test(Array)
    
    #5 /html/wordpress/wp-includes/class-wp-hook.php(324): WP_Site_Health->enqueue_scripts('...')
    
    #6 /html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    
    #7 /html/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    
    #8 /html/wordpress/wp-admin/admin-header.php(118): do_action('...', '...')
    
    #9 /html/wordpress/wp-admin/site-health.php(96): require_once('...')
    
    #10 {main}
    
    ? thrown
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Dake

    (@dakeg)

    Hi @timrei

    Thanks for reaching out to us to us and we’re sorry to hear that you are running into a fatal error.

    If you are still seeing this error message, are you using any other SMTP or mail-related plugins? This is potentially a plugin conflict, so when you get a chance, can you share a list of your currently active plugins?

    A troubleshooting step you can attempt in the meantime is to disable all plugins except for Easy WP SMTP to confirm if the error message appears while only Easy Wp SMTP is active.

    Please note that I would not recommend performing this troubleshooting step on your live website. If you have a staging or test version of your website, then please perform the troubleshooting step there.

    If you do not currently have a staging website, then I would recommend creating a staging website by following the steps outlined in this article.

    If the error stops while Easy WP SMTP is the only active plugin, from there, please activate one plugin at a time and check to see if the site health error reappears after each activation.

    Once you confirm the conflicting plugin, please let us know.

    I’m looking forward to hearing back from you.

    Thread Starter timrei

    (@timrei)

    Hi Dake,

    thanks for your reply. I deactivated all plugins except Easy Wp SMTP on our staging site, but the error still pops up. So there seems to be no conflicting plugin!?

    I’m looking forward to hearing back from you.

    Thread Starter timrei

    (@timrei)

    Hi @dakeg ,

    despite several updates of easy wp smtp in the meantime, the error still occurs. What else can be done or checked?

    • This reply was modified 2 months, 2 weeks ago by timrei.
    Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @timrei!

    I’m Victoria and I’ll be stepping in for Dake here.

    The conflicting code can be located in your theme or we saw previously that some hosting providers overwrite the $phpmailer object in the wp-config.php file.

    Please, check if you have $phpmailer string occurrences in the theme or wp-config.php file. You can use the String locator plugin.

    Kind regards.

    Thread Starter timrei

    (@timrei)

    Hi @sakalvictoria ,

    thanks for your hint, there was indeed a string with phpmailer in the theme. i have commented it out, now everything works, thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.