Skip to content

ActionView::Template::Error: undefined method `authored_date' for nil:NilClass

https://sentry.gitlap.com/gitlab/gitlabcom/issues/115169/

NoMethodError: undefined method `authored_date' for nil:NilClass
  app/views/projects/wikis/_pages_wiki_page.html.haml:5:in `_app_views_projects_wikis__pages_wiki_page_html_haml__212183838471053538_70121050243840'
    %small= (s_("Last edited %{date}") % { date: time_ago_with_tooltip(wiki_page.last_version.authored_date) }).html_safe
  app/views/projects/wikis/_wiki_page.html.haml:1:in `_app_views_projects_wikis__wiki_page_html_haml___777407298862316078_70121099362260'
    = render "#{context}_wiki_page", wiki_page: wiki_page
  app/views/projects/wikis/_wiki_directory.html.haml:4:in `_app_views_projects_wikis__wiki_directory_html_haml__3961183475483707163_70121113472540'
    = render wiki_directory.pages, context: context
  app/views/projects/wikis/pages.html.haml:19:in `_app_views_projects_wikis_pages_html_haml__3118935274318515256_70121136122400'
    = render @wiki_entries, context: 'pages'
  lib/gitlab/i18n.rb:47:in `with_locale'
    yield
...
(194 additional frame(s) were not displayed)

ActionView::Template::Error: undefined method `authored_date' for nil:NilClass

ActionView::Template::Error: undefined method `authored_date' for nil:NilClass