Unable to view Audit Log under Moderation


#1

Hi,

Whenever I go to Audit Log under Moderation section, it always show me “We’re sorry, but something went wrong on our end.” with the elephant hitting error computer GIF. May I ask if anyone experienced this? And, any potential reasons why?


#2

Which version are you running? Anything interesting in the web service log?


#3

The following is the recorded log when I visit Audit Log, but I couldn’t really tell what exactly went wrong there.

Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049] ActionView::Template::Error (No route matches {:account_username=>nil, :action=>"show", :controller=>"statuses", :id=>#<Status id: nil, uri: nil, text: "", created_at: nil, updated_at: nil, in_reply_to_id: nil, reblog_of_id: nil, url: nil, sensitive: true, visibility: "public", spoiler_text: "", reply: false, favourites_count: 0, reblogs_count: 0, language: nil, conversation_id: nil, local: nil, account_id: nil, application_id: nil, in_reply_to_account_id: nil>}, possible unmatched constraints: [:account_username, :id]):
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]     4:       = image_tag action_log.account.avatar.url(:original), alt: '', width: 40, height: 40, class: 'avatar'
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]     5:     .log-entry__content
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]     6:       .log-entry__title
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]     7:         = t("admin.action_logs.actions.#{action_log.action}_#{action_log.target_type.underscore}", name: content_tag(:span, action_log.account.username, class: 'username'), target: content_tag(:span, log_target(action_log), class: 'target')).html_safe
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]     8:       .log-entry__timestamp
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]     9:         %time= l action_log.created_at
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]    10:     .spacer
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049]
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049] app/lib/tag_manager.rb:44:in `url_for'
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049] app/helpers/admin/action_logs_helper.rb:37:in `log_target_from_history'
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049] app/helpers/admin/action_logs_helper.rb:8:in `log_target'
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049] app/views/admin/action_logs/_action_log.html.haml:7:in `_app_views_admin_action_logs__action_log_html_haml___3357577132641565952_69866845368380'
Jun 03 11:10:08 host.lgbt.io bundle[1454]: [804d7781-53af-4ef6-b4f7-e463a3c14049] app/views/admin/action_logs/index.html.haml:4:in `_app_views_admin_action_logs_index_html_haml___4295182685558196443_69866846188840'

#4

Did you delete some statuses? Looks like this problem has been reported already:


#5

There are bugs with the audit log code and deleted items, unfortunately. I believe we might be able to refactor the whole thing in a future release.