From 54b065c253ce650344004ef629a6cab1404fdd2b Mon Sep 17 00:00:00 2001 From: rfolo9li <50079896+rfolo9li@users.noreply.github.com> Date: Sat, 9 Nov 2019 15:24:10 +0100 Subject: [PATCH 1/2] Added php-json as required PHP module Without php-json the installation stops with a white screen and the following error: > 09-Nov-2019 14:05:46 UTC] PHP Fatal error: Uncaught Error: Call to undefined function Shaarli\Config\json_encode() in /var/www/html/shaarli/application/config/ConfigJson.php:48 > Stack trace: > #0 /var/www/html/shaarli/application/config/ConfigManager.php(239): Shaarli\Config\ConfigJson->write('data/config.jso...', Array) > #1 /var/www/html/shaarli/index.php(1835): Shaarli\Config\ConfigManager->write(false) > #2 /var/www/html/shaarli/index.php(178): install(Object(Shaarli\Config\ConfigManager), Object(Shaarli\Security\SessionManager), Object(Shaarli\Security\LoginManager)) > #3 {main} > thrown in /var/www/html/shaarli/application/config/ConfigJson.php on line 48 Tested with Shaarli 0.10.4 on CentOS 8 with Httpd 2.4.37 and PHP 7.2.11. --- doc/md/Server-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/md/Server-configuration.md b/doc/md/Server-configuration.md index 88eed8e6..b9ac01cb 100644 --- a/doc/md/Server-configuration.md +++ b/doc/md/Server-configuration.md @@ -28,12 +28,12 @@ Version | Status | Shaarli compatibility Extension | Required? | Usage ---|:---:|--- [`openssl`](http://php.net/manual/en/book.openssl.php) | All | OpenSSL, HTTPS +[`php-json`](http://php.net/manual/en/book.json.php) | required | ? [`php-mbstring`](http://php.net/manual/en/book.mbstring.php) | CentOS, Fedora, RHEL, Windows, some hosting providers | multibyte (Unicode) string support [`php-gd`](http://php.net/manual/en/book.image.php) | optional | required to use thumbnails [`php-intl`](http://php.net/manual/en/book.intl.php) | optional | localized text sorting (e.g. `e->è->f`) [`php-curl`](http://php.net/manual/en/book.curl.php) | optional | using cURL for fetching webpages and thumbnails in a more robust way [`php-gettext`](http://php.net/manual/en/book.gettext.php) | optional | Use the translation system in gettext mode (faster) - -------------------------------------------------------------------------------- ### SSL/TLS configuration From 3575fe5bcf8910afad5cc82ed68f3d442bab1a88 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sat, 9 Nov 2019 15:40:53 +0000 Subject: [PATCH 2/2] doc: add explanation of php-json requirement --- doc/md/Server-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/md/Server-configuration.md b/doc/md/Server-configuration.md index b9ac01cb..bd293c37 100644 --- a/doc/md/Server-configuration.md +++ b/doc/md/Server-configuration.md @@ -28,7 +28,7 @@ Version | Status | Shaarli compatibility Extension | Required? | Usage ---|:---:|--- [`openssl`](http://php.net/manual/en/book.openssl.php) | All | OpenSSL, HTTPS -[`php-json`](http://php.net/manual/en/book.json.php) | required | ? +[`php-json`](http://php.net/manual/en/book.json.php) | required | configuration parsing [`php-mbstring`](http://php.net/manual/en/book.mbstring.php) | CentOS, Fedora, RHEL, Windows, some hosting providers | multibyte (Unicode) string support [`php-gd`](http://php.net/manual/en/book.image.php) | optional | required to use thumbnails [`php-intl`](http://php.net/manual/en/book.intl.php) | optional | localized text sorting (e.g. `e->è->f`)