Closed lauritssn closed 10 years ago
If anyone feels like having a go, I think this is just a case of modifying ReleaseNotesGenerator#values_for_issue
so that it doesn't assume that every issue has a category. Unfortunately I don't have the time to look at this properly right now.
ok - makes sense. When I put a category on all issues then it runs. Fantastic - thanx for commenting. Not sure how to fix it in code but now I know what is the matter.
I commented out this line:
In this file: redmine_release_notes / app / models / release_notes_generator.rb
and then rebooted Apache. Then it worked.
Fixed by pr #111
As any user When I click "Generate Release Notes" Then I get the following error message:
** Internal error
An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
Back **
I have checked the apache log file:
[ 2014-01-12 09:27:24.5777 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] NoMethodError (undefined method
name' for nil:NilClass): [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] plugins/redmine_release_notes/app/models/release_notes_generator.rb:126:in
values_for_issue' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] plugins/redmine_release_notes/app/models/release_notes_generator.rb:100:inblock in generate_release_notes' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activerecord (3.2.13) lib/active_record/relation/batches.rb:21:in
block (2 levels) in find_each' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activerecord (3.2.13) lib/active_record/relation/batches.rb:21:ineach' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activerecord (3.2.13) lib/active_record/relation/batches.rb:21:in
block in find_each' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activerecord (3.2.13) lib/active_record/relation/batches.rb:72:infind_in_batches' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activerecord (3.2.13) lib/active_record/relation/batches.rb:20:in
find_each' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] plugins/redmine_release_notes/app/models/release_notes_generator.rb:99:ingenerate_release_notes' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] plugins/redmine_release_notes/app/models/release_notes_generator.rb:88:in
generate' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] plugins/redmine_release_notes/app/controllers/release_notes_controller.rb:88:ingenerate' [ 2014-01-12 09:27:24.5778 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in
send_action' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/abstract_controller/base.rb:167:inprocess_action' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in
process_action' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:inblock in process_action' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/callbacks.rb:469:in
_run4209318515677456723process_action447804762343614572callbacks' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/callbacks.rb:405:in__run_callback' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in
process_action' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:inprocess_action' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument' [ 2014-01-12 09:27:24.5779 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in
instrument' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in
process_action' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in
process_action' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/abstract_controller/base.rb:121:inprocess' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in
process' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal.rb:203:indispatch' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_controller/metal.rb:246:inblock in action' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in
call' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:indispatch' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in
call' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] journey (1.0.4) lib/journey/router.rb:68:inblock in call' [ 2014-01-12 09:27:24.5780 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] journey (1.0.4) lib/journey/router.rb:56:in
each' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] journey (1.0.4) lib/journey/router.rb:56:incall' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in
call' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack-openid (1.3.1) lib/rack/openid.rb:98:incall' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/etag.rb:23:incall' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/conditionalget.rb:25:in
call' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:incall' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in
call' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:incall' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/session/abstract/id.rb:210:in
context' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in
call' [ 2014-01-12 09:27:24.5781 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activerecord (3.2.13) lib/act [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] ive_record/query_cache.rb:64:incall' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
call' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/callbacks.rb:405:in
_run1687020521968523746call656204176345847800callbacks' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/callbacks.rb:405:in__run_callback' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/callbacks.rb:385:in
_run_call_callbacks' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in
call' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:incall' [ 2014-01-12 09:27:24.5782 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] railties (3.2.13) lib/rails/rack/logger.rb:32:in
call_app' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in
tagged' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] railties (3.2.13) lib/rails/rack/logger.rb:16:incall' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in
call' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/methodoverride.rb:21:incall' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/runtime.rb:17:in
call' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/lock.rb:15:in
call' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' [ 2014-01-12 09:27:24.5783 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack-cache (1.2) lib/rack/cache/context.rb:51:in
call' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] railties (3.2.13) lib/rails/engine.rb:479:incall' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] railties (3.2.13) lib/rails/application.rb:223:in
call' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] railties (3.2.13) lib/rails/railtie/configurable.rb:30:inmethod_missing' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/builder.rb:134:in
call' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/urlmap.rb:64:inblock in call' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/urlmap.rb:49:in
each' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] rack (1.4.5) lib/rack/urlmap.rb:49:incall' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] passenger (4.0.2) lib/phusion_passenger/rack/thread_handler_extension.rb:77:in
process_request' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] passenger (4.0.2) lib/phusion_passenger/request_handler/thread_handler.rb:135:inaccept_and_process_next_request' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] passenger (4.0.2) lib/phusion_passenger/request_handler/thread_handler.rb:106:in
main_loop' [ 2014-01-12 09:27:24.5784 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] passenger (4.0.2) lib/phusion_passenger/request_handler.rb:449:inblock (4 levels) in start_threads' [ 2014-01-12 09:27:24.5785 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] passenger (4.0.2) lib/phusion_passenger/utils/robust_interruption.rb:108:in
disable_interruptions' [ 2014-01-12 09:27:24.5785 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] passenger (4.0.2) lib/phusion_passenger/request_handler.rb:444:in `block (3 levels) in start_threads' [ 2014-01-12 09:27:24.5785 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr] [ 2014-01-12 09:27:24.5785 13205/7fd8c00da700 Pool2/Implementation.cpp:1156 ]: [App 12319 stderr]