annikoff / redmine_plugin_computed_custom_field

Computed Custom Field for Redmine
https://www.redmine.org/plugins/computed_custom_field
MIT License
80 stars 51 forks source link

404 after install on new custom field #143

Closed dpalic closed 6 years ago

dpalic commented 6 years ago

after setup of the plugin I am getting a 404 on the click on New Custom field

the production log:

Started GET "/redmine/custom_fields/new?utf8=%E2%9C%93&type=IssueCustomField" for 10.11.44.10 at 2018-04-28 20:11:01 +0200
Processing by CustomFieldsController#new as HTML
  Parameters: {"utf8"=>"✓", "type"=>"IssueCustomField"}
  Current user: dpalic (id=3)
  Rendered custom_fields/formats/_regexp.html.erb (0.7ms)
  Rendered custom_fields/formats/_string.html.erb (1.9ms)
  Rendered custom_fields/_form.html.erb (4.9ms)
  Rendered custom_fields/new.html.erb within layouts/admin (8.2ms)
Missing template, responding with 404
  Rendered common/error.html.erb within layouts/base (0.1ms)
Completed 404 Not Found in 64ms (Views: 36.2ms | ActiveRecord: 10.5ms)

the folder location

/usr/share/redmine/lib/plugins

ls -l 
computed_custom_field
cd computed_custom_field
ls -l
drwxr-xr-x 3 root root 4096 Apr 28 19:48 app
-rw-r--r-- 1 root root 3863 Apr 28 19:49 CHANGELOG.md
drwxr-xr-x 3 root root 4096 Apr 28 19:48 config
drwxr-xr-x 3 root root 4096 Apr 28 19:48 db
-rw-r--r-- 1 root root  769 Apr 28 19:49 init.rb
drwxr-xr-x 3 root root 4096 Apr 28 19:48 lib
-rw-r--r-- 1 root root 1040 Apr 28 19:48 MIT-LICENSE
-rw-r--r-- 1 root root  105 Apr 28 19:48 PluginGemfile
-rw-r--r-- 1 root root 3582 Apr 28 19:49 README.md
drwxr-xr-x 4 root root 4096 Apr 28 19:48 test

any advice?

annikoff commented 6 years ago

Did you rename redmine_plugin_computed_custom_field to computed_custom_field as it said in installation instruction?

dpalic commented 6 years ago

@annikoff no, I followed the instructions

git clone https://github.com/annikoff/redmine_plugin_computed_custom_field.git computed_custom_field
rake redmine:plugins:migrate

is there a additional step needed?

dpalic commented 6 years ago

really no help? same issues on 3.2 and 3.4 redmine

dpalic commented 6 years ago

sadly finally I needed to deinstall it, since redmine is limited on usage with this plugin.

annikoff commented 6 years ago

Please try this folder location /usr/share/redmine/plugins

dpalic commented 6 years ago

there is no plugin folder (working on Ubuntu 18.04, but same situation on Ubuntu 16.04) I see following folders in your named location, but no plugins folder here.

app
bin
config
db
extra
instances
lib
public
svn
templates
annikoff commented 6 years ago

You could create it manually.

annikoff commented 6 years ago

http://www.redmine.org/projects/redmine/wiki/Plugins See "Installing a plugin section"

fao92 commented 6 years ago

I'm having the same problem on windows:

ActionView::Template::Error (undefined method is_computed' for #<IssueCustomField:0x7d11560>): 1: <% if custom_field.new_record? || custom_field.is_computed? %> 2: <p><%= form.check_box :is_computed, 3: data: { enables: '#custom_field_formula, #available_cfs' }, 4: disabled: !custom_field.new_record? %></p> 5: <p><%= form.text_area :formula, rows: 7 %></p> lib/redmine/views/labelled_form_builder.rb:34:incheck_box' lib/redmine/hook.rb:111:in block in render_on' lib/redmine/hook.rb:61:inblock (2 levels) in call_hook' lib/redmine/hook.rb:61:in each' lib/redmine/hook.rb:61:inblock in call_hook' lib/redmine/hook.rb:58:in tap' lib/redmine/hook.rb:58:incall_hook' lib/redmine/hook.rb:158:in call_hook' app/views/custom_fields/_form.html.erb:20:in_app_views_custom_fieldsform_html_erb___333863370_65636388' app/views/custom_fields/new.html.erb:6:in `block in _app_views_custom_fields_new_html_erb225435604_65609040' app/helpers/application_helper.rb:1056:in labelled_form_for' app/views/custom_fields/new.html.erb:5:in_app_views_custom_fields_new_html_erb__225435604_65609040'

urudus commented 6 years ago

Follow install instruction:

Then restart the web service. This works for me

dpalic commented 6 years ago

fixed my issue by creating the new folder on ubuntu 18.04

mkdir /usr/share/redmine/plugins
chown -R www-data /usr/share/redmine/plugins
git clone https://github.com/annikoff/redmine_plugin_computed_custom_field.git computed_custom_field
rake redmine:plugins:migrate

you should update your documentation of ubuntu in the README.md also, since more steps are needed...

annikoff commented 6 years ago

It is your special case. Redmine could be installed in a different folder which will not require to change owner.