Project

General

Profile

get error creating new projects after installing computed_custom_field on versions 3.3.0 and 3.2.1.

Added by Derek Lai over 7 years ago

I installed the computed_custom_field from http://www.redmine.org/plugins/computed_custom_field then ran
$ bundle install --without development test
$ bundle exec rake redmine:plugins NAME=redmine_contacts RAILS_ENV=production

The plugin shows up fine. However, I found out later that I am no longer able to create new projects. When I try to create projects, I get the following:

Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back

and in log/production.log I get:

Started POST "/projects" for 69.75.38.26 at 2016-08-10 16:10:28 -0700
Processing by ProjectsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"f/y63H6kCotXhv0YhplVhQ0VxgZG9oZu49Mr721eQNR+oQXMChFi5lZUnyq9rW6AOJNgH9NVSFgNJDSrKIqYNQ==", "project"=>{"name"=>"dereklai02", "description"=>"", "identifier"=>"dereklai02", "homepage"=>"", "is_public"=>"1", "parent_id"=>"", "inherit_members"=>"0", "custom_field_values"=>{"6"=>"", "4"=>"", "8"=>"", "5"=>"", "7"=>"", "9"=>"0"}, "enabled_module_names"=>["issue_tracking", "time_tracking", "wiki", "boards", "calendar", "gantt", "agile", ""], "tracker_ids"=>["1", "6", "5", "4", ""], "issue_custom_field_ids"=>[""]}, "commit"=>"Create"}
Current user: derek.lai (id=71)
Completed 500 Internal Server Error in 32ms (ActiveRecord: 4.3ms)

SyntaxError ((eval):1: syntax error, unexpected end-of-input):
plugins/computed_custom_field/lib/patches/klass.rb:18:in `eval'
plugins/computed_custom_field/lib/patches/klass.rb:18:in `block in compute'
plugins/computed_custom_field/lib/patches/klass.rb:10:in `each'
plugins/computed_custom_field/lib/patches/klass.rb:10:in `compute'
app/controllers/projects_controller.rb:78:in `create'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Any ideas?

Thanks,

Derek