• Resolved tungdangthanh

    (@tungdangthanh)


    I’m using WPForms Lite for contact form on most of the pages on my website. However, lately I’ve encountered this problem where after filling out and submitting the form, the website shows the error message: “There has been a critical error on this website. Learn more about troubleshooting WordPress.”

    I tried running the site in debug mode and got this error message after hitting the submit button:

    Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/htsol196/public_html/wp-includes/PHPMailer/PHPMailer.php:874 Stack trace: #0 /home/htsol196/public_html/wp-includes/PHPMailer/PHPMailer.php(1930): PHPMailer\PHPMailer\PHPMailer->mailPassthru() #1 /home/htsol196/public_html/wp-includes/PHPMailer/PHPMailer.php(1658): PHPMailer\PHPMailer\PHPMailer->mailSend() #2 /home/htsol196/public_html/wp-includes/PHPMailer/PHPMailer.php(1494): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /home/htsol196/public_html/wp-includes/pluggable.php(548): PHPMailer\PHPMailer\PHPMailer->send() #4 /home/htsol196/public_html/wp-content/plugins/wpforms-lite/includes/emails/class-emails.php(408): wp_mail() #5 /home/htsol196/public_html/wp-content/plugins/wpforms-lite/includes/class-process.php(832): WPForms_WP_Emails->send() #6 /home/htsol196/public_html/wp-content/plugins/wpforms-lite/includes/class-process.php(430): WPForms_Process->entry_email() #7 /home/htsol196/public_html/wp-content/plugins/wpforms-lite/includes/class-process.php(109): WPForms_Process->process() #8 /home/htsol196/public_html/wp-includes/class-wp-hook.php(307): WPForms_Process->listen() #9 /home/htsol196/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #10 /home/htsol196/public_html/wp-includes/plugin.php(524): WP_Hook->do_action() #11 /home/htsol196/public_html/wp-includes/class-wp.php(787): do_action_ref_array() #12 /home/htsol196/public_html/wp-includes/functions.php(1330): WP->main() #13 /home/htsol196/public_html/wp-blog-header.php(16): wp() #14 /home/htsol196/public_html/index.php(17): require('/home/htsol196/...') #15 {main} thrown in /home/htsol196/public_html/wp-includes/PHPMailer/PHPMailer.php on line 874

    Both WordPress and WPForms on my site are in their latest version.

    Any help would be appreciated. Thanks in advanced.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @tungdangthanh,

    Thanks for contacting us!

    This error is referring to the default PHP Mailer that most systems will come preinstalled with but it looks like your system does not have the default mailer and the only way to fix this would be to install the PHP Mailer library but this will require access at a server level and you may need to contact your hosting provider to help with this. Depending on what type of operating system your server is running on, you will need to install it following those instructions.

    Please let me know how it goes!

    Kindly,

    Thread Starter tungdangthanh

    (@tungdangthanh)

    After I installed and set up the WP SMTP Mail plugin the problem seems to be fixed. Thanks for replying!

    Glad to hear that @tungdangthanh. Please feel free to reachout if you have any questions.

    Kindly,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Uncaught Error: PHPMailer’ is closed to new replies.