Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working with redmine 2.4 #52

Open
morph027 opened this issue Nov 26, 2013 · 4 comments
Open

not working with redmine 2.4 #52

morph027 opened this issue Nov 26, 2013 · 4 comments
Labels

Comments

@morph027
Copy link

Hi!

I've just upgraded our staging redmine instance to 2.4.1 and you plugin does not work anymore. There's no error, it just won't display the popup.

This is the output when rendering the new issue page:

Started GET "/projects/test/issues/new" for x.x.x.x at 2013-11-26 11:09:00 +0100
Processing by IssuesController#new as HTML
  Parameters: {"project_id"=>"admin"}
  Current user: test.user (id=15)
  Rendered plugins/redmine_issue_templates/app/views/issue_templates/_issue_select_form.html.erb (1.4ms)
  Rendered issues/_form_custom_fields.html.erb (4.4ms)
  Rendered issues/_attributes.html.erb (80.7ms)
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead. (called from block in render_on at /usr/share/redmine/redmine-2.4-stable/lib/redmine/hook.rb:111)
  Rendered plugins/redmine_didyoumean/app/views/issues/_didyoumean_injected.html.erb (2.7ms)
  Rendered plugins/redmine_issue_checklist/app/views/issues/_checklist_form.html.erb (1.2ms)
  Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_issues_form_details_bottom.html.erb (4.5ms)
  Rendered issues/_form.html.erb (103.4ms)
  Rendered attachments/_form.html.erb (1.3ms)
  Rendered issues/new.html.erb within layouts/base (110.4ms)
  Rendered plugins/redmine_sudo/app/views/sudo/_sudo_styles.html.erb (0.1ms)
  Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_html_header.html.erb (4.2ms)
  Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_body_bottom.html.erb (0.2ms)
Completed 200 OK in 234.7ms (Views: 118.1ms | ActiveRecord: 32.5ms)
@AdamWardUK
Copy link

Try this (logged in as root):

cd /usr/share/redmine
mkdir -p public/plugin_assets/redmine_didyoumean/stylesheets
cp plugin/redmine_didyoumean/assets/stylesheets/didyoumean.css public/plugin_assets/redmine_didyoumean/stylesheets/
mkdir -p public/plugin_assets/redmine_didyoumean/javascripts
cp plugins/redmine_didyoumean/assets/javascripts/didyoumean.js public/plugin_assets/redmine_didyoumean/javascripts/

Can't say I understand much of this redmine/ruby/rails stuff, so I'm not in a position to suggest how the migration stuff (init.rb?) should be tweaked to get this right for 2.4.x or offer a patch.
BTW, I'm running 2.4.2.stable.
Oh, I also did the tweak suggested in issue 49 before this.

@morph027
Copy link
Author

Thanks, seems to work in my test-clone!

@AdamWardUK
Copy link

I'm delighted to have been useful - thanks for letting me know :-)

@abahgat abahgat added the bug label May 11, 2014
@rlisowski
Copy link

It's common problem. There is redmine rake task which will do it for you. http://www.redmine.org/projects/redmine/wiki/RedmineRake#rake-redminepluginsassets

I think it's not a bug in redmine_didyoumean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants