Content
You are here:
"Internal Error" when creating a Work Package
Added by t u almost 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)
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
alright, the solution is
https://community.openproject.org/work_packages/5866#note-20
(Credits to William Cornett https://community.openproject.org/users/26100 )
TU