• Resolved lauren1122

    (@lauren1122)


    I keep getting a critical error every time I try to submit a form on my website while not being signed in. I checked it with another theme and it worked fine. How do I go about fixing this? This is the error message I get when I debug it.

    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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal Error’ is closed to new replies.