Title: PHP Fatal error
Last modified: October 23, 2020

---

# PHP Fatal error

 *  [oscarviedmaweb](https://wordpress.org/support/users/oscarviedmaweb/)
 * (@oscarviedmaweb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-232/)
 * Hello I have the following error with your plugin:
 * PHP Fatal error: Cannot declare class PHPMailer\PHPMailer\SMTP, because the name
   is already in use in /home/xxx/academia.ovdivi.com/wp-includes/PHPMailer/SMTP.
   php on line 30
 * It also happens that when responding to a comment, when sending the test email
   this error appears:
 * “There has been a critical error on your website. Learn more about debugging 
   in WordPress.”
    -  This topic was modified 5 years, 7 months ago by [oscarviedmaweb](https://wordpress.org/support/users/oscarviedmaweb/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-232%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-232/#post-13584369)
 * Hi [@oscarviedmaweb](https://wordpress.org/support/users/oscarviedmaweb/),
 * The error:
    `Cannot declare class PHPMailer\PHPMailer\SMTP, because the name 
   is already in use` is the same as for [other users who reported it](https://wordpress.org/support/topic/critical-error-107/),
   so the cause is probably the same (a WP 5.5 incompatible plugin).
 * Please try the plugin deactivation/activation method:
    Try to deactivate all 
   plugins, except for the WP Mail SMTP, then try to send an email and see if it
   still fails?
 * If it doesn’t you can enabled the plugins back one by one and see which ones 
   cause the issue.
 * You can also read over this thread: [https://wordpress.org/support/topic/critical-error-107/](https://wordpress.org/support/topic/critical-error-107/)
   and see if you can spot any plugins that caused issues for other users that you
   are using on your WP site.
 * Let me know which plugin/theme was causing issues for you.
 * Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](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

 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-232/#post-13584369)
 * Status: not resolved