Title: critical error PHP
Last modified: April 10, 2025

---

# critical error PHP

 *  Resolved [Mathilde Rivoire](https://wordpress.org/support/users/mathilde-rivoire/)
 * (@mathilde-rivoire)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/critical-error-php-2/)
 * My web host has informed me of this 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 /app/www/wp-includes/class-wp-hook.php:
   324 Stack trace: #0 /app/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”,
   Array) #1 /app/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #2 /
   app/www/wp-includes/pluggable.php(581): do_action(‘wp_mail_failed’, Object(WP_Error))#
   3 /app/www/wp-content/plugins/forminator/library/abstracts/abstract-class-mail.
   php(433): wp_mail(Array, ‘Un message de m…’, ‘<p>Mike Martin …’, Array) #4 /app/
   www/wp-content/plugins/forminator/library/modules/custom-forms/front/front-mail.
   php(232): Forminator_Mail->send_multiple() #5 /app/www/wp-content/plugins/forminator/
   library/modules/custom-forms/front/front-action.php(1141): Forminator_CForm_Front_Mail-
   >process_mail(Object(Forminator_Form_Model), Object(Forminator_Form_Entry_Model))#
   6 /app/www/wp-content/plugins/forminator/library/modules/custom-forms/front/front-
   action.php(1123): Forminator_CForm_Front_Action::send_email(Object(Forminator_Form_Entry_Model))#
   7 /app/www/wp-content/plugins/forminator/library/abstracts/abstract-class-front-
   action.php(287): Forminator_CForm_Front_Action->handle_form() #8 /app/www/wp-
   content/plugins/forminator/library/abstracts/abstract-class-front-action.php(
   155): Forminator_Front_Action->handle_submit() #9 /app/www/wp-includes/class-
   wp-hook.php(324): Forminator_Front_Action->maybe_handle_submit(Object(WP)) #10/
   app/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#
   11 /app/www/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #12 /app/www/
   wp-includes/class-wp.php(830): do_action_ref_array(‘wp’, Array) #13 /app/www/
   wp-includes/functions.php(1336): WP->main(”) #14 /app/www/wp-blog-header.php(
   16): wp() #15 /app/www/index.php(17): require(‘/app/www/wp-blo…’) #16 {main} 
   thrown.
 * Can you fix it please ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-php-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/critical-error-php-2/#post-18411019)
 * Hi [@mathilde-rivoire](https://wordpress.org/support/users/mathilde-rivoire/),
 * The error is due to missing function:
   `handle_failed_email`
 * However, I can confirm there isn’t any such function which is part of Forminator.
   The error appears due to a custom function “handle_failed_email,” probably defined
   in the custom theme or a custom plugin.
 * Could you please check if there any such code added in your website? If yes, 
   please do share it, so that we could have a better idea.
 * Looking forward to your response.
 * Regards,
 * Nithin
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/critical-error-php-2/#post-18423601)
 * Hi [@mathilde-rivoire](https://wordpress.org/support/users/mathilde-rivoire/)
 * We haven’t heard from you in a while, I’ll go and mark this thread as resolved.
   If you have any additional questions or require further help, please let us know!
 * Kind Regards,
   Kris
 *  Thread Starter [Mathilde Rivoire](https://wordpress.org/support/users/mathilde-rivoire/)
 * (@mathilde-rivoire)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/critical-error-php-2/#post-18423613)
 * Sorry, it took me too long to reply! The problem was with the “Check & Log Email–
   Easy Email Testing & Mail logging” extension. I deactivated it and everything
   works now.

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

The topic ‘critical error PHP’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 3 participants
 * Last reply from: [Mathilde Rivoire](https://wordpress.org/support/users/mathilde-rivoire/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/critical-error-php-2/#post-18423613)
 * Status: resolved