Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionView::Template::Error) "undefined method `/' for nil:NilClass #1436

Closed
donrestarone opened this issue Mar 8, 2023 · 0 comments
Closed
Labels
bug Something isn't working high priority

Comments

@donrestarone
Copy link
Contributor

An ActionView::Template::Error occurred in dashboard#dashboard:

  undefined method `/' for nil:NilClass
  app/views/comfy/admin/v2/dashboard/dashboard.html.haml:143


-------------------------------
Request:
-------------------------------

  * URL        : https://nikean.org/v2/dashboard
  * HTTP Method: GET
  * IP address : 74.15.198.4
  * Parameters : {"controller"=>"comfy/admin/v2/dashboard", "action"=>"dashboard"}
  * Timestamp  : 2023-03-08 00:10:24 UTC
  * Server : ip-172-31-14-250
    * Rails root : /var/www/violet/releases/20230226160309
  * Process: 940827

-------------------------------
Session:
-------------------------------

  * session id: [FILTERED]
  * data: {"session_id"=>"709d596d1d43da29102b4f5749c8705f",
   "user_return_to"=>"/v2/dashboard",
   "warden.user.user.key"=>[[1], "$2a$12$WzLq2Z7gALlIsGWDuPTQQO"],
   "warden.user.user.session"=>{"last_request_at"=>1678234223},
   "site_id"=>1,
   "_csrf_token"=>"CKOwRwgQr0TWPf8ptWtfcmqww5A8vtdMJKo5VSILNgM="}

-------------------------------
Environment:
-------------------------------

  * GATEWAY_INTERFACE                                       : CGI/1.2
    * HTTP_ACCEPT                                             : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    * HTTP_ACCEPT_ENCODING                                    : gzip, deflate, br
    * HTTP_ACCEPT_LANGUAGE                                    : en-CA,en-US;q=0.9,en;q=0.8
    * HTTP_CONNECTION                                         : close
    * HTTP_COOKIE                                             : _r_solutions_session=faV9AKa12lGavl5vEKJp6Kc0CIhCf3O29Jx9QNjtw2y2USXzQuBESQF6PucOAN0fqN4kxGYcPFbwfo7DJ7mKbOzYFNEJ%2FSLVnhQnmHuvQsfFjJw7SgXk%2BjjvWAji82zdd3t6QjDbOGSqGcwu6pjmIrmxaDerPgCIiokTYHP4n4YEnLaE%2F43hgUcQ5%2BBh5GYrFrNASjepX0eIqCuKPBeFkfjC0YT8pPZkhakdsv6uA004Ckgitgk5alUFY4Vl7FlW2ymVDwod9LqsqgtK%2BIlAL3WEhPwAtBP2wyfSvsk4yhlk8I%2B%2B622CHMZD%2FJyOe5H0NOyrVCqyyB6JRR3s5aLYa4uvG1rf%2BSaeryQukBANoeojY6Rk2t%2BOmbt2hFIRczq%2F%2BdonwREenl%2FD1IukHr8yf1cNlm6jm9nPhGFbS5PmwDw19uVxYmR3%2F7n1GiS44ztwX9isxs1WXEES56kQez%2BcvopQ7S4NOjftUGacS%2F1kTBgq2qGGSv12FEsZ8eHSx5eG3%2Ff2CYhAAvjja11HTngGUr1z%2BCmPh302vxinBOEx1A%2Fp4DEqtGqfRHX1oXJnV4isgKYX2vUl6XKEDzNBsf1NYA%3D%3D--O7w2NNE6C62Mrm55--aE9J4JyHbeEofVsQHFmhdA%3D%3D; cookies_accepted=false
    * HTTP_HOST                                               : [nikean.org](http://nikean.org/)
    * HTTP_REFERER                                            : https://nikean.org/admin/sites/1/pages
    * HTTP_USER_AGENT                                         : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
    * HTTP_VERSION                                            : HTTP/1.0
    * HTTP_X_FORWARDED_FOR                                    : 74.15.198.4
    * HTTP_X_FORWARDED_PROTO                                  : https
    * HTTP_X_REAL_IP                                          : 74.15.198.4
    * ORIGINAL_FULLPATH                                       : /v2/dashboard
    * ORIGINAL_SCRIPT_NAME                                    :
    * PATH_INFO                                               : /v2/dashboard
    * QUERY_STRING                                            :
    * REMOTE_ADDR                                             : 127.0.0.1
    * REQUEST_METHOD                                          : GET
    * REQUEST_PATH                                            : /v2/dashboard
    * REQUEST_URI                                             : /v2/dashboard
    * ROUTES_47275405580060_SCRIPT_NAME                       :
    * SCRIPT_NAME                                             :
    * SERVER_NAME                                             : [nikean.org](http://nikean.org/)
    * SERVER_PORT                                             : 443
    * SERVER_PROTOCOL                                         : HTTP/1.1
    * SERVER_SOFTWARE                                         : puma 5.6.4 Birdie's Version
    * action_controller.instance                              : #<Comfy::Admin::V2::DashboardController:0x00007f8a05be2238>
    * action_dispatch.authenticated_encrypted_cookie_salt     : [FILTERED]
    * action_dispatch.backtrace_cleaner                       : #<Rails::BacktraceCleaner:0x000055fe54ea3690>
    * action_dispatch.content_security_policy                 :
    * action_dispatch.content_security_policy_nonce_directives:
    * action_dispatch.content_security_policy_nonce_generator :
    * action_dispatch.content_security_policy_report_only     : false
    * action_dispatch.cookies                                 : #<ActionDispatch::Cookies::CookieJar:0x00007f8a040eccd0>
    * action_dispatch.cookies_digest                          :
    * action_dispatch.cookies_rotations                       : #<ActiveSupport::Messages::RotationConfiguration:0x000055fe502c20f0>
    * action_dispatch.cookies_same_site_protection            : #<Proc:0x000055fe53b9fe40@/var/www/violet/shared/bundle/ruby/2.6.0/gems/railties-6.1.5/lib/rails/application.rb:636>
    * action_dispatch.cookies_serializer                      : json
    * action_dispatch.encrypted_cookie_cipher                 : [FILTERED]
    * action_dispatch.encrypted_cookie_salt                   : [FILTERED]
    * action_dispatch.encrypted_signed_cookie_salt            : [FILTERED]
    * action_dispatch.http_auth_salt                          : [FILTERED]
    * action_dispatch.key_generator                           : #<ActiveSupport::CachingKeyGenerator:0x000055fe5301f1b0>
    * action_dispatch.logger                                  : #<ActiveSupport::Logger:0x000055fe53eb7b28>
    * action_dispatch.parameter_filter                        : [:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn]
    * action_dispatch.permissions_policy                      :
    * action_dispatch.redirect_filter                         : []
    * action_dispatch.remote_ip                               : 74.15.198.4
    * action_dispatch.request.content_type                    :
    * action_dispatch.request.formats                         : [#<Mime::Type:0x000055fe4f7ab1d0 @synonyms=["application/xhtml+xml"], @symbol=:html, @string="text/html", @hash=1404236855918785955>]
    * action_dispatch.request.parameters                      : {"controller"=>"comfy/admin/v2/dashboard", "action"=>"dashboard"}
    * action_dispatch.request.path_parameters                 : {:controller=>"comfy/admin/v2/dashboard", :action=>"dashboard"}
    * action_dispatch.request.query_parameters                : {}
    * action_dispatch.request.request_parameters              : {}
    * action_dispatch.request.unsigned_session_cookie         : {"session_id"=>"709d596d1d43da29102b4f5749c8705f", "user_return_to"=>"/admin/sites/1/pages", "warden.user.user.key"=>[[1], "$2a$12$WzLq2Z7gALlIsGWDuPTQQO"], "warden.user.user.session"=>{"last_request_at"=>1678234223}, "site_id"=>1, "_csrf_token"=>"[FILTERED]"}
    * action_dispatch.request_id                              : b7c4b0d2-c0dc-4fcc-a7b1-3077deabbe6a
    * action_dispatch.routes                                  : #<ActionDispatch::Routing::RouteSet:0x000055fe53832e38>
    * action_dispatch.secret_key_base                         : [FILTERED]
    * action_dispatch.show_detailed_exceptions                : false
    * action_dispatch.show_exceptions                         : true
    * action_dispatch.signed_cookie_digest                    :
    * action_dispatch.signed_cookie_salt                      : [FILTERED]
    * action_dispatch.use_authenticated_cookie_encryption     : [FILTERED]
    * action_dispatch.use_cookies_with_metadata               : true
    * exception_notifier.exception_data                       : {:current_user=>#<User id: 1, global_admin: true, created_at: "2021-08-05 14:44:57.235323000 +0000", updated_at: "2023-03-08 00:10:21.511817000 +0000", email: "[[email protected]](mailto:[email protected])", can_manage_web: true, can_manage_email: true, can_manage_users: true, can_manage_blog: true, name: "Shashike J", mod...
    * puma.config                                             : #<Puma::Configuration:0x000055fe4eab9350>
    * puma.request_body_wait                                  : 0
    * puma.socket                                             : #<TCPSocket:0x00007f8a04fd6d68>
    * [rack-timeout.info](http://rack-timeout.info/)                                       : #<struct Rack::Timeout::RequestDetails id="501cb2fa-bb3b-4b64-9a8c-ae65e3b4f416", wait=nil, service=1.00027890491765, timeout=15, state=:active, term=false>
    * rack.after_reply                                        : []
    * rack.cors                                               : #<Rack::Cors::Result:0x00007f8a04fd65c0>
    * rack.errors                                             : #<IO:0x000055fe4df6c0b0>
    * rack.hijack                                             : #<Puma::Client:0x00007f8a04fd6d40>
    * rack.hijack?                                            : true
    * rack.input                                              : #<Puma::NullIO:0x000055fe4e48bca8>
    * rack.multiprocess                                       : false
    * rack.multithread                                        : true
    * rack.request.cookie_hash                                : {"_r_solutions_session"=>"faV9AKa12lGavl5vEKJp6Kc0CIhCf3O29Jx9QNjtw2y2USXzQuBESQF6PucOAN0fqN4kxGYcPFbwfo7DJ7mKbOzYFNEJ/SLVnhQnmHuvQsfFjJw7SgXk+jjvWAji82zdd3t6QjDbOGSqGcwu6pjmIrmxaDerPgCIiokTYHP4n4YEnLaE/43hgUcQ5+Bh5GYrFrNASjepX0eIqCuKPBeFkfjC0YT8pPZkhakdsv6uA004Ckgitgk5alUFY4Vl7FlW2ymVDwod9LqsqgtK+I...
    * rack.request.cookie_string                              : _r_solutions_session=faV9AKa12lGavl5vEKJp6Kc0CIhCf3O29Jx9QNjtw2y2USXzQuBESQF6PucOAN0fqN4kxGYcPFbwfo7DJ7mKbOzYFNEJ%2FSLVnhQnmHuvQsfFjJw7SgXk%2BjjvWAji82zdd3t6QjDbOGSqGcwu6pjmIrmxaDerPgCIiokTYHP4n4YEnLaE%2F43hgUcQ5%2BBh5GYrFrNASjepX0eIqCuKPBeFkfjC0YT8pPZkhakdsv6uA004Ckgitgk5alUFY4Vl7FlW2ymVDwod9LqsqgtK%2BIlAL3WEhPwAtBP2wyfSvsk4yhlk8I%2B%2B622CHMZD%2FJyOe5H0NOyrVCqyyB6JRR3s5aLYa4uvG1rf%2BSaeryQukBANoeojY6Rk2t%2BOmbt2hFIRczq%2F%2BdonwREenl%2FD1IukHr8yf1cNlm6jm9nPhGFbS5PmwDw19uVxYmR3%2F7n1GiS44ztwX9isxs1WXEES56kQez%2BcvopQ7S4NOjftUGacS%2F1kTBgq2qGGSv12FEsZ8eHSx5eG3%2Ff2CYhAAvjja11HTngGUr1z%2BCmPh302vxinBOEx1A%2Fp4DEqtGqfRHX1oXJnV4isgKYX2vUl6XKEDzNBsf1NYA%3D%3D--O7w2NNE6C62Mrm55--aE9J4JyHbeEofVsQHFmhdA%3D%3D; cookies_accepted=false
    * rack.request.query_hash                                 : {}
    * rack.request.query_string                               :
    * rack.run_once                                           : false
    * rack.session                                            : #<ActionDispatch::Request::Session:0x00007f8a05153808>
    * rack.session.options                                    : #<ActionDispatch::Request::Session::Options:0x00007f8a051537b8>
    * rack.tempfiles                                          : []
    * rack.url_scheme                                         : https
    * rack.version                                            : [1, 6]
    * warden                                                  : Warden::Proxy:70115383745380 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:two_factor_authenticatable, :two_factor_authenticatable, :rememberable]}, :intercept_401=>false, :failure_app=>RSolutionsFailureApp}

-------------------------------
Backtrace:
-------------------------------

  app/views/comfy/admin/v2/dashboard/dashboard.html.haml:143
  app/views/comfy/admin/v2/dashboard/dashboard.html.haml:131:in `each'
  app/views/comfy/admin/v2/dashboard/dashboard.html.haml:131
  config/initializers/rack_timeout.rb:21:in `call'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority
Projects
None yet
Development

No branches or pull requests

1 participant