• Resolved Marian Kadanka

    (@mariankadanka)


    Trying to send form with Contact Form 7, I’m getting:

    [20-May-2022 09:12:13 UTC] PHP Fatal error:  Uncaught Error: Class 'SendGrid\Mail\Mail' not found in /home/www/2ring/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanSendGridMailEngine.php:47
    Stack trace:
    #0 /home/www/2ring/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(236): PostmanSendGridMailEngine->send()
    #1 /home/www/2ring/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(60): PostmanWpMail->sendMessage()
    #2 /home/www/2ring/wp-content/plugins/post-smtp/Postman/Phpmailer/PostsmtpMailer.php(134): PostmanWpMail->send()
    #3 /home/www/2ring/wp-includes/pluggable.php(544): PostsmtpMailer->send()
    #4 /home/www/2ring/wp-content/plugins/contact-form-7/includes/mail.php(194): wp_mail()
    #5 /home/www/2ring/wp-content/plugins/contact-form-7/includes/mail.php(19): WPCF7_Mail->compose()
    #6 /home/www/2ring/wp-content/plugins/contact-form-7/includes/submission.php(637): WPCF7_Mail::send()
    #7 /home/www/2ring/wp-content/plugins/contact-form-7/includes/submission.php(98): WPCF7_Submission->mail()
    #8 /home/www/2ring/wp-content/plugins/contact-form-7/includes/submission.php(27): WPCF7_Submission->proceed()
    #9 /home/www/2ring/wp-content/plugins/contact-form-7/includes/contact-form.php(1042): WPCF7_Submission::get_instance()
    #10 /home/www/2ring/wp-content/plugins/contact-form-7/includes/controller.php(25): WPCF7_ContactForm->submit()
    #11 /home/www/2ring/wp-includes/class-wp-hook.php(305): wpcf7_control_init()
    #12 /home/www/2ring/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #13 /home/www/2ring/wp-includes/plugin.php(522): WP_Hook->do_action()
    #14 /home/www/2ring/wp-includes/class-wp.php(396): do_action_ref_array()
    #15 /home/www/2ring/wp-includes/class-wp.php(758): WP->parse_request()
    #16 /home/www/2ring/wp-includes/functions.php(1310): WP->main()
    #17 /home/www/2ring/wp-blog-header.php(16): wp()
    #18 /home/www/2ring/index.php(17): require('/home/www/2ring...')
    #19 {main}
      thrown in /home/www/2ring/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanSendGridMailEngine.php on line 47

    Post SMTP Version 2.0.27
    WordPress 5.9.3
    PHP version 7.4.3

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support M Haseeb

    (@haseeb0001)

    Hi @mariankadanka

    Hope you are doing good.

    Let me reproduce this issue on my staging website, will get back to you shortly.

    Thanks

    Thread Starter Marian Kadanka

    (@mariankadanka)

    To provide more info: I was altering CF7 fields using wpcf7_before_send_mail hook, maybe recipient or body fields was either missing or incorrect.

    In either way, plugin should test its inputs edge cases and throw errors gracefully, not break the site in this way.

    Plugin Support M Haseeb

    (@haseeb0001)

    Hi @mariankadanka

    We are unable to reproduce the mentioned issue on our staging site. It seems like the theme or some other plugin is conflicting with the Our plugin Can you change the theme to WordPress default 2022 or deactivate the plugins one by one and check if the issue still persists or not.

    Thanks

    Thread Starter Marian Kadanka

    (@mariankadanka)

    I’m not going to do that, I already use FluentSMTP which doesn’t have problem validating incorrect inputs in wp_mail() call and isn’t breaking the site.

    Plugin Support M Haseeb

    (@haseeb0001)

    @mariankadanka Okay, thanks for the update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Class ‘SendGrid\Mail\Mail’ not found’ is closed to new replies.