PHP error when email fails to send
-
Hi, a PHP error occurs when email fails to send (for example in a local environment). This PHP error occurs only when your plugin is active. It doesn’t occur when your plugin is not active. WP 6.7.2, Check & Log Email 2.0.5.1, PHP 8.2.
[05-Mar-2025 09:50:50 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "handle_failed_email" not found or invalid function name in wp-includes\class-wp-hook.php:324
Stack trace:
#0 wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#1 wp-includes\plugin.php(517): WP_Hook->do_action(Array)
#2 wp-includes\pluggable.php(414): do_action('wp_mail_failed', Object(WP_Error))
#3 wp-content\plugins\check-email\include\helper-function.php(109): wp_mail(Array, 'Check & Log Ema...', '', Array)
#4 wp-includes\class-wp-hook.php(324): ck_mail_send_feedback('')
#5 wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#6 wp-includes\plugin.php(517): WP_Hook->do_action(Array)
#7 wp-admin\admin-ajax.php(192): do_action('wp_ajax_ck_mail...')
#8 {main}
thrown in wp-includes\class-wp-hook.php on line 324
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.