cdwertmann / recaptcha

Redmine 2.x plugin that adds a recaptcha to the account registration page
11 stars 13 forks source link

Will it work with Redmine 3.x? #2

Open jaimestuardo opened 8 years ago

jaimestuardo commented 8 years ago

I have installed this plugin in my Redmine, but I get this error in log file:

Processing by AccountController#register as HTML
  Current user: anonymous
  Rendered plugins/recaptcha/app/views/account/register.html.erb within layouts/base (3.6ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms)

ActionView::Template::Error (No private key specified.):
    26:   <p><%= custom_field_tag_with_label :user, value %></p>
    27: <% end %>
    28:
    29: <%= recaptcha_tags :public_key => Setting.plugin_recaptcha['recaptcha_public_key'], :ssl => true %>
    30: </div>
    31:
    32: <%= submit_tag l(:button_submit) %>
  app/helpers/application_helper.rb:1027:in `labelled_form_for'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Is this a compatibility issue or something else?

Regards Jaime

cdwertmann commented 8 years ago

ActionView::Template::Error (No private key specified.):

Did you enter your recaptcha key?

jaimestuardo commented 8 years ago

Of course:

image

Public key was "Site key" and private key was "Secret key". That is named by recaptcha page.

hameno commented 8 years ago

Have the same problem...

eckucukoglu commented 8 years ago

by the way, I'm using this plugin for Redmine v3.3.0 w/o any problems.

dgeo commented 7 years ago

@hameno @jaimestuardo same here, fixed by pull request #5 for me.

It seems to depend on recaptcha gem version, my pull request let it work with latest.

(no ruby skills here, but it may need a version in Gemfile ?)

danaivehr commented 5 years ago

Works on 3.4.0. Thank you for your plugin!

jcormier commented 2 years ago

Works on 4.1.3

intractabilis commented 1 year ago

On 5.0.3 I had to change

require 'account_controller_patch'

to

require_relative 'lib/account_controller_patch'

otherwise it couldn't load account_controller_patch.

However, now I am getting the following error:

Error: The application encountered the following error: uninitialized constant AccountControllerPatch

    parent.const_get(cname, false)
          ^^^^^^^^^^ (NameError)

Any ideas?

intractabilis commented 1 year ago

I tried renaming AccountControllerRecaptchaPatch to AccountControllerPatch. The plugin loaded, but https://server/account/register page shows

изображение

I couldn't find any error messages in the Apache log files.

ecsv commented 1 year ago

It should work in theory with redmine 5.0.4 using the current master branch