We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello

    Unfortunately, I cannot get the captcha code to work - I see the image - when I enter the code and submit the form, I get an error message that the code is wrong although, it isn’t - refreshing the page and entering the newly created security code again submits the page then.

    Am I doing anything wrong or how can I fix this.

    Thank you in advance for your help.
      • 12652
      • 228 Posts
      Maybe, I just had the same issue.

      What browser are you using?

      I had an issue in FF, but it would accept from IE. I had primarily been using FF for manger and front end, and once I cleared all the cookies (at least for the site) it worked fine.

      Try that and see what happens.
        | Identity Developments delivers SEO focused web design and web presence services
        - it's not about websites, it's about your identity. |
        • 19889
        • 616 Posts
        IE7 - deleting history, cookies, cache, etc. didn’t help to solve the problem.
          • 30223
          • 1,010 Posts
          Can you please post your form template? and your snippet call. What version of eForm are you using.
            • 19889
            • 616 Posts
            Thank you for getting back to me - by the way, the problem occurs in IE7 as well as Firefox. I believe I use the latest version.
            Should you need access to my manager, please let me know

            this is the snippet call:

            [!eForm? &formid=`feedback` &to=`[email protected],[email protected],[email protected]` &tpl=`eFormFeedback` &report=`eFormFeedbackReport` &thankyou=`eFormThankYou` &mailselector=`subject` &vericode=`1` &subject=`Website Anfrage` &language=`german`!]


            the template is like this:

            [+validationmessage+]
            <form method="post" action="[~[*id*]~]" id="feedback" name="feedback" enctype="multipart/form-data">
              <fieldset>
              <div class="frmrow">
                <label for="cfTitle"> Anrede:</label>
                <select name="title" id="cfTitle" eform="Anrede::0">
                  <option value="Herr" selected="selected">Herr</option>
                  <option value="Frau">Frau</option>
                  <option value="Firma">Firma</option>
                </select>
              </div>
              <div class="frmrow">
                <label for="cfName">Name, Vorname<span class="red">*</span>:</label>
                <input name="name" id="cfName" class="text" type="text" eform="Name, Vorname::1" />
              </div>
              <div class="frmrow">
                <label for="cfStreet">Strasse:</label>
                <input name="street" id="cfStreet" class="text" type="text" eform="Strasse::0" />
              </div>
              <div class="frmrow">
                <label for="cfZip">Postleitzahl:</label>
                <input name="zip" id="cfZip" class="text" type="text" eform="Postleitzahl::0" />
              </div>
              <div class="frmrow">
                <label for="cfCity">Ort:</label>
                <input name="city" id="cfCity" class="text" type="text"  eform="Ort::0"/>
              </div>
              <div class="frmrow">
                <label for="cfCountry">Land:</label>
                <input name="country" id="cfCountry" class="text" type="text" eform="Land::0" />
              </div>
              <div class="frmrow">
                <label for="cfPhone">Telefon:</label>
                <input name="phone" id="cfPhone" class="text" type="text"  eform="Telefon::0"/>
              </div>
              <div class="frmrow">
                <label for="cfFax">Fax:</label>
                <input name="fax" id="cfFax" class="text" type="text"  eform="Fax::0"/>
              </div>
              <div class="frmrow">
                <label for="cfEmail">E-mail<span class="red">*</span>:</label>
                <input name="email" id="cfEmail" class="text" type="text" eform="E-mail:email:1" />
              </div>
              <div class="frmrow">
                <label for="cfRegarding">Betreff:</label>
                <select name="subject" id="cfSubject">
                  <option value="allgemein" selected="selected">Allgemeine Anfrage</option>
                  <option value="kunden">Privatkunden</option>
                  <option value="berater">Kundenberater</option>
                </select>
              </div>
              <div class="frmrow">
                <label for="cfMessage">Kommentar:<span class="red">*</span></label>
                <textarea name="message" id="cfMessage" rows="5" cols="30" eform="Kommentar:textarea:1"></textarea>
              </div>
              <div class="frmrow">
                <label><span class="small">Bitte wiederholen Sie den Sicherheitscode im untenstehenden Feld:</span></label>
                <img src="[+verimageurl+]" alt="Sicherheitscode" border="0"/> </div>
              <div class="frmrow">
                <label for="vericode">Code:</label>
                <input type="text" name="vericode" id="vericode" />
              </div>
              <p class="small">Die mit einem '<span class="red">*</span>' gekennzeichneten Felder sind obligatorisch!</p>
              <br />
              <br />
              <div class="frmrow">
                <label> </label>
                <input type="submit" name="contact" id="cfContact" class="button" value="Absenden" />
                 
                <input type="reset" name="reset" value="Löschen" />
              </div>
              </fieldset>
            </form>


              • 30223
              • 1,010 Posts
              Copied and pasted your code exactly as is, except that I added &debug=`2` &noemail=`1` so that I could see the results and not send out bogus emails.

              Guess what.. worked straight out of the box. This is in modx 0.9.5 and eform 1.4.3

              Not sure what advice to give here. Try cleaning out al the caches before you try it again, check if you’re behind a badly behaving transparent proxy and perhaps download and reinstall eform or even modx for that matter... I’m a bit in the dark myself here.

              Is your form on a public page somewhere? Get someone else to test the form from a different location and see if they have the same problem.




                • 19889
                • 616 Posts
                Thank you for having a look at the code - I really appreciate it.

                I guess the problem is solved - there was an issue with the hosting company using clustered servers and the session handling as well as the tmp dir.

                thanks again
                • I have heard that clustered servers can cause session/cookie problems, because you can never really be sure your next page is coming from the same server, unless they are configured to be "sticky" or "session-aware".
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 19889
                    • 616 Posts
                    Quote from: sottwell at Jan 16, 2007, 06:51 PM

                    I have heard that clustered servers can cause session/cookie problems, because you can never really be sure your next page is coming from the same server, unless they are configured to be "sticky" or "session-aware".

                    that was exactly what was happening - they were able to fix the issue with adding this session.save_path = /var/phpsession to the local php.ini file - this also solved some log-in problems I experienced with the modx manager.

                    thanks again for your help guys