- Plesk for Linux
- Plesk installed on a server with Cloud Linux and alt-php is used in Domains > example.com > PHP settings;
- On attempt to install WordPress via WordPress Toolkit following error appears:
PLESK_ERROR: PHP Fatal error: Uncaught Error: Call to undefined function json_encode() in /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/vendor/mustache/mustache/src/Mustache/Engine.php:637
- Scanning/refresh of the WordPress instance results with an error and instances marked as broken:
PLESK_ERROR: Your PHP installation appears to be missing the MySQL extension which is required by WordPress. PHP Fatal error: Uncaught Error: Call to undefined function json_encode() in /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/php/class-wp-cli.php:742
Product issue #PPP-49716 that will be fixed in future product updates.
As a workaround, add the following into Additional directives in Domains > example.com > PHP Settings: