Admin interface data not loading on a new fresh install

Please follow the below template, it will help us to help you!

Expected Behaviour:

Data from the Pi-Hole server should be displayed in the web page

Actual Behaviour:

Admin interface loads, graphs do not load and eventually a message unable to connect to database is show in a pop up message.

Debug Token:

https://tricorder.pi-hole.net/l9dc7dl4wl

Do you have the php-json package installed?

OK I ran Yum to install it as it appears that it was not installed in the basic install that I ran. It appears to be working.

1 Like

I have the same issue even after installing php-json. The dashboard only shows the spinning arrows and I get an error on the query log page. My token is https://tricorder.pi-hole.net/49heo8dni4

Check the packages again, it's not being used.

   2020-02-22 18:28:52: (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
   2020-02-22 18:28:52: (mod_fastcgi.c.421) FastCGI-stderr: Stack trace:
   2020-02-22 18:28:52: (mod_fastcgi.c.421) FastCGI-stderr: 
   2020-02-22 18:28:52: (mod_fastcgi.c.421) FastCGI-stderr:   thrown in /var/www/html/admin/api.php on line 139

looks like i needed to reboot after installing the package.

Im still noticing that the long term data still gives the error that it cant connect to the database for pages like the query log and graphics.

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