Coder Social home page Coder Social logo

Comments (9)

kulesa avatar kulesa commented on July 26, 2024

Hi Luis. What do you mean by 'try to migrate'. Are you migrating Redmine to some new version? So far I've tested the lattest version of plugin on 1.1.1 and 1.1.2 only.

from redmine_better_gantt_chart.

LuisSerrano avatar LuisSerrano commented on July 26, 2024

sudo rake db:migrate_plugins RAILS_ENV=production --trace
(in /var/www/redmine)
** Invoke db:migrate_plugins (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method render_project' for classRedmine::Helpers::Gantt'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in alias_method' /var/www/redmine/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:inalias_method_chain'
/var/www/redmine/vendor/plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/gantt_helper_patch.rb:9:in included' /var/www/redmine/vendor/plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/gantt_helper_patch.rb:6:inclass_eval'
/var/www/redmine/vendor/plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/gantt_helper_patch.rb:6:in included' /var/www/redmine/vendor/plugins/redmine_better_gantt_chart/init.rb:23:ininclude'
/var/www/redmine/vendor/plugins/redmine_better_gantt_chart/init.rb:23:in send' /var/www/redmine/vendor/plugins/redmine_better_gantt_chart/init.rb:23 /var/www/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:incall'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in evaluate_method' /var/www/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:incall'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in run' /var/www/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:ineach'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in send' /var/www/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:inrun'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:276:in run_callbacks' /var/www/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:insend'
/var/www/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in run_prepare_callbacks' /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:631:inprepare_dispatcher'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:185:in process' /var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:insend'
/var/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in run' /var/www/redmine/config/environment.rb:20 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:ingem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in require' /var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire'
/var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in new_constants_in' /var/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire'
/var/www/redmine/vendor/rails/railties/lib/tasks/misc.rake:4
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:insynchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:ininvoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:ininvoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:insynchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/local/bin/rake:19:inload'
/usr/local/bin/rake:19

from redmine_better_gantt_chart.

kulesa avatar kulesa commented on July 26, 2024

What version of Redmine do you use?

from redmine_better_gantt_chart.

LuisSerrano avatar LuisSerrano commented on July 26, 2024

1.1.2

from redmine_better_gantt_chart.

kulesa avatar kulesa commented on July 26, 2024

I use the same version an can run db migrations without problems. This is a strange error because apparently 'render_project' method is in the lib. Can you check few things:

  1. Can you start Redmine? It shouldn't work either and give the same error.
  2. Is file lib/redmine/helpers/gantt.rb in place? Can you open it and check that 'def render_project' string is in the file?
  3. Do you have any other plugins installed which possibly change gantt lib? (Maybe something you installed recently?)

from redmine_better_gantt_chart.

LuisSerrano avatar LuisSerrano commented on July 26, 2024
  1. Without db:migrate... redmine return the same error.
  2. Is this the problem I have the patch 7456

from redmine_better_gantt_chart.

LuisSerrano avatar LuisSerrano commented on July 26, 2024

Sorry #7456

from redmine_better_gantt_chart.

kulesa avatar kulesa commented on July 26, 2024

Yes, that the reason. The patch removes 'render_project' method and replaces it with some other method. The plugin will not with it. Well, I can create a branch of the plugin with support of this patch, but don't have time now.

from redmine_better_gantt_chart.

LuisSerrano avatar LuisSerrano commented on July 26, 2024

Thanks for your work, I think ii's better upgrade my Redmine version to 1.2.0 and wait if your plugin are compatible

from redmine_better_gantt_chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.