プロジェクト

全般

プロフィール

Vote #74444

完了

500 error when viewing a wiki page without WikiContent

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
70
issue_org_id:
14986
author_id:
19222
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
73
ステータス-->[Closed]

説明

A 500 internal error occurs when viewing a particular wiki page, the following appears in the log:

Started GET "/redmine/projects/projName/wiki/SomeWikiPage" for  at Thu Sep 26 13:57:39 +1000 2013
Processing by WikiController#show as HTML
  Parameters: {"project_id"=>"projName", "id"=>"SomeWikiPage"}
  Current user: userName(id=3)
Completed 500 Internal Server Error in 19ms

NoMethodError (undefined method `current_version?' for nil:NilClass):
  app/controllers/wiki_controller.rb:96:in `show'

The error is 100% repeatable when viewing this particular page, although other wiki pages are rendered ok.
We believe it may have happened after deleting a revision on the wiki history page.
We tried to repeat it on the redmine demo site with no luck, although the demo site says it was running 2.3.1.devel.11915, we are using 2.3.3.stable.

Environment:
Redmine version 2.3.3.stable
Ruby version 1.8.7-p253 (2010-04-19) [i686-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
redmine_github_hook 0.2.0


journals

--------------------------------------------------------------------------------
It looks like there's no WikiContent for this page. I have no clue on why this happened but the error is fixed in r12220 and you should now be able to edit this page.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン2.4.0_70 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0