{"action":"opened","issue":{"url":"https://api.github.com/repos/angusmcleod/discourse-custom-wizard/issues/2","repository_url":"https://api.github.com/repos/angusmcleod/discourse-custom-wizard","labels_url":"https://api.github.com/repos/angusmcleod/discourse-custom-wizard/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/angusmcleod/discourse-custom-wizard/issues/2/comments","events_url":"https://api.github.com/repos/angusmcleod/discourse-custom-wizard/issues/2/events","html_url":"https://github.com/angusmcleod/discourse-custom-wizard/issues/2","id":321899447,"number":2,"title":"Probably harmless bug when URL doesn't exist","user":{"login":"SystemZ","id":1836094,"avatar_url":"https://avatars1.githubusercontent.com/u/1836094?v=4","gravatar_id":"","url":"https://api.github.com/users/SystemZ","html_url":"https://github.com/SystemZ","followers_url":"https://api.github.com/users/SystemZ/followers","following_url":"https://api.github.com/users/SystemZ/following{/other_user}","gists_url":"https://api.github.com/users/SystemZ/gists{/gist_id}","starred_url":"https://api.github.com/users/SystemZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SystemZ/subscriptions","organizations_url":"https://api.github.com/users/SystemZ/orgs","repos_url":"https://api.github.com/users/SystemZ/repos","events_url":"https://api.github.com/users/SystemZ/events{/privacy}","received_events_url":"https://api.github.com/users/SystemZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-10T11:28:10Z","updated_at":"2018-05-10T11:28:10Z","closed_at":null,"author_association":"NONE","body":"I just encountered it when looking at logs after installing plugin on production setup.\r\nMay be worth to fix it, just in case.\r\n\r\nMessage\r\n```\r\nActionView::Template::Error (undefined method `[]' for nil:NilClass)\r\n/var/www/discourse/plugins/discourse-custom-wizard/lib/template.rb:19:in `initialize'\r\n```\r\nBacktrace\r\n\r\n```\r\n/var/www/discourse/plugins/discourse-custom-wizard/lib/template.rb:19:in `initialize'\r\n/var/www/discourse/plugins/discourse-custom-wizard/controllers/wizard.rb:10:in `new'\r\n/var/www/discourse/plugins/discourse-custom-wizard/controllers/wizard.rb:10:in `wizard'\r\n/var/www/discourse/plugins/discourse-custom-wizard/controllers/wizard.rb:18:in `theme_key'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/helpers.rb:68:in `theme_key'\r\n/var/www/discourse/app/helpers/application_helper.rb:377:in `discourse_stylesheet_link_tag'\r\n/var/www/discourse/app/views/common/_discourse_stylesheet.html.erb:4:in `_app_views_common__discourse_stylesheet_html_erb___2107548416048366524_69928510961420'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/template.rb:157:in `block in render'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/template.rb:352:in `instrument_render_template'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/template.rb:155:in `render'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-mini-profiler-1.0.0/lib/mini_profiler/profiling_methods.rb:78:in `block in profile_method'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/partial_renderer.rb:342:in `block in render_partial'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/partial_renderer.rb:331:in `render_partial'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/partial_renderer.rb:310:in `render'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:47:in `render_partial'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:21:in `render'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/helpers/rendering_helper.rb:32:in `render'\r\n/var/www/discourse/app/views/layouts/no_ember.html.erb:9:in `_app_views_layouts_no_ember_html_erb___40639877190818402_69928516253740'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/template.rb:157:in `block in render'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/template.rb:352:in `instrument_render_template'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/template.rb:155:in `render'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-mini-profiler-1.0.0/lib/mini_profiler/profiling_methods.rb:78:in `block in profile_method'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:64:in `render_with_layout'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:50:in `render_template'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/template_renderer.rb:14:in `render'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:42:in `render_template'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/renderer/renderer.rb:23:in `render'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/rendering.rb:103:in `_render_template'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/streaming.rb:217:in `_render_template'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/rendering.rb:83:in `render_to_body'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:52:in `render_to_body'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/renderers.rb:141:in `render_to_body'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/rendering.rb:46:in `render_to_string'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:41:in `render_to_string'\r\n/var/www/discourse/app/controllers/application_controller.rb:674:in `build_not_found_page'\r\n/var/www/discourse/app/controllers/application_controller.rb:210:in `rescue_discourse_actions'\r\n/var/www/discourse/app/controllers/application_controller.rb:136:in `block in <class:ApplicationController>'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/rescuable.rb:115:in `instance_exec'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/rescuable.rb:115:in `block in handler_for_rescue'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/rescuable.rb:91:in `rescue_with_handler'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/rescuable.rb:164:in `rescue_with_handler'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:23:in `rescue in process_action'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:19:in `process_action'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb:252:in `process_action'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/railties/controller_runtime.rb:22:in `process_action'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-mini-profiler-1.0.0/lib/mini_profiler/profiling_methods.rb:78:in `block in profile_method'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb:189:in `dispatch'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal.rb:253:in `dispatch'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:31:in `serve'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:50:in `block in serve'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `each'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `serve'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:834:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/mapper.rb:46:in `serve'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:50:in `block in serve'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `each'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `serve'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:834:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-protection-2.0.1/lib/rack/protection/frame_options.rb:31:in `call'\r\n/var/www/discourse/lib/middleware/omniauth_bypass_middleware.rb:24:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/conditional_get.rb:25:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/head.rb:12:in `call'\r\n/var/www/discourse/lib/middleware/anonymous_cache.rb:198:in `call'\r\n/var/www/discourse/config/initializers/008-rack-cors.rb:25:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/session/abstract/id.rb:232:in `context'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/session/abstract/id.rb:226:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb:613:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:97:in `run_callbacks'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:24:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/logster-1.2.9/lib/logster/middleware/reporter.rb:31:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/rack/logger.rb:36:in `call_app'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/rack/logger.rb:26:in `call'\r\n/var/www/discourse/config/initializers/100-quiet_logger.rb:16:in `call'\r\n/var/www/discourse/config/initializers/100-silence_logger.rb:29:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/request_id.rb:25:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/method_override.rb:22:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/sendfile.rb:111:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-mini-profiler-1.0.0/lib/mini_profiler/profiler.rb:174:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/message_bus-2.1.4/lib/message_bus/rack/middleware.rb:63:in `call'\r\n/var/www/discourse/lib/middleware/request_tracker.rb:186:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/urlmap.rb:68:in `block in call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/urlmap.rb:53:in `each'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.4/lib/rack/urlmap.rb:53:in `call'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:606:in `process_client'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:701:in `worker_loop'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:549:in `spawn_missing_workers'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:142:in `start'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'\r\n/var/www/discourse/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<main>'\r\n```\r\n\r\nhostname | **redacted**\r\n-- | --\r\nprocess_id | 29045\r\napplication_version | f1ea9cbd918a6045aae524dd0bc9eb0e8bed8980\r\nHTTP_HOST | forum.lvlup.pro\r\nREQUEST_URI | /wp-login.php\r\nREQUEST_METHOD | GET\r\nHTTP_USER_AGENT | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1\r\nHTTP_ACCEPT | */*\r\nHTTP_X_FORWARDED_FOR | **redacted**\r\nHTTP_X_REAL_IP | **redacted**\r\n\r\n"}}
{"actor":{"display_login":"SystemZ"}}