• Resolved mtg169

    (@mtg169)


    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:324

    This is from wp_mail_failed in /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)
  • Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Thank you for reaching out to us.

    We have raised a GitHub ticket regarding this concern, and it will be addressed in an upcoming update. We kindly request your patience in the meantime.

    Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Hope you’re doing well.

    We’ve released an update version 2.0.8 in which this issue has been fixed. Kindly update the plugin to the latest version, clear the cache, and give it a try.

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

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