Title: Error after update
Last modified: July 28, 2020

---

# Error after update

 *  Resolved [m290591](https://wordpress.org/support/users/m290591/)
 * (@m290591)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/)
 * Hello, following the update I have an error.
    I had to deactivate the plugin.
 * >  Path error on ‘/src/includes/MailjetMail.php’ line 27
 * `require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php`

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13182933)
 * Same here after updating to the latest 5.2.2 Plugin release from the last Plugin
   update.
 * [28-Jul-2020 21:56:28 UTC] PHP Warning: require_once([…]/wp-includes/PHPMailer/
   PHPMailer.php): failed to open stream: No such file or directory in […]/wp-content/
   plugins/mailjet-for-wordpress/src/includes/MailjetMail.php on line 26
    [28-Jul-
   2020 21:56:28 UTC] PHP Fatal error: require_once(): Failed opening required ‘[…]/
   wp-includes/PHPMailer/PHPMailer.php’ (include_path=’.:/opt/bitnami/php/lib/php’)
   in […]/wp-content/plugins/mailjet-for-wordpress/src/includes/MailjetMail.php 
   on line 26
 *  [inztinkt](https://wordpress.org/support/users/inztinkt/)
 * (@inztinkt)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13182946)
 * Auto-updating of the plugin leads to the fatal error.
    (needs the plugin folder
   to be deleted to re-access wp-admin and site)
 * Re-installing the plugin leads to the fatal error and doesn’t let the plugin 
   get activated.
 *  [prometee](https://wordpress.org/support/users/prometee/)
 * (@prometee)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13184712)
 * To fix the problem quickly you will have to update two lines in
    wp-content/plugins/
   mailjet-for-wordpress/src/includes/MailjetMail.php line 26 and 27 :
 *     ```
       require_once ABSPATH . WPINC . '/class-phpmailer.php';
       require_once ABSPATH . WPINC . '/class-smtp.php';
       ```
   
 * PHPMailer classes are in the root of `wp-includes/` folder in WP 5.4.2, but futur
   version of WordPress will update PHPMailer to a newer version and it will be 
   in `wp-includes/PHPMailer/`. Seems like the update of this plugin have been done
   before the new release of WordPress.
    -  This reply was modified 5 years, 10 months ago by [prometee](https://wordpress.org/support/users/prometee/).
      Reason: format
    -  This reply was modified 5 years, 10 months ago by [prometee](https://wordpress.org/support/users/prometee/).
    -  This reply was modified 5 years, 10 months ago by [prometee](https://wordpress.org/support/users/prometee/).
 *  [Gilles](https://wordpress.org/support/users/alizesonline/)
 * (@alizesonline)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13184746)
 * Same problem. The PHPMailer.php file is not at the place the plugin is looking
   for it, which causes a fatal error and makes the website crash completely.
    I
   reverted to the version 5.2.1 from a backup. That fixed the problem by the time
   the editor publishes a new debugged release.
 *  [Thomas_bck](https://wordpress.org/support/users/thomasbrunck/)
 * (@thomasbrunck)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13185232)
 * Thanks [@prometee](https://wordpress.org/support/users/prometee/) it works like
   a charm !
    Just need to wait for the plugin fix.
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13188230)
 * [@mailjet](https://wordpress.org/support/users/mailjet/) this Plugin needs an
   urgent Plugin update to restore it on w.org
 *  Plugin Author [Mailjet](https://wordpress.org/support/users/mailjet/)
 * (@mailjet)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13189345)
 * Hello,
    Sorry for the inconvenience, a new version has been pushed and should
   fix the issue. You will be able to get it as soon as the plugin will be reactivated.
   We are currently working on a version that will be compatible with WordPress 
   5.5 and previous versions. The release will be available in the next few days.
 *  [fabricelaborie](https://wordpress.org/support/users/fabricelaborie/)
 * (@fabricelaborie)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13190477)
 * [@mailjet](https://wordpress.org/support/users/mailjet/) , only 5.2.2 is available
   from github … [https://github.com/mailjet/wordpress-mailjet-plugin-apiv3/releases](https://github.com/mailjet/wordpress-mailjet-plugin-apiv3/releases)
   
   I suggest you post your fix there “now” …
 *  Plugin Author [Mailjet](https://wordpress.org/support/users/mailjet/)
 * (@mailjet)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13192393)
 * Hey everyone,
 * The plugin is back online: [https://wordpress.org/plugins/mailjet-for-wordpress/](https://wordpress.org/plugins/mailjet-for-wordpress/).
 * Thanks again for your patience and we apologize for the inconvenience.
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13201335)
 * Cheers 🙂

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Error after update’ is closed to new replies.

 * ![](https://ps.w.org/mailjet-for-wordpress/assets/icon.svg?rev=2994192)
 * [Mailjet Email Marketing](https://wordpress.org/plugins/mailjet-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailjet-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailjet-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/mailjet-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailjet-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailjet-for-wordpress/reviews/)

 * 10 replies
 * 8 participants
 * Last reply from: [Michael Visser](https://wordpress.org/support/users/visser/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/error-after-update-169/#post-13201335)
 * Status: resolved