• Resolved bmbingham

    (@bmbingham)


    So if I fill out my entire contact form and hit submit I get a 404 error. If I don’t fill out the whole contact form and hit submit I get this error:

    “Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: (setFrom) ‘ in /home/bmbingham/pirateradio.productions/wp-includes/class-phpmailer.php:1023 Stack trace: #0 /home/bmbingham/pirateradio.productions/wp-includes/pluggable.php(352): PHPMailer->setFrom(”, ‘Brian Bingham’, false) #1 /home/bmbingham/pirateradio.productions/wp-content/plugins/contact-form-7/includes/mail.php(111): wp_mail(‘info@pirateradi…’, ‘”” Inquiry’, ‘Name: Brian Bin…’, ‘From: Brian Bin…’, Array) #2 /home/bmbingham/pirateradio.productions/wp-content/plugins/contact-form-7/includes/mail.php(18): WPCF7_Mail->compose() #3 /home/bmbingham/pirateradio.productions/wp-content/plugins/contact-form-7/includes/submission.php(258): WPCF7_Mail::send(Array, ‘mail’) #4 /home/bmbingham/pirateradio.productions/wp-content/plugins/contact-form-7/includes/submission.php(157): WPCF7_Submission->mail() #5 /home/bmbingham/pirateradio.productions/wp-content/plugins/contact-form-7/includes/submission.php(28): WPCF7_Submission->submit() #6 in /home/bmbingham/pirateradio.productions/wp-includes/class-phpmailer.php on line 1023″

    I’ve tried the default theme and I get the same errors.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    What do you have in the Mail tab?

    Thread Starter bmbingham

    (@bmbingham)

    Mail
    In the following fields, you can use these mail-tags:
    [name][company][address][city][state][zip][phone][email][type][date][location][budget][attendance][find][details]
    To [email protected]

    From [name] <[email]>

    This field has syntax errors. How to correct this?
    Subject “[type]” Inquiry

    Additional Headers

    Message Body Name: [name]
    Company: [company]
    Address: [address]
    City: [city]
    State: [state]
    Zip Code: [zip]
    Phone: [phone]
    Email: [email]
    Event Type: [type]
    Event Date: [date]
    Event Location: [location]
    Estimated Budget: [budget]
    Estimated Attendance: [attendance]
    How Did You Find Us: [find]

    Event Details:
    [details]

    ===================================
    This email was sent from the contact form on https://www.PirateRadio.Productions

    Exclude lines with blank mail-tags from output
    Use HTML content type
    File Attachments

    Mail (2)
    Use Mail (2)
    Mail (2) is an additional mail template often used as an autoresponder.

    Thread Starter bmbingham

    (@bmbingham)

    I realize there is a syntax error in the “from” section. But this has always worked for me. I can’t use a reply to header because the mail program in windows 10 doesn’t read reply to headers.

    Thread Starter bmbingham

    (@bmbingham)

    So I believe it’s giving me the fatal error if they don’t put an email address in. If they do put an email address in I get a 404 error. When I get a 404 error the URL I’m redirected to is: https://www.pirateradio.productions/contact/#wpcf7-f449-p58-o1

    Thread Starter bmbingham

    (@bmbingham)

    This was the plugin that was causing the issue: https://www.ads-software.com/plugins/autoptimize/

    Should all caching plugins be avoided?

    Hi @bmbingham & @takayukister;
    Autoptimize is not a (page) caching plugin, but rather a JS & CSS optimizer (which does cache the optimized CSS/ JS though).

    I *guess* the problem is that some of CF7’s functionality depends on JS and that *something* (could be CF7 JS or some other plugins’, look at the browser console for JS errors) breaks when AO is running.

    Best thing to do (as per the troubleshooting tips in AO’s FAQ) would be to exclude the CF7 JS from optimization.

    Let me know if I can be of any further assistance!
    kind regards,
    frank

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    The direct reason for your 404 error is explained in this FAQ:

    My contact form always redirects to 404 error page after submission.

    You are using unavailable field names in the form, such as “name”.

    I have no confirmation that the Autoptimize plugin has something to do with this case. I guess the same problem probably happens even without Autoptimize.

    Anyway, ignoring config validation alerts is not a smart idea.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error on Submit’ is closed to new replies.