Bonjour,
After upgrade to 3.2.1 from 3.1.3, I have the following error in the GUI when trying to access Statistics
We’re sorry, but something went wrong.
If you are the application owner check the logs for more information.
and in the production.log :
2022-06-16T16:19:01 [W|app|6cd8f59b] undefined local variable or method
notifications' for #<#<Class:0x000000000f3eea40>:0x000000000f3f1600> 2022-06-16T16:19:01 [F|app|6cd8f59b] 6cd8f59b | ActionView::Template::Error (undefined local variable or method
notifications’ for #<#Class:0x000000000f3eea40:0x000000001007e5a8>):
6cd8f59b | 7: <% end %>
6cd8f59b | 8:
6cd8f59b | 9: <% content_for(:content) do %>
6cd8f59b | 10: <%= notifications %>
6cd8f59b | 11: <div id=“organization-id” data-id="<%= Organization.current.id if Organization.current %>" >
6cd8f59b | 12: <div id=“user-id” data-id="<%= User.current.id if User.current %>" >
6cd8f59b | 13: <%= react_component(‘ForemanStatistics’) %>
6cd8f59b |
6cd8f59b | foreman_statistics (2.0.0) app/views/foreman_statistics/layouts/application_react.html.erb:10
6cd8f59b | foreman_statistics (2.0.0) app/views/foreman_statistics/layouts/application_react.html.erb:9
6cd8f59b | app/controllers/application_controller.rb:354:ingeneric_exception' 6cd8f59b | lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in
call’
6cd8f59b | lib/foreman/middleware/telemetry.rb:10:incall' 6cd8f59b | lib/foreman/middleware/catch_json_parse_errors.rb:9:in
call’
6cd8f59b | lib/foreman/middleware/logging_context_session.rb:22:incall' 6cd8f59b | lib/foreman/middleware/logging_context_request.rb:11:in
call’
do you have an idea ?
Thank you
Frederic