Title: PHP Fatal error call_user_func_array():
Last modified: December 19, 2022

---

# PHP Fatal error call_user_func_array():

 *  Resolved [robsekr](https://wordpress.org/support/users/robsekr/)
 * (@robsekr)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-call_user_func_array/)
 * Hi,
   Since updating to PHP8 i am not able to connect to my SendLayer server through
   wp mail smtp.i got the following error:
 * ﻿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 /www/indusigns_888/public/wp-includes/class-wp-hook.php:308
 * Stack trace:
 * #0 /www/indusigns_888/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(
   NULL, Array)
 * #1 /www/indusigns_888/public/wp-includes/plugin.php(565): WP_Hook->do_action(
   Array)
 * #2 /www/indusigns_888/public/wp-includes/pluggable.php(536): do_action_ref_array(‘
   phpmailer_init’, Array)
 * #3 /www/indusigns_888/public/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/
   TestTab.php(345): wp_mail(Array, ‘WP Mail SMTP: H…’, ‘\t\t<!doctype htm…’, Array)
 * #4 /www/indusigns_888/public/wp-content/plugins/wp-mail-smtp/src/Admin/ParentPageAbstract.
   php(265): WPMailSMTP\Admin\Pages\TestTab->process_post(Array)
 * #5 /www/indusigns_888/public/wp-includes/class-wp-hook.php(308): WPMailSMTP\Admin\
   ParentPageAbstract->process_actions(”)
 * #6 /www/indusigns_888/pu”

Viewing 1 replies (of 1 total)

 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-call_user_func_array/#post-16309611)
 * Hi [@robsekr](https://wordpress.org/support/users/robsekr/),
 * this looks like a 3rd party plugin conflict or maybe your web hosting is hooking
   into `phpmailer_init` WP core filter and causing this issue.
 * We are not using a `mailsettings` function in our plugin.
 * I would recommend search your site php files and see if you can find the reference
   where this `mailsettings` function is hooked (expected).
 * When you find the code, you’ll find what is causing this issue.
 * Please let us know how it goes.
 * Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error call_user_func_array():’ 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/)

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