You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It only occurs in production which is the most annoying of course.
So the error comes from this file _suggest_cospace_modal where negative_captcha(@suggest_cospace_captcha) is executed, and apparently @suggest_cospace_captcha can be nil.
And here's how @suggest_cospace_captcha is initialized, in application_controller.rb
before_filter :suggest_cospace_captcha
def suggest_cospace_captcha()
@suggest_cospace_captcha = NegativeCaptcha.new(
secret: NEGATIVE_CAPTCHA_SECRET,
spinner: request.remote_ip,
# Whatever fields are in your form
fields: [:name, :country, :city, :name_of_contact, :mail_of_contact, :website_url, :comment],
params: params
)
end
I'm experiencing issues with negative captcha, but it doesn't occur everytime, and I still can't figure out a pattern out of it.
Here's the stacktrace:
It only occurs in production which is the most annoying of course.
So the error comes from this file
_suggest_cospace_modal
wherenegative_captcha(@suggest_cospace_captcha)
is executed, and apparently@suggest_cospace_captcha
can benil
.And here's how
@suggest_cospace_captcha
is initialized, in application_controller.rbI found only this issue related: #7
But it could not help unfortunately.
Thanks for support, this gem is really good and negative captcha is a really smart feature to have!
The text was updated successfully, but these errors were encountered: