Support » Plugin: Stop Emails » Deprecated message on WP 5.5

  • Resolved darkpollo

    (@darkpollo)


    I got this message on my wp 5.5 installation using Query Monitor:

    class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.

    WordPress 5.5
    PHP 7.4

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same here. On sites using this plugin I get the debug message. Traced it back to file /wp-content/plugins/stop-emails/stop-emails.php line 23:

    // Load PHPMailer class, so we can subclass it.
    require_once ABSPATH . WPINC . '/class-phpmailer.php';

    with kind regards, Edith

    Plugin Author Sal Ferrarello

    (@salcode)

    Thank you both for your feedback.

    While I was aware of the impending deprecation notices, I underestimated the impact it would have on people who use this plugin. I apologize for this.

    I am tracking the technical details of the changes I need to make at https://github.com/salcode/stop-emails/issues/18

    I have some dedicated time this Friday, 2020-08-28, that I plan to use to resolve this issue and release a new version of the Stop Emails plugin.

    Thank you again for your helpful feedback.

    Just to say thank you for getting on to this.
    The plugin is really appreciated!

    Plugin Author Sal Ferrarello

    (@salcode)

    I’ve just release version 1.2.1 of this plugin which eliminates the

    PHP Deprecated: class-phpmailer.php is deprecated since version 5.5.0!

    message in the error log. This change is backwards compatible and will work on previous versions of WordPress, as well.

    Thank you all for your patience and kind words.

    Thank you very much for the quick fix! I very much appreciate your plugin on my development sites to stop accidental emails going out.

    Plugin Author Sal Ferrarello

    (@salcode)

    Thank you ๐Ÿ˜€

    Thread Starter darkpollo

    (@darkpollo)

    Thank you very much!

    That is an amazing and fast fix from a free plugin. ๐Ÿ™‚

    Really appreciated.

    Best regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Deprecated message on WP 5.5’ is closed to new replies.