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

ページ更新後にエラー #5

Open
shodw opened this issue Jun 24, 2014 · 2 comments
Open

ページ更新後にエラー #5

shodw opened this issue Jun 24, 2014 · 2 comments

Comments

@shodw
Copy link

shodw commented Jun 24, 2014

度々失礼します。
ページ更新後に以下のエラーが出るのですが、何故でしょうか・・・
最新のPukiwiki Adv.で、サーバーはさくらインターネット(ライトプラン)です。

Notice: Undefined variable: page in /home/mywiki/wiki-common/lib/PukiWiki/File/LogFile.php on line 271

Fatal error: Uncaught exception 'Exception' with message 'Wiki.php : invalied page name' in /home/mywiki/wiki-common/lib/PukiWiki/Wiki.php:105 Stack trace:
#0 /home/mywiki/wiki-common/lib/PukiWiki/Factory.php(25): PukiWiki\Wiki->__construct(NULL)
#1 /home/mywiki/wiki-common/lib/PukiWiki/File/LogFile.php(271): PukiWiki\Factory::Wiki(NULL)
#2 /home/mywiki/wiki-common/lib/PukiWiki/File/LogFile.php(237): PukiWiki\File\LogFile->log_set_signature(1403650767)
#3 /home/mywiki/wiki-common/lib/PukiWiki/File/LogFile.php(308): PukiWiki\File\LogFile->log_common_check()
#4 /home/mywiki/wiki-common/lib/PukiWiki/File/Log/UpdateLog.php(37): PukiWiki\File\LogFile->set('', false)
#5 /home/mywiki/wiki-common/lib/PukiWiki/Wiki.php(579): PukiWiki\File\Log\UpdateLog->set()
#6 /home/mywiki/wiki-common/plugin/edit.inc.php(294): PukiWiki\Wiki->set('#contents\r\n\r\n*\xE5...', false)
#7 /home/mywiki/wiki-common/plugin/edit.inc.php(67): plugin_edit_write()
#8 [internal function]: plugin_edit_action()
#9 /home/mywiki/wik in /home/mywiki/wiki-common/lib/PukiWiki/Wiki.php on line 105

PHP 5.4.29 / Apache 2.2.25

@logue
Copy link
Owner

logue commented Jun 25, 2014

最初のLogFile.phpのエラーはバグです。
271行目の$lines = Factory::Wiki($this->page)->get();が、$lines = Factory::Wiki($page)->get();になっていたため発生したようです。

それ以降のエラーは、使用できない文字(%=&?#\r\n\0\t;$+|[]^{})を含むページ名のページを更新しようとしているように見えます。

@shodw
Copy link
Author

shodw commented Jun 26, 2014

ありがとうございました。動作しました。
ページ名については心当たりは無いのですが、今のところエラーは出ていないので様子を見てみます。

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