Title: Uncaught Error
Last modified: April 2, 2021

---

# Uncaught Error

 *  Resolved [hecforce](https://wordpress.org/support/users/hecforce/)
 * (@hecforce)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-25/)
 * Can you shed any light on how to deal with this error? This plugin seems to work
   in regards to sending email however this error is generated just by browsing 
   on the wp-admin backend while having nothing to do with anything related to this
   plugin or any form type. If this error persists I will have no choice but to 
   discontinue use of this plugin.
 * I have already uninstalled and reinstalled the plugin as well as disabled all
   plugins but this one. I made sure to check the “Uninstall WP Mail SMTP” option
   under the Misc tab to remove all data when I uninstalled. Running on php 7.4 
   and the latest version of WP 5.7
 * Error Details
    ============= An error of type E_ERROR was caused in line 58 of
   the file ..\wp-content\plugins\wp-mail-smtp\wp-mail-smtp.php. Error message: 
   Uncaught Error: Class ‘WPMailSMTP\Core’ not found in ..\wp-content\plugins\wp-
   mail-smtp\wp-mail-smtp.php:58 Stack trace: #0 ..\wp-content\plugins\wp-mail-smtp\
   wp-mail-smtp.php(64): wp_mail_smtp() #1 ..\wp-content\plugins\wp-mail-smtp\wp_mail_smtp.
   php(235): require_once(‘\\…’) #2 ..\wp-settings.php(391): include_once(‘\\…’)#
   3 ..\wp-config.php(98): require_once(‘\\…’) #4 ..\wp-load.php(37): require_once(‘\\…’)#
   5 ..\wp-admin\admin-ajax.php(22): require_once(‘\\…’) #6 {main} thrown

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

 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-25/#post-14280713)
 * Hi [@hecforce](https://wordpress.org/support/users/hecforce/),
 * that is a very strange error. The `WPMailSMTP\Core` class is, as its name suggests,
   a core class for our plugin and it is definitely available in our plugin code.
 * Does your server maybe use OPCache or any other code caching solution that might
   be causing this issue? That’s the only possibility that I can think of, that 
   could be causing such a problem.
 * You’ve already tried all other things that I would also suggest (disabling other
   plugins, re-installing the plugin, …)
 * Take care!
 *  Thread Starter [hecforce](https://wordpress.org/support/users/hecforce/)
 * (@hecforce)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-25/#post-14283045)
 * Agreed, it is very strange. As you stated all of the files are intact. It only
   happens on the backend while working in the site so not a huge deal but annoying
   nonetheless. Thanks for the reply.

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

 The topic ‘Uncaught Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - Free SMTP Plugin with Gmail, Outlook, Amazon SES, SendGrid, Mailgun, Zoho & other SMTP](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

## Tags

 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [hecforce](https://wordpress.org/support/users/hecforce/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/uncaught-error-25/#post-14283045)
 * Status: resolved