Title: Plugin Stopped Working on Version 5.5
Last modified: August 18, 2020

---

# Plugin Stopped Working on Version 5.5

 *  [vagu71](https://wordpress.org/support/users/vagu71/)
 * (@vagu71)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/)
 * Updated wordpress to version 5.5, where the core team seems to have changed the
   way phpMailer is implemented. After the update, the debug test email option is
   not working anymore.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/page/2/?output_format=md)

 *  Thread Starter [vagu71](https://wordpress.org/support/users/vagu71/)
 * (@vagu71)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13276478)
 * When the following code is added right at the top of the easy-wp-smtp.php file
   in the plugin folder, the plugin starts working:
 *     ```
       require_once '[complete-path]/wp-includes/PHPMailer/PHPMailer.php';
       require_once '[complete-path]/wp-includes/PHPMailer/SMTP.php';
       require_once '[complete-path]/wp-includes/PHPMailer/Exception.php';
       ```
   
 * Without this code, the error that is received is as follows:
 * Fatal error: Class ‘PHPMailer\PHPMailer\Exception’ not found in [server-path]/
   wp-includes/PHPMailer/PHPMailer.php on line 1859
 * There has been a critical error on your website. Please check your site admin
   email inbox for instructions.
    -  This reply was modified 5 years, 9 months ago by [vagu71](https://wordpress.org/support/users/vagu71/).
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13277740)
 * Hi, thank you for sharing your findings. I have submitted a message to the developers
   to investigate further your findings.
 * Kind regards
 *  [Flexer](https://wordpress.org/support/users/flexer/)
 * (@flexer)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13279385)
 * Same problem here
 *  [wp.insider](https://wordpress.org/support/users/wpinsider-1/)
 * (@wpinsider-1)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13284637)
 * Your server’s PHP version maybe too old to recognize the new syntax. What version
   of PHP is being used on this server?
 *  Thread Starter [vagu71](https://wordpress.org/support/users/vagu71/)
 * (@vagu71)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13285650)
 * Where are the following files being called in the plugin:
 * PHPMailer.php
    SMTP.php Exception.php
 * Unable to locate these in the easy-wp-smtp.php file. There is code that checks
   if the wordpress version is = 5.4.99 and then calls then down below from the 
   wp include directory. The wordpress version is now 5.5. The plugin code needs
   an update. You need to be checking if the version is > 5.4.99 and then call these
   files from wp include. In short, the below code needs updation:
 *     ```
       if ( version_compare( $wp_version, '5.4.99' ) > 0 ) {
       	require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
       	require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
       	$mail = new PHPMailer( true );
       } else {
       	require_once ABSPATH . WPINC . '/class-phpmailer.php';
       	$mail = new \PHPMailer( true );
       }
       ```
   
    -  This reply was modified 5 years, 9 months ago by [vagu71](https://wordpress.org/support/users/vagu71/).
    -  This reply was modified 5 years, 9 months ago by [vagu71](https://wordpress.org/support/users/vagu71/).
 *  [wp.insider](https://wordpress.org/support/users/wpinsider-1/)
 * (@wpinsider-1)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13290421)
 * [@vagu71](https://wordpress.org/support/users/vagu71/), Your assessment about
   the “version number” comparing is not correct. Please note that this plugin is
   being used many thousands of websites. If it stopped working for 5.5, then many
   thousands would complain.
 * Also, we are using it ourselves on the many sites that are using WP5.5 right 
   now and it works fine.
 * The issue is something specific to your server setup. There is a small sub-set
   of server setup conditions that are making it fail on your site. We are looking
   at ways to make it more robust so it doesn’t fail on the small number of sites
   where it is currently failing for wp5.5.
 * Please download the following test version of the plugin and use it on your site
   and let us know if it works better or not:
    [https://github.com/Arsenal21/easy-wp-smtp/releases/download/1.4.2t1/easy-wp-smtp.zip](https://github.com/Arsenal21/easy-wp-smtp/releases/download/1.4.2t1/easy-wp-smtp.zip)
 *  [stinkykong](https://wordpress.org/support/users/stinkykong/)
 * (@stinkykong)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13294279)
 * Same happening for me but also not on all sites. I can’t figure out the conflict
   but with WP5.5 the test messages stop sending and also Gravity Forms messages
   stop sending. When I de-activate EasySMTP the forms work and when I downgrade
   back to WP5.4.2 everything works.
 *  [wp.insider](https://wordpress.org/support/users/wpinsider-1/)
 * (@wpinsider-1)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13295916)
 * [@stinkykong](https://wordpress.org/support/users/stinkykong/), Can you please
   try it with the following version and let us know if you still see the same issue
   or not?
    [https://github.com/Arsenal21/easy-wp-smtp/releases/download/1.4.2t1/easy-wp-smtp.zip](https://github.com/Arsenal21/easy-wp-smtp/releases/download/1.4.2t1/easy-wp-smtp.zip)
 *  [stinkykong](https://wordpress.org/support/users/stinkykong/)
 * (@stinkykong)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13298720)
 * [@wp](https://wordpress.org/support/users/wp/).insider. I updated an find no 
   difference. Same behaviors with Gravity Forms and also EasySMTP test messages
   not being sent.
 *  [jconfer](https://wordpress.org/support/users/jconfer/)
 * (@jconfer)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13305450)
 * I am also experiencing the same issues. I updated to WP 5.5 and emails have quit
   sending from the site when our Formidable form is submitted. The test message
   isn’t sending as well with and without other plugins activated. When we reverted
   back to 5.4 the plugin works fine.
 *  [stinkykong](https://wordpress.org/support/users/stinkykong/)
 * (@stinkykong)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13305566)
 * I moved my site to staging, disabled all plugins except Gravity Forms and EasySMTP.
   With WordPress’s 2020 theme, I still had the same issue. I disabled EasySMTP 
   and tried another plugin that had been updated three days ago and still had the
   same issue. I contacted my hosting at WPEngine for any advise or knowledge. They
   ran debugging and found WP 5.5 has missing files. I won’t do justice to report
   them here but will try and WPEngine said they would contact developers to report
   their findings. This was all new to them as well so it seems we’re all breaking
   ground with this. Here is what they said is missing in WP 5.5 and plugins seem
   to still be attempting to connect to it:
 * /nas/content/live/crouchstage/wp-includes/PHPMailer/SMTP.php on line 1169
 * They elaborate a bit saying: The file and line code mentioned at the end there
   is actually a brand-new part of WordPress as of 5.5 – this directory doesn’t 
   exist at all in 5.4.2.
 * More said but basically recommending not updating to 5.5 until this is resolved.
 * I use Reisetiger’s WP Downgrade plugin to revert to 5.4.3 [https://wordpress.org/plugins/wp-downgrade/](https://wordpress.org/plugins/wp-downgrade/)
 * My hosting company allows 5.4.2 to remain. Some hosting companies force an auto
   update.
 *  [wp.insider](https://wordpress.org/support/users/wpinsider-1/)
 * (@wpinsider-1)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13307870)
 * [@stinkykong](https://wordpress.org/support/users/stinkykong/), Thank you for
   the update. That explains why we are not seeing this same behavior on most other
   sites.
 * Maybe the WP Core file upgrade issue is specific to some hosting company. Is 
   everyone with this issue using WP Engine hosting?
 *  [jconfer](https://wordpress.org/support/users/jconfer/)
 * (@jconfer)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13323878)
 * I am using WPEngine as a host too. Thanks for sharing what you found out.
 *  [joycegrace](https://wordpress.org/support/users/joycegrace/)
 * (@joycegrace)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13341624)
 * I have this problem on WP Engine, WP 5.5, PHP 7.4, everything up to date, Genesis
   theme.
 *  [wojsmol](https://wordpress.org/support/users/wojsmol/)
 * (@wojsmol)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/#post-13703807)
 * Hi [@wpinsider-1](https://wordpress.org/support/users/wpinsider-1/)
    I faced 
   this issue today on website with php 5.6 and WordPress 5.5.3. Issue occurs only
   when SMTP settings are incorrect and WP Easy SMTP is trying to raise `PHPMailer\
   PHPMailer\Exception`. IMHO issue is caused by missing `require_once ABSPATH .
   WPINC . '/PHPMailer/Exception.php';` in `easy-wp-smtp/easy-wp-smtp.php` instead
   of
 *     ```
       if ( version_compare( $wp_version, '5.4.99' ) > 0 ) {
       			require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
       			require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
       			$mail = new PHPMailer( true );
       		} else {
       			require_once ABSPATH . WPINC . '/class-phpmailer.php';
       			$mail = new \PHPMailer( true );
       		}
       ```
   
 * this should be
 *     ```
       if ( version_compare( $wp_version, '5.4.99' ) > 0 ) {
       			require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
       			require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
       			require_once ABSPATH . WPINC . '/PHPMailer/Exception.php';
       			$mail = new PHPMailer( true );
       		} else {
       			require_once ABSPATH . WPINC . '/class-phpmailer.php';
       			$mail = new \PHPMailer( true );
       		}
       ```
   
 * I’m using WP Easy SMTP version 1.4.1.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/page/2/?output_format=md)

The topic ‘Plugin Stopped Working on Version 5.5’ is closed to new replies.

 * ![](https://ps.w.org/easy-wp-smtp/assets/icon.svg?rev=3158017)
 * [Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more](https://wordpress.org/plugins/easy-wp-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-wp-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-wp-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-wp-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-wp-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-wp-smtp/reviews/)

 * 17 replies
 * 8 participants
 * Last reply from: [wojsmol](https://wordpress.org/support/users/wojsmol/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-version-5-5/page/2/#post-13712360)
 * Status: not resolved