PHP Fatal error: Uncaught TypeError
-
In latest 2.0.7 version this fatal is still thrown when mail fails to send:
PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, array must have exactly two members in /wordpress/core/6.8.1/wp-includes/class-wp-hook.php:324This is from
wp_mail_failedin /include/Check_Email_Notify_Tab.php on line 21:add_action('wp_mail_failed', array($this, 'handle_failed_email', 10, 1));This is malformed and should only pass 2 arguments instead of 4. You are passing priority incorrectly. It should be this:
add_action('wp_mail_failed', array($this, 'handle_failed_email'), 10, 1);Can you please fix so manual patching is not necessary?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘PHP Fatal error: Uncaught TypeError’ is closed to new replies.