onozaty / redmine-view-customize

View customize plugin for Redmine
GNU General Public License v2.0
260 stars 62 forks source link

NoMethodError: undefined method `represent_boolean_as_integer=' for nil:NilClass encountered with Redmine 4.1.0-9 #108

Closed iamriz closed 1 year ago

iamriz commented 1 year ago

Hello, May I ask help on this? Tried to install the plugin in redmine-4.1.0-9, but an error is logged as below.

...\view_customize>bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace (in .../redmine/htdocs) rake aborted! NoMethodError: undefined method `represent_boolean_as_integer=' for nil:NilClass

The bundle install command seems to be successful with the log as follows.

..\htdocs\plugins\view_customize>bundle install --without development test Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/. . . . Bundle complete! 3 Gemfile dependencies, 50 gems now installed. Gems in the groups development and test were not installed. Use bundle info [gemname] to see where a bundled gem is installed.

Any feedback would be much appreciated. Thank you.

onozaty commented 1 year ago

I did not know if the following command is correct.

C:\Bitnami\redmine-4.1.0-9\ruby\bin\bundle exec C:\Bitnami\redmine-4.1.0-9\ruby\bin\rake redmine:plugins:migrate RAILS_ENV=production --trace

Could you also try the following designation?

C:\Bitnami\redmine-4.1.0-9\ruby\bin\bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace

Also, go to C:\Bitnami\redmine-4.1.0-9\apps\redmine\htdocs and run it.

Thanks.

iamriz commented 1 year ago

Hi @onozaty ,

bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace Also, go to ...\apps\redmine\htdocs and run it.

The above worked. Thank you very much.