myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [myexperiment-hackers] Captcha error


From: David R Newman
Subject: Re: [myexperiment-hackers] Captcha error
Date: Thu, 05 Jan 2012 11:00:09 +0000

Hi Finn,

This is a known issue with new installs since we migrated to Rails 2.
The problem is caused because the validates_captcha plugin that is
frozen in our codebase not working with Rails 2.  

I have posted a temporary workaround on the Fedora Installation page
(http://wiki.myexperiment.org/index.php/Developer:FedoraInstallation)
but at the time I thought it was a Fedora (the packaged version of ruby
it uses) rather than Rails 2 problems.  I will add this workaround to
the Ubuntu installation page.  However, this workaround just disables
the captcha altogether, so this is why the codebase itself hasn't been
updated.

Don, Danius and I have discussed a few solution for this:

1.  Just used ReCaptcha instead.  You can change the options in your
settings file to do that.  However, you will need to get a license key
so you can fill in recaptcha_public and recaptcha_public.  This may not
be ideal for some developers as it creates extra hassle but it is what
we are currently doing on the main site.

2.  Replace the validates_captcha with a more suitable captcha gem, that
I know to exist.  However, this require a fair amount of work.

3. Only support ReCaptcha but allow the developer to enable or disable
it so that can just not have captchas whilst they are doing development
and enable when they deploy.  This also requires so work to implement.

Regards

David Newman


On Thu, 2012-01-05 at 10:40 +0000, Finn Bacall wrote:
> In the latest version of the trunk I get an error when visiting the 
> registration page:
> 
> -----
> ActionView::TemplateError: uninitialized constant 
> FleskPlugins::CaptchaConfig::PStore
>      On line #37 of app/views/users/new.rhtml
> 
>          34: <table style="margin-top: 2em;">
>          35: <tr>
>          36: <td>
>          37: <% c = prepare_captcha :type => :image -%>
>          38: <%= captcha_image_tag c -%>
>          39: </td>
>          40: <td style="vertical-align: top;">
> -----
> 
> I have the following settings in my settings.yml file:
>      recaptcha_enable: false
>      recaptcha_public:
>      recaptcha_private:
> 
> Any ideas?
> 
> -Finn
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]