devaneando / Wikitten

Wikitten is a small, fast, PHP wiki, and the perfect place to store your notes, code snippets, ideas, and so on.
MIT License
739 stars 174 forks source link

Uncaught Exception: Page 'index.md' was not found #110

Open gentao123 opened 4 years ago

gentao123 commented 4 years ago

After deploy new version,can not access wikitten normally evn: nginx/1.12.1 PHP 7.3.4 page error: Fatal error: Uncaught Exception: Page 'index.md' was not found in /www/mywiki/wiki.php:52 Stack trace: #0 /www/mywiki/wiki.php(133): Wiki->{closure}() #1 /www/mywiki/wiki.php(401): Wiki->_render('index.md') #2 /www/mywiki/wiki.php(339): Wiki->indexAction() #3 /www/mywiki/index.php(34): Wiki->dispatch() #4 {main} thrown in /www/mywiki/wiki.php on line 52 someone met this problem?

coffe1nk2 commented 4 years ago

I got this error too

[Fri Apr 17 00:38:10.523325 2020] [php7:error] [pid 3181] [client 192.168.50.1:48293] PHP Fatal error: Uncaught Exception: Page 'index.md' was not found in /var/www/html/wikitten/wiki.php:52\nStack trace:\n#0 /var/www/html/wikitten/wiki.php(133): Wiki->{closure}()\n#1 /var/www/html/wikitten/wiki.php(401): Wiki->_render('index.md')\n#2 /var/www/html/wikitten/wiki.php(339): Wiki->indexAction()\n#3 /var/www/html/wikitten/index.php(34): Wiki->dispatch()\n#4 {main}\n thrown in /var/www/html/wikitten/wiki.php on line 52

Apache/2.4.6 (CentOS) PHP 7.3.4

fjxhkj commented 4 years ago

vim config.php uncomment the define('ENABLE_EDITING', true); line. try again!

bulubula commented 4 years ago

vi wiki.php comment the line 52, like // throw new Exception("Page '$page' was not found"); try again!