ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

contact form stopped work

February 02, 2011 4:24pm

Subscribe [5]
  • #1 / Feb 02, 2011 4:24pm

    tomotechi

    23 posts

    Hello,

    Contact forms that have previously been working have suddenly started throwing errors:

    The following errors were encountered
    
        * Your email had no valid recipients.
    
    Return to Previous Page

    The recipients form field is dynamically set with data from an entry field - this seems to be encrypted in the html source, so i cannot verify what is being placed there.  the entry field does contain a valid email address.

    any suggestions on how i might proceed with troubleshooting?

    thx!

  • #2 / Feb 03, 2011 7:50am

    John Henry Donovan

    12339 posts

    tomotechi,

    For that particular channel go into its preferences and turn off Automatically turn URLs and email addresses into links? under Channel Posting Preferences

  • #3 / Feb 03, 2011 1:00pm

    tomotechi

    23 posts

    That is how this channel is currently configured

  • #4 / Feb 04, 2011 4:51am

    Ingmar

    29245 posts

    What version and build of EE are you using? Can you show us your EE template? When you say “have previously been working”, can you think of anything that has changed since then on your server or site?

  • #5 / Feb 04, 2011 5:17am

    John Henry Donovan

    12339 posts

    tomotechi,

    The recipients form field is dynamically set with data from an entry field

    Can you also explain how you are doing that?
    Are you wrapping the contact form tags in any other tags?

  • #6 / Feb 04, 2011 12:47pm

    tomotechi

    23 posts

    yes.  the opening channel entries tag is further up the template, but it is there and the rest of the channel fields are working fine. i should note that this has been working for nearly a year… just not sure what changed.

    <div id = "property-contact-form">
                   {exp:email:contact_form user_recipients="false" 
                    recipients="{property-broker}" 
                    return="{site_url}"
                    replyto="yes"
                    charset="utf-8"}
                    
                    <label for="from" class = "olive">Your Email:</label>
    
                    <input type="text" id="from" name="from" size="20" maxlength="35" value="" /></p>
                    
                    <label for="name"  class = "olive">Your Name:</label>
    
                    <input type="text" id="name" name="name" size="20" value="" /></p>
                    
                    <label for="message" class = "olive">Message:</label>
    
                    <textarea id="message" name="message[]" rows="6" cols="24"></textarea>
                    <input type="hidden" name="subject" value="{title} Contact Form Submission">
                    <a id="contact-button">SUBMIT</a>
                
                    {/exp:email:contact_form}
                  </div>

    here is the source output:

    <div id = "property-contact-form">
                   <form id="contact_form" method="post" action="http://newregionalplanning.com/"  >
    <div class='hiddenFields'>
    <input type="hidden" name="XID" value="11cc3fede5791101b71e1114c90b49594b2995b5" />
    <input type="hidden" name="ACT" value="3" />
    <input type="hidden" name="RET" value="http://newregionalplanning.com/" />
    <input type="hidden" name="URI" value="properties/single/2300-chenevert" />
    <input type="hidden" name="recipients" value="5sQ9unQ4JmqArB24V4AOu5Q6wMhUF6HElXjHC1goSWk=" />
    <input type="hidden" name="user_recipients" value="72c8199d3dbb020ae51c1f7a081f3478" />
    <input type="hidden" name="charset" value="utf-8" />
    <input type="hidden" name="redirect" value="" />
    
    <input type="hidden" name="replyto" value="yes" />
    <input type="hidden" name="site_id" value="1" />
    </div>
    
    
                    
                    <label for="from" class = "olive">Your Email:</label>
    
                    <input type="text" id="from" name="from" size="20" maxlength="35" value="" /></p>
                    
                    <label for="name"  class = "olive">Your Name:</label>
    
                    <input type="text" id="name" name="name" size="20" value="" /></p>
                    
                    <label for="message" class = "olive">Message:</label>
    
    
                    <textarea id="message" name="message[]" rows="6" cols="24"></textarea>
                    <input type="hidden" name="subject" value="2300 Chenevert Contact Form Submission">
                    <a id="contact-button">SUBMIT</a>
                
                    </form>
                  </div>
    
    
                
                {/exp:channel:entries}
  • #7 / Feb 05, 2011 3:35pm

    Greg Salt

    3988 posts

    Hi tomotechi,

    Can you please let us know which version and build you are now using? What might have changed on this site recently? Has EE been upgraded? Has your server been upgraded or moved?

    Cheers

    Greg

  • #8 / Feb 05, 2011 3:42pm

    tomotechi

    23 posts

    ExpressionEngine v2.1.1 - © Copyright 2003 - 2010 EllisLab, Inc.
    Script executed in 10.1125 seconds - 30 SQL queries used - Build:  20101020

    I did move the hosting several times. What stumps me is that other contact forms on the site in question do work.  I did try clearing all the EE caches.

  • #9 / Feb 06, 2011 6:57pm

    Sue Crocker

    26054 posts

    How do the contact forms differ?

  • #10 / Feb 06, 2011 7:06pm

    tomotechi

    23 posts

    they have the recipient field hard coded.  the forms that are not working have that field populated dynamically based on user input in an entry form.

  • #11 / Feb 07, 2011 4:05pm

    Ingmar

    29245 posts

    “Dynamically” means being set on the fly? Can you show us a little more of your code? How and where is {property-broker} set?

  • #12 / Feb 07, 2011 4:16pm

    tomotechi

    23 posts

    bah! i found it when i went to copy this code in for you.  i noticed i had a nested channel entries tag for some dumb reason. notice the first <ul> below… dunno why i did this, but i had wrapped a second exp:channel:entries tag around that second set of reverse_related_entries which pull the property siteplan…

    still, its mysterious its been working for so long!

    
    
    


    as per usual, thanks for the guidance!!

  • #13 / Feb 08, 2011 9:15am

    Sue Crocker

    26054 posts

    Sometimes you just need another quick look. Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases