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

ADMINがページ作成できる設定でのエラー #12

Open
mifjpn opened this issue Sep 1, 2014 · 2 comments
Open

ADMINがページ作成できる設定でのエラー #12

mifjpn opened this issue Sep 1, 2014 · 2 comments

Comments

@mifjpn
Copy link

mifjpn commented Sep 1, 2014

•PHP 5.5.9-1ubuntu4.3 is running as apache2handler mode. / Powerd by Apache/2.4.7 (Ubuntu).
•Using Zend Framework ver.2.3.2.
•Cache system using Filesystem.
•Mecab is disabled. If you installed, please check mecab path.
•JavaScript framework:Modernizr: 2.7.2 / jQuery: 2.1.1 / jQuery UI: 1.10.4.
2.0.0ベータ3です。
もう直ってるかもしれませんが、報告いたします。
pukiwiki.ini.phpを
// PKWK_CREATE_PAGE - New page making is prohibited.
define('PKWK_CREATE_PAGE', Auth::ROLE_ADMIN);
とした時、ページ上で新規作成を押すと以下のエラーが出ます。
ページ読み込み時にエラーが発生しました。

•readyState:4
•status:500
•statusText:Internal Server Error
{"posted":false,"title":"","body":"\u003Cp class=\u0022alert alert-warning\u0022\u003E\u003Cspan class=\u0022fa fa-ban\u0022\u003E\u003C/span\u003E \u003Cstrong\u003E\u30e9\u30f3\u30bf\u30a4\u30e0\u30a8\u30e9\u30fc\u003C/strong\u003E\n\u73fe\u5728\u3053\u306eWiki\u306f\u3001\u003Cvar\u003EPKWK_CREATE_PAGE\u003C/var\u003E\u30e2\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u305f\u4f5c\u696d\u306f\u3001\u7981\u6b62\u3055\u308c\u3066\u3044\u307e\u3059\u3002\n\u003C/p\u003E","taketime":"0.098"}

@logue
Copy link
Owner

logue commented Sep 2, 2014

調べてみましたが、Internal Server Errorになるのは一応正しい動作です。
化けているエラーは「 現在このWikiは、PKWK_CREATE_PAGEモードになっています。実行しようとしていた作業は、禁止されています。」と出ています。
ただ、あくまでもページ作成できないというのがこの反応の趣旨なので変えたほうがいいかもしれませんね。

@logue
Copy link
Owner

logue commented Sep 2, 2014

960c35b
で修正しました。

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

2 participants