WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] CF7 adding p tags, wont validate (4 posts)

  1. waterworks2
    Member
    Posted 1 year ago #

    I can't get my CF7 form to work and I'm wondering if the lack of validation could be the problem.

    The error I receive is: Failed to send your message. Please try later or contact the administrator by another method.

    Website is being hosted at http://www.Bluehost.com.
    Custom theme used from Theme Forest.

    I can't get validation on my form page. It seems that Contact Forms 7 is adding p tags automatically to the form causing validation problems. I found these solutions so far, but I want to know if either of these are truly the right solution?

    Potential solution 1:
    http://wordpress.org/support/topic/plugin-contact-form-7-plugin-adding-an-extra-p-tag

    Potential solution 2:
    define( 'WPCF7_AUTOP', false );
    Add the above tag in wp-config.php file

    ***

    I am using a custom theme.

    If I have no form on the page, the page validates just fine. But even if I add just one bit of form code, such as: [response] it causes a validation error of: "No p element in scope but a p end tag seen."

    When I add my entire form, I get 7 validation errors. The following is code for my form:

    http://pastebin.com/embed_js.php?i=NC98vG4i

    I used to a table in order to get the formatting to look decent for the phone number. There is probably a better way to do this but I am a newbie.

    Thanks for any help you can provide.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    The p tags have no relation to the validation issue. Try switching theme to the default one.

  3. waterworks2
    Member
    Posted 1 year ago #

    Thanks for the response.

    Ok, oddly enough, I tried changing the submit-to email to a different email address and the form works now. The company has their mail routed to their own mail server that is in-house. Whenever I choose an email within the company, the form doesn't work. If I choose my own email or some other random email (@yahoo, @hotmail, etc.) the form works. Any idea why this might be happening?

    Now, how to solve the extra p-tags problem that is happening, without switching themes, which is not possible due to custom theme being used.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Check the mail server logs.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic