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. "Internal Error" when creating a Work Package

"Internal Error" when creating a Work Package

Added by t u about 10 years ago

Hi,

finally managed to successfully install OP following this manual:
https://www.openproject.org/download/manual-installation/

Plugins were also successfully installed:
https://www.openproject.org/download/install-plugins/

taken from here:
https://www.openproject.org/download/install-plugins/openproject-plugins/

Now I am testing OP (once again) and running into an error when trying to create a Work package:

Internal error

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

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

from production.log :

Completed 500 Internal Server Error in 136.3ms

ActionView::Template::Error (undefined method `attribute' for nil:NilClass):
    29:
    30: <div class="work_package issue details">
    31:   <div class="meta">
    32:     <% attributes = work_package_show_attributes(work_package) %>
    33:     <div id="left" style="float:left; width:50%;">
    34:       <table class="attributes">
    35:         <% 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:606:in `hook_attributes'
  app/helpers/work_packages_helper.rb:313:in `work_package_show_attribute_list'
  app/helpers/work_packages_helper.rb:324:in `work_package_show_attributes'
  app/views/work_packages/_show_attributes.html.erb:32:in `_app_views_work_packages__show_attributes_html_erb___1784171342223981323_74069460'
  app/views/work_packages/show.html.erb:52:in `_app_views_work_packages_show_html_erb___2334634831202072625_69237180'
  app/controllers/work_packages_controller.rb:75:in `block (2 levels) in show'
  app/controllers/work_packages_controller.rb:73:in `show'

The “funny” thing is that despite getting the error message the work packages are actually being created because when you click on the “Work packages” button on the left all packages, even the once that threw that error, are being shown.

Someone having an idea what the problem is?

TU


Replies (2)

RE: "Internal Error" when creating a Work Package - Added by t u about 10 years ago

Might this be still related to these 2 links?
https://community.openproject.org/topics/1037
https://community.openproject.org/work_packages/7046
or, better, this one:
https://community.openproject.org/work_packages/5866

TU

RE: "Internal Error" when creating a Work Package - Added by t u about 10 years ago

alright, the solution is
https://community.openproject.org/work_packages/5866#note-20

Simply put Costs as the second gem git and backlogs as the last gem git (See below).

gem 'openproject-plugins', :git => 'https://github.com/opf/openproject-plugins.git', :branch => 'stable'
gem 'openproject-pdf_export', :git => 'https://github.com/finnlabs/openproject-pdf_export.git', :branch => 'stable'
gem "openproject-costs", git: "https://github.com/finnlabs/openproject-costs.git", :branch => 'stable'
gem 'openproject-global_roles', :git => 'https://github.com/finnlabs/openproject-global_roles.git', :branch => 'stable'
gem "openproject-meeting", :git => "https://github.com/finnlabs/openproject-meeting.git", :branch => "stable"
gem 'openproject-my_project_page', :git => 'https://github.com/finnlabs/openproject-my_project_page.git', :branch => 'stable'
gem 'openproject-documents', :git => 'https://github.com/opf/openproject-documents.git', :branch => 'stable'
gem 'reporting_engine', :git => 'https://github.com/finnlabs/reporting_engine.git', :branch => 'stable'
gem 'openproject-help_link', :git => 'https://github.com/finnlabs/openproject-help_link.git', :branch => 'stable'
gem "openproject-backlogs", :git => "https://github.com/finnlabs/openproject-backlogs.git", :branch => 'stable'

(Credits to William Cornett https://community.openproject.org/users/26100 )

TU

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