I looked at other SO answers here and here about this error: FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function utf8_decode
Both answers say that installing php-xml will fix the error. But that didn't work. I ran sudo apt install php-xml
which installed both php-xml and php7.0-xml and I restarted php-fpm and nginx. But I still get the same error.
Also checked function_exists('utf8_decode')
and it returns false. So the error is obviously thrown when utf8_decode is called.
The server is Ubuntu 16.04 and PHP 7.0. Here's the phpinfo output (PDF): https://drive.google.com/file/d/0B3GpdAvwm4fOaWMwb0JkTFQyb0U/view?usp=sharing