Please follow the below template, it will help us to help you!
Expected Behaviour:
Running on a Raspberry Pi 3B+ Dashboard used to indicate blocked/allowed... queries.
Rebooted system; reconfigured Pi-hole; still no changes.
Noticed that hostname changed from "pi.hole" in the previous v4.3 version to "raspberrypi" after the update.
~ $ sqlite3
SQLite version 3.16.2 2017-01-06 16:32:41
There is definitely something to look into here:
[Sat May 16 11:06:34.015369 2020] [:error] [pid 1541] [client 10.0.0.x] PHP Notice: Use of undefined constant SQLITE3_OPEN_READONLY - assumed 'SQLITE3_OPEN_READONLY' in /var/www/html/admin/scripts/pi-hole/php/database.php on line 61, referer: http://10.0.0.y/admin/index.php
[Sat May 16 11:06:34.015765 2020] [:error] [pid 1541] [client 10.0.0.x] PHP Fatal error: Uncaught Error: Class 'SQLite3' not found in /var/www/html/admin/scripts/pi-hole/php/database.php:42\nStack trace:\n#0 /var/www/html/admin/scripts/pi-hole/php/database.php(65): SQLite3_connect_try('/etc/pihole/gra...', 'SQLITE3_OPEN_RE...', true)\n#1 /var/www/html/admin/scripts/pi-hole/php/gravity.php(13): SQLite3_connect('/etc/pihole/gra...')\n#2 /var/www/html/admin/index.php(68): gravity_last_update()\n#3 {main}\n thrown in /var/www/html/admin/scripts/pi-hole/php/database.php on line 42, referer: http://10.0.0.y/admin/index.php
Just installed php-sqlite3 right now. And... it works! Thank you so much.
That also solved 500 - internal server errors for the Groups page and Network page.
I had the same issue when running Pi-hole v5.0 behind Apache.
In my case the problem was that the Apache module php7.2 was enabled but php7.3 was actually installed. That solved it: