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

Redmine2.3.1のマイページが404になる #1

Closed
riscaX opened this issue May 24, 2013 · 8 comments
Closed

Redmine2.3.1のマイページが404になる #1

riscaX opened this issue May 24, 2013 · 8 comments

Comments

@riscaX
Copy link

riscaX commented May 24, 2013

Redmine.JP Blogの記事を参考に、新規でCentOS6.4+redmine2.3.1+my_page_blocks最新版の1.2を導入しました。
Remineにプラグインは正常に認識されますが、マイページパーツに機能を追加するとRedmineの404になってしまいます。

log/production.logの該当するログです。

Started GET "/redmines/" for 192.168.1.7 at 2013-05-24 11:36:57 +0900
Processing by WelcomeController#index as HTML
Current user: admin (id=1)
Rendered welcome/index.html.erb within layouts/base (2.8ms)
Completed 200 OK in 22ms (Views: 11.6ms | ActiveRecord: 4.5ms)

Started GET "/redmines/my/page" for 192.168.1.7 at 2013-05-24 11:37:07 +0900
Processing by MyController#page as HTML
Current user: admin (id=1)
Rendered my/page.html.erb within layouts/base (1.5ms)
Missing template, responding with 404
Rendered common/error.html.erb within layouts/base (0.1ms)
Completed 404 Not Found in 23ms (Views: 7.4ms | ActiveRecord: 1.1ms)

@vividtone
Copy link
Owner

ご利用のプラグインのバージョンを正確に把握したいので、実際にインストールされているMy Page Blocksプラグインの init.rb を貼り付けていただけますか。

@riscaX
Copy link
Author

riscaX commented May 24, 2013

承知しました。

cat init.rb

require 'redmine'

Redmine::Plugin.register :redmine_vividtone_mypage_blocks do
name 'My Page Blocks plugin'
author 'MAEDA Go (FAR END Technologies)'
description 'Add some my page blocks'
version '1.2 (20120610)'
url 'http://blog.redmine.jp/articles/my-page-blocks-plugin/'
author_url 'http://twitter.com/g_maeda'
end

@vividtone
Copy link
Owner

プラグインが最新ではないようです。最新版は3行目が以下のようになっており、"my"と"page"の間に"_"が入っています。

https://github.com/vividtone/redmine_vividtone_my_page_blocks/blob/master/init.rb

Redmine::Plugin.register :redmine_vividtone_my_page_blocks do

最新版を取得していただきますようお願いします。

@riscaX
Copy link
Author

riscaX commented May 24, 2013

申告バージョンの間違い失礼いたしました。大変申し訳ありません。
改めて最新版を取得しましたが症状が改善されませんでした。

最新版の取得方法はhttps://github.com/vividtone/redmine_vividtone_my_page_blocksのZIPボタンをクリックし、
取得したZIPファイルのディレクトリ「redmine_vividtone_my_page_blocks-master」をリネームせず、
redmineのpluginsフォルダにコピーしております。(ディレクトリ名「my_page_blocks」も試しました)

試したinit.rb です。
require 'redmine'

Redmine::Plugin.register :redmine_vividtone_my_page_blocks do
name 'My Page Blocks plugin'
author 'MAEDA Go (FAR END Technologies)'
description 'Add some my page blocks'
version '1.2 (20120610)'
url 'http://blog.redmine.jp/articles/my-page-blocks-plugin/'
author_url 'http://twitter.com/g_maeda'
end

該当 log/production.log です。
Started GET "/redmines/my/page_layout" for 192.168.1.7 at 2013-05-24 12:48:16 +0900
Processing by MyController#page_layout as HTML
Current user: test2 (id=4)
Rendered my/_block.html.erb (1.9ms)
Rendered my/page_layout.html.erb within layouts/base (4.1ms)
Missing template, responding with 404
Rendered common/error.html.erb within layouts/base (0.1ms)
Completed 404 Not Found in 21ms (Views: 6.8ms | ActiveRecord: 1.1ms)

@vividtone
Copy link
Owner

ディレクトリ名を redmine_vividtone_my_page_blocks としてみてください。
プラグインのディレクトリ名は、init.rb内の Redmine::Plugin.register に渡している名前と一致しなければならないようです。

@riscaX
Copy link
Author

riscaX commented May 24, 2013

プラグイン名を「redmine_vividtone_my_page_blocks」に変更しhttpdを再起動したところ症状が解消されました。
バグでないのに対応頂きありがとうございます。

@vividtone
Copy link
Owner

無事動作したとのこと、安心しました。
ご利用ありがとうございます!

@openbooks
Copy link

同様のエラーになり、こちらの対応を参考に無事解決できました。ありがとうございます。

vividtone pushed a commit that referenced this issue Mar 25, 2014
優先チケットが何もない場合、以下のリンク表示が
「優先チケット」の項目表示と同じフォントサイズになっていたのを
修正した。

自分のすべてのチケット | すべてのチケット

fixes #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants