Title: Errors on php8.0
Last modified: October 6, 2022

---

# Errors on php8.0

 *  Resolved [Mike de Jongh](https://wordpress.org/support/users/mikedjo/)
 * (@mikedjo)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/errors-on-php8-0/)
 * Hi there,
 * I get errors sending mails when using the “Other smtp” option on php8.0. When
   i switch back to php7.4 it works fine.
 *     ```
       2022/10/06 15:14:09 [error] 22923#22923: *8050507 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "mailsettings" not found or invalid function name in /home/user/domains/domainname.com/platform/public/wp-includes/class-wp-hook.php:307
       Stack trace:
       #0 /home/user/domains/domainname.com/platform/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
       #1 /home/user/domains/domainname.com/platform/public/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
       #2 /home/user/domains/domainname.com/platform/public/wp-includes/pluggable.php(542): do_action_ref_array('phpmailer_init', Array)
       #3 /home/user/domains/domainname.com/platform/public/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php(314): wp_mail(Array, 'WP Mail SMTP: H...', '\t\t<!doctype htm...', Array)
       #4 /home/user/domains/domainname.com/platform/public/wp-content/plugins/wp-mail-smtp/src/Admin/ParentPageAbstract.php(265): WPMailSMTP\Admin\Pages\TestTab" while reading response header from upstream, client: 83.219.76.26, server: www.domainname.com, request: "POST /wp-admin/admin.php?page=wp-mail-smtp-tools&tab=test HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm-user.sock:", host: "www.domainname.com", referrer: "https://www.domainname.com/wp-admin/admin.php?page=wp-mail-smtp-tools&tab=test"
       ```
   

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

 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/errors-on-php8-0/#post-16075594)
 * Hi [@mikedjo](https://wordpress.org/support/users/mikedjo/),
 * could you please let us know which version of our plugin you are using?
 * Also, do you have any other SMTP or email sending plugins active on your WP site?
 * We performed tests on PHP 8.0.23 and I just retested it on this PHP version, 
   using our latest version of the plugin (3.6.1), with the Other SMTP mailer and
   it all works OK. The test email is sending OK and there are not PHP errors.
 * Also, our plugin does not have a function called “mailsettings” which is referenced
   in your error, that’s why I’m interested if you have some other SMTP plugins 
   active.
 * Please let us know the answers, so we can try and help you out.
 * Take care!
 *  Thread Starter [Mike de Jongh](https://wordpress.org/support/users/mikedjo/)
 * (@mikedjo)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/errors-on-php8-0/#post-16076649)
 * Hi [@capuderg](https://wordpress.org/support/users/capuderg/) ,
 * You pushed me in the right direction, I still had a mailsettings class active
   in my theme..
 * You can ignore this topic, the plugin works fine with php8.0.
 * Thanks for your answer!
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/errors-on-php8-0/#post-16077663)
 * Hi [@mikedjo](https://wordpress.org/support/users/mikedjo/),
 * thank you very much for sharing the cause of that issue with us.
 * Have a nice day!

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

The topic ‘Errors on php8.0’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/errors-on-php8-0/#post-16077663)
 * Status: resolved