On Oct 2, 2009, at 11:35 PM, Nate wrote:

I am having a lot of trouble getting the recaptcha_mailer extension working properly. It's not working with my production app so I decided that I would build a default radiant 0.8.1 project and install only the recaptcha and recaptcha mailer extensions. The keys are set up in the environment.rb, the form is built and mails out properly, but the captcha does nothing but sit on the page looking pretty. It doesn't affect form submission whatsoever.

Does anybody have these extensions working properly in 0.8.1?

My default project was built on a Mac, with the radiant 0.8.1 gem and mysql.

Nate,

I'm sorry you're having so many issues. I've been trying to replicate the issues you are having, but I'm not having any luck. I've setup a number of sites with the recaptcha and recaptcha_mailer extensions and everything has worked properly. I ran through the setup procedures for both of the extensions on 0.8.0 and 0.8.1 and everything worked both in development (with sqlite3) and production (with mysql).

Here's the procedure I went through:

  1. generate radiant app with the radiant command
  2. bootstrap both development and production databases
3. clone both the recaptcha and recaptcha_mailer extensions to the vendor/extensions directory 4. modify config/environment.rb by commenting out `config.frameworks -= [ :action_mailer ]` and adding the configuration lines into the config.after_initialize block
  5. start up the server
6. Add a contact page with the mailer form as below (also adding generic mailer and email page parts)

Here's my mailer form:

    <r:mailer:form>
<r:mailer:if_error><p class="mailer-error">There was an error with the information that you submitted. Please verify that all the fields are filled out.</p></r:mailer:if_error>
      <p><label>Your Name</label><br />
        <r:mailer:text name="name" required="true" /></p>
      <p><label>Your Email Address</label><br />
        <r:mailer:text name="email" required="true" /></p>
      <p><label>Your Message</label><br />
        <r:mailer:textarea name="message" required="true" /></p>
      <p><label>Please enter the words displayed below.</label><br />
        <r:recaptcha /></p>
      <p class="submit"><input type="submit" value="Send" /></p>
    </r:mailer:form>

You may want to try greping your log files for the string 'reCAPTCHA' to see if there are any errors/warnings being output. Also, can you give me a link to where your form is? Feel free to email me directly since this really isn't a global radiant issue. I really want to help you get this going so we can figure out where the issue lies.

--
    Travis D Warlick, Jr
    Lead Developer - Operis Systems, LLC

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to