Open kha84 opened 1 year ago
Sorry, I started with a problem but totally forget my manners. I really appreciate this project - it has a unique combination of everything I ever wanted from wiki engines: a simplicity, file based storage and a native support of Markdown syntax. It's just a perfect match for my use case.
Also when you hit More -> Statistics -> Untagged pages
you get 500:
[Thu Feb 23 12:43:27.537911 2023] [php:warn] [pid 14460] [client ::1:43668] PHP Warning: Undefined property: stdClass::$untagged-pages in /var/www/html/pmwiki/index.php on line 7182, referer: http://localhost/pmwiki/index.php?action=stats
[Thu Feb 23 12:43:27.537987 2023] [php:warn] [pid 14460] [client ::1:43668] PHP Warning: Attempt to read property "value" on null in /var/www/html/pmwiki/index.php on line 7182, referer: http://localhost/pmwiki/index.php?action=stats
[Thu Feb 23 12:43:27.538035 2023] [php:error] [pid 14460] [client ::1:43668] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/pmwiki/index.php:7182
Stack trace:
#0 /var/www/html/pmwiki/index.php(14941): {closure}()
#1 {main}
thrown in /var/www/html/pmwiki/index.php on line 7182, referer: http://localhost/pmwiki/index.php?action=stats
And similar thing for More -> Statistics -> Orphan pages
:
[Thu Feb 23 12:43:52.994531 2023] [php:warn] [pid 14541] [client ::1:35736] PHP Warning: Undefined property: stdClass::$orphan-pages in /var/www/html/pmwiki/index.php on line 7182, referer: http://localhost/pmwiki/index.php?action=stats
[Thu Feb 23 12:43:52.994568 2023] [php:warn] [pid 14541] [client ::1:35736] PHP Warning: Attempt to read property "value" on null in /var/www/html/pmwiki/index.php on line 7182, referer: http://localhost/pmwiki/index.php?action=stats
[Thu Feb 23 12:43:52.994587 2023] [php:error] [pid 14541] [client ::1:35736] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/pmwiki/index.php:7182
Stack trace:
#0 /var/www/html/pmwiki/index.php(14941): {closure}()
#1 {main}
thrown in /var/www/html/pmwiki/index.php on line 7182, referer: http://localhost/pmwiki/index.php?action=stats
One more thing, when I hit the "/index.php?action=user-preferences" I can see an extra }
character being added to my email, and then when I try to save it I get this error in error.log
:
[Thu Feb 23 12:50:05.233058 2023] [php:error] [pid 14457] [client ::1:55970] PHP Fatal error: Uncaught Error: Call to undefined function email_verify_addresses() in /var/www/html/pmwiki/index.php:8566
Stack trace:
#0 /var/www/html/pmwiki/index.php(14941): {closure}()
#1 {main}
thrown in /var/www/html/pmwiki/index.php on line 8566, referer: http://localhost/pmwiki/index.php?action=user-preferences
Upon the initial installation, the installer doesn't check if sqlite3 PHP module is installed, even though right now there's a hard requirement for it. This results in a wiki instance being created without creating so much needed sqlite3 database. It looks functional, unless you attempt to create a new page and save it (preview works fine, btw). But upon saving you start getting HTTP 500.
In apache2 error.log you see this and this is when you realize that you missed to install sqlite3:
But just installing it doesn't help. You still see these errors upon saving a page:
My guess this happens because the database is only created during the initial install / wiki instance creation.
I'm not familiar with PepermintWiki architecture so I cannot suggest how strong is the requirement for sqlite3 - it's up to you guys to make a decision. The proposed solution here could be: