PHP Fatal error: Uncaught Error: Call to undefined function json_encode()

Expected Behaviour: Error free load of admin page.
Actual Behaviour: Dashboard showing loading animation.
Debug Token: https://tricorder.pi-hole.net/v67idzgxbo

[root@PiHole ~]# tail -f /var/log/lighttpd/error.log
2020-04-01 00:51:39: (mod_fastcgi.c.421) FastCGI-stderr: #0 {main}
2020-04-01 00:51:39: (mod_fastcgi.c.421) FastCGI-stderr: thrown in /var/www/html/admin/api.php on line 139
2020-04-01 00:51:39: (mod_fastcgi.c.421) FastCGI-stderr: PHP Fatal error: Uncaught Error: Call to undefined function json_encode() in /var/www/html/admin/api.php:139

*** [ DIAGNOSING ]: Operating system
[✓] CentOS Linux 8 (Core)

As noted in the thread below, Centos 8 is not a supported OS, as it lacks some of the dependencies required for Pi-hole. Centos 8 is missing a package, php-json ; you will need to install that for the web interface to work.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.