• Resolved lauren1122

    (@lauren1122)


    Every time someone goes to submit to the forms on our website, we get the error “There has been a critical error on your website” but it is only when using the forms on WPForms. How do I go about fixing this?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @lauren1122,

    Sorry to hear that!

    When you get the chance, could you try setting up error logs for your site by following our guide to enable debugging.

    This will enable you to record error messages for further troubleshooting, and you can share them with us here.

    Hope this helps!

    Thread Starter lauren1122

    (@lauren1122)

    This is the error message I received

    [19-Aug-2020 16:44:46 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to cs_phpmailer_init() must be an instance of PHPMailer, instance of PHPMailer\PHPMailer\PHPMailer given, called in /var/www/wp-includes/class-wp-hook.php on line 287 and defined in /var/www/wp-content/themes/carservice/functions.php:326
    Stack trace:
    #0 /var/www/wp-includes/class-wp-hook.php(287): cs_phpmailer_init(Object(PHPMailer\PHPMailer\PHPMailer))
    #1 /var/www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /var/www/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
    #3 /var/www/wp-includes/pluggable.php(494): do_action_ref_array(‘phpmailer_init’, Array)
    #4 /var/www/wp-content/plugins/wpforms-lite/includes/emails/class-emails.php(408): wp_mail(Array, ‘New Job Applica…’, ‘<!doctype html>…’, Array, Array)
    #5 /var/www/wp-content/plugins/wpforms-lite/includes/class-process.php(692): WPForms_WP_Emails->send(‘Contact@autospa…’, ‘New Job Applica…’, ‘{all_fields}’)
    #6 /var/www/wp-content/plugins/wpforms-lite/includes/class-process.php(342) in /var/www/wp-content/themes/carservice/functions.php on line 326

    Hello @lauren1122,

    I apologize for the delayed response.

    I got in touch with our developers and it appears that the theme that’s active on the website “carservice”, is incompatible with WordPress 5.5.

    In case it helps, WordPress 5.5 updated the PHPMailer version from 5.x to 6.x. It appears that the theme is using “cs_phpmailer_init()” function which is not compatible with WordPress 5.5. The error is pointing to WPForms Lite because the plugin tries to send an email.

    When you have some time, please get in touch with the theme developers to make the theme compatible with WordPress 5.5.

    Thanks!

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

The topic ‘Critical Error’ is closed to new replies.