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.

Forms on my site have stopped working

January 07, 2010 4:50pm

Subscribe [4]
  • #1 / Jan 07, 2010 4:50pm

    tubes

    10 posts

    Recently, both my search forms and my freeform contact form have stopped working on my site. I didn’t modify them in any way, they simply stopped working and just redirect someone to the home page of the site rather than returning search results or emailing the form contents.

    http://www.northrupkingbuilding.com/search
    http://www.northrupkingbuilding.com/leasing

    I’m using Rackspace cloud hosting and my other EE sites on my account are fine so I don’t think they changed anything on their end. I’m running 1.6.8.

    Below is the code from my contact form and the search page is just the default EE one.

    Anyone have any ideas why it might have stopped working? Thanks.

    {exp:freeform:form form_name="leasing" form_class ="cmxform" required="name|email|phone1|medium|studio" notify="[email protected]" template="leasing" return="{site_url}artattack"}
                        <fieldset>
                        <legend>Your Information</legend>
                        <ol>
                            <li>
                                <label>Name</label>
                                <input type="text" name="name" id="name" />
                            </li>
                            <li>
                                <label>Email</label>
                                <input type="text" name="email" id="email" />
                            </li>
                            <li>
                                <label>Phone</label>
                                <input type="text" name="phone1" id="phone1" />
                            </li>
                            <li>
                                <label>Website</label>
                                <input type="text" name="website" id="website" />
                            </li>
                            <li>
                                <label>Type of Work </label>
                                <input type="text" name="medium" id="medium" /><br >
                                <span>(painting, photography, sculpture, showroom, office, etc.)</span>
                            </li>
                            <li>
                                <label>Which Studio </label>
                                <input type="text" name="studio" id="studio" /><br >
                                <span>(List the studio # you are interested in.)</span>
                            </li>
                            <li>
                                <label>Comments</label>
                                <textarea name="comments" id="comments" cols="25" rows="7"></textarea>
                            </li>
                        </ol>
                        </fieldset>
                        <input type="submit" name="submit" id="submit" value="Submit" />
                    {/exp:freeform:form}
  • #2 / Jan 07, 2010 5:01pm

    Ingmar

    29245 posts

    If it breaks all of a sudden, chances are something did change on the server. Have you asked them to make sure?

  • #3 / Jan 07, 2010 5:06pm

    tubes

    10 posts

    I have a ticket in with them and waiting for a reply, thanks.

  • #4 / Jan 07, 2010 5:08pm

    Ingmar

    29245 posts

    Sure. Just keep us in the loop, please.

  • #5 / Jan 07, 2010 5:12pm

    tubes

    10 posts

    The only thing is my other sites with forms on the same server are just fine so that’s what makes me think it’s not them. Could it be a corrupt file? Would a fresh install help?

    When they respond I’m guessing the are just going to tell me that my from action isn’t valid because it points to my homepage, which is what it’s supposed to do.

  • #6 / Jan 07, 2010 5:19pm

    Ingmar

    29245 posts

    Could it be a corrupt file? Would a fresh install help?

    A corrupt files is always a possibility. Just make sure yo don’t re-install (you’d lose all of your data that way): simply re-uploading your EE files will do the trick. Even so, be sure to make a backup.

  • #7 / Jan 07, 2010 5:33pm

    tubes1

    32 posts

    Gotcha, thanks.

  • #8 / Jan 07, 2010 5:38pm

    Ingmar

    29245 posts

    Let us know if that did anything for you, and/or when your host gets back to you. Thanks.

  • #9 / Jan 07, 2010 6:59pm

    tubes1

    32 posts

    Hmm, well, I’ve replaced a bunch of files in the system folder (I’m afraid to replace everything - not sure which files are changed once you install other than the config files). It didn’t damage anything but it didn’t help either.

    My host says they have “not made any changes that would affect my services”.

    So, I’m at a bit of a loss here.

    Is there a particular file or files that controls both the search and any kind of form on the site? Maybe I missed replacing those?

    Thanks.

  • #10 / Jan 07, 2010 7:34pm

    Adam Dorsey

    1439 posts

    You can upload these folders without worry… (This is assuming your FTP won’t replace entire directories, but rather will overwrite what already exists)

    system/core/
    system/cp/
    system/db/
    system/language/
    system/lib/
    system/modules/
    system/plugins/
    system/utilities/

    Make sense? Always do a backup first, just in case 😊

  • #11 / Jan 07, 2010 8:26pm

    tubes1

    32 posts

    Thanks, Adam,

    So, I’ve replaced all those files. I even uninstalled and then reinstalled the search and freeform modules but no luck.

    Just for kicks, I installed the basic email module on the site as well as another site I have on the same server just to see what happens.

    The other site’s form works just fine - gives a confirmation message, redirects to the homepage and sends the email:
    http://www.contentstrategy.com/hidden

    The troubled site only goes right to the homepage, the same behavior as any other form submission on the site.
    http://www.northrupkingbuilding.com/hidden

    You can try them if you are feeling adventurous! ; ) It’s the same exact form on both sites. If the sites were on different hosts, I’d think it was the host but they are on the same server. So weird! Pulling hair out…

    I’m guessing it is a problem with whatever controls what happens when someone submits a form, regardless of what kind (search, email, freeform).
    Anyone know what that would be?

    Thanks for all your help so far, Ingmar and Adam.

  • #12 / Jan 07, 2010 9:00pm

    Adam Dorsey

    1439 posts

    Hmm… Your generated code across both sites looks fine. Has to be some kind of setting issue.

    Did you recently install any extensions?
    Can you try disabling htaccess on the problematic domain?
    Have you changed any settings?
    Can you send email from the communicate tab in the CP of the problematic domain?

  • #13 / Jan 07, 2010 9:41pm

    tubes1

    32 posts

    Adam,

    You’re a genius… or I’m a moron!

    It was the htaccess file. I added some 301 redirects to it a while back and that was totally it. I took them out and the search and the freeform form is working!

    I thought they were formatted OK (and they were working) but that was definitely the problem.

    Whatever, I can remove them now - google has indexed the new pages anyway. I’ll figure out why later.

    Thank you so much!

    RewriteEngine On 
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ /index.php/$1 [L]
    
    redirect 301 /classes.html <a href="http://www.northrupkingbuilding.com/art-classes">http://www.northrupkingbuilding.com/art-classes</a>
    redirect 301 /contact.html <a href="http://www.northrupkingbuilding.com/contact">http://www.northrupkingbuilding.com/contact</a>
    redirect 301 /about.html <a href="http://www.northrupkingbuilding.com/about">http://www.northrupkingbuilding.com/about</a>
    redirect 301 /directory.html <a href="http://www.northrupkingbuilding.com/artists">http://www.northrupkingbuilding.com/artists</a>
    redirect 301 /links.html <a href="http://www.northrupkingbuilding.com/about">http://www.northrupkingbuilding.com/about</a>
    redirect 301 /map.html <a href="http://www.northrupkingbuilding.com/about">http://www.northrupkingbuilding.com/about</a>
    redirect 301 /subscribe.html <a href="http://www.northrupkingbuilding.com/">http://www.northrupkingbuilding.com/</a>
    redirect 301 /holiday-shopping-minneapolis.html <a href="http://www.northrupkingbuilding.com/">http://www.northrupkingbuilding.com/</a>
  • #14 / Jan 07, 2010 9:47pm

    Adam Dorsey

    1439 posts

    No problem! Glad we could help 😊

    Please feel free to post again.

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

ExpressionEngine News!

#eecms, #events, #releases