Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Error New Work Package

Error New Work Package

Added by Douglas Leonardo almost 11 years ago

I’m trying to create new work package, but when trying to finish, I come across this error. Can anyone help?

Completed 500 Internal Server Error in 242.9ms

ActionView::Template::Error (undefined method `attribute’ for nil:NilClass):
51:
52:

53:

54: <% attributes = work_package_show_attributes(work_package) %>
55:

56:

57: <% attributes[:left].each do |attribute| %>
lib/redmine/hook.rb:73:in `block (2 levels) in call_hook’
lib/redmine/hook.rb:73:in `each’
lib/redmine/hook.rb:73:in `block in call_hook’
lib/redmine/hook.rb:70:in `tap’
lib/redmine/hook.rb:70:in `call_hook’
lib/redmine/hook.rb:174:in `call_hook’
app/helpers/work_packages_helper.rb:624:in `hook_attributes’
app/helpers/work_packages_helper.rb:337:in `work_package_show_attribute_list’
app/helpers/work_packages_helper.rb:348:in `work_package_show_attributes’
app/views/work_packages/show.html.erb:54:in `_app_views_work_packages_show_html_erb**_349716894248461615_82209520’
app/controllers/work_packages_controller.rb:65:in `block (2 levels) in show’
app/controllers/work_packages_controller.rb:63:in `show’


Replies (2)

RE: Error New Work Package - Added by Philipp Tessenow almost 11 years ago

Hi Douglas,

It’s not obvious to me where this error comes from, but we can try a few things to get this resolved :)

It might be that you have pending database migrations (this might be because you updated OpenProject or installed a plug-in). In this case try the following command in the console in your OpenProject directory:

RAILS_ENV=production bundle exec rake db:migrate

If this doesn’t help, can you tell us which OpenProject version you are running (best is if you tell us the git commit hash)? I’d be great if you would provide us your Gemfile.plugins file in case you have installed plugins. Often we see errors which come because OpenProject and it’s plug-ins are out of sync.

cheers,
tessi

RE: Error New Work Package - Added by William Cornett, PMP almost 11 years ago

I installed 3.0 and getting the same error on work package creation. I performed RAILS_ENV=production bundle exec rake db:migrate and RAILS_ENV=“production” bundle exec rake assets:precompile
restarted httpd, but I think i never turned it off and the tried again same same.

Completed 500 Internal Server Error

Any thoughts?

  • (1 - 2/2)
Loading...