Also the Web UI is bugged (see screenshot attached): it does not show all data such as temperature, it does not show the page's footer in the homepage (it does in other pages), and it does not show any of the blocked data.
2023-12-17 00:00:20: server.c.1787) logfiles cycled UID = 0 PID = 28355
2023-12-17 16:03:50: server.c.1976) server stopped by UID = 0 PID = 1
2023-12-17 16:04:59: server.c.1513) server started (lighttpd/1.4.59)
2023-12-17 16:06:58: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: Use of undefined constant SQLITE3_OPEN_READONLY - assumed 'SQLITE3_OPEN_READONLY' (this will throw an Error in a future version of PHP) in /var/www/html/admin/scripts/pi-hole/php/database.php on line 57
2023-12-17 16:06:58: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught Error: Class 'SQLite3' not found in /var/www/html/admin/scripts/pi-hole/php/database.php:42
2023-12-17 16:06:58: mod_fastcgi.c.487) FastCGI-stderr:Stack trace:
2023-12-17 16:06:58: mod_fastcgi.c.487) FastCGI-stderr:#0 /var/www/html/admin/scripts/pi-hole/php/database.php(60): SQLite3_connect_try()
2023-12-17 16:06:58: mod_fastcgi.c.487) FastCGI-stderr:#1 /var/www/html/admin/scripts/pi-hole/php/gravity.php(14): SQLite3_connect()
2023-12-17 16:06:58: mod_fastcgi.c.487) FastCGI-stderr:#2 /var/www/html/admin/index.php(66): gravity_last_update()
2023-12-17 16:06:58: mod_fastcgi.c.487) FastCGI-stderr:#3 {main}
2023-12-17 16:06:58: mod_fastcgi.c.487) FastCGI-stderr: thrown in /var/www/html/admin/scripts/pi-hole/php/database.php on line 42
Details about my system:
Raspberry Pi Zero W, running Raspberry Pi OS.
What I have changed since installing Pi-hole:
Nothing, however the issue persists even after making a fresh install of PiHole.
Tried following the instructions in the PiHole documentation linked in the error, but to no avail. Nothing changed.
Looks like your PHP installation is missing a module (not installed or disabled):
2023-12-19 14:40:54: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: Use of undefined constant SQLITE3_OPEN_READONLY - assumed 'SQLITE3_OPEN_READONLY' (this will throw an Error in a future version of PHP) in /var/www/html/admin/scripts/pi-hole/php/database.php on line 57
2023-12-19 14:40:54: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught Error: Class 'SQLite3' not found in /var/www/html/admin/scripts/pi-hole/php/database.php:42
sudo apt install php-sqlite3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
php-sqlite3 is already the newest version (2:7.4+76).
0 upgraded, 0 newly installed, 0 to remove and 104 not upgraded.
I did everything you mentioned and I think the second thing is fixed, the first thing however seems to be problematic still.
When I run pihole updatechecker and pihole -v I get the following:
pi@raspberrypi:~ $ pihole updatechecker
/etc/pihole/versions: line 1: $'\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377CORE_VERSION=v5.17.2': command not found
/etc/pihole/versions: line 1: $'\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377CORE_VERSION=v5.17.2': command not found
pi@raspberrypi:~ $ pihole -v
/etc/pihole/versions: line 1: $'\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377CORE_VERSION=v5.17.2': command not found
/opt/pihole/version.sh: 1: /etc/pihole/versions: ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????CORE_VERSION=v5.17.2: File name too long
Pi-hole version is v5.17.2 (Latest: v5.17.2)
web version is v5.21 (Latest: v5.21)
FTL version is v5.23 (Latest: v5.23)
Here's a debug log generated after doing what you last recommended:
Thank you for all your help.
I did what you suggested and it seems to have worked however my main issue still remains.
I understand if you think it's my SD in which case, I will change it and do a fresh install but I thought I'd leave one last debug log just in case, so here it is:
Your log is showing PHP issues again, related to sqlite3 module:
2024-01-02 09:35:00: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: Use of undefined constant SQLITE3_OPEN_READONLY
Did you install or update something else? Maybe there is another installation process removing PHP modules (or you really have an issue with your SD card).
What is the output of apt list php-sqlite3 ?
This is what I see here:
root@pihole:/# apt list php-sqlite3
Listing... Done
php-sqlite3/oldstable,now 2:7.4+76 all [installed]
The version information may be different, depending on the OS and PHP version, but it should show [installed].