Describe the bug
After upgrade to Debian 13 with php8.4, the health and stats page throw fatal php errors:
[Thu May 28 11:02:24.320821 2026] [proxy_fcgi:error] [pid 224094:tid 224094] [client 127.0.0.1:46240] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot access private property DB::$database in /var/www/piler/controller/health/worker.php:25\nStack trace:\n#0 /var/www/piler/system/front.php(36): ControllerHealthWorker->index()\n#1 /var/www/piler/system/front.php(14): Front->execute()\n#2 /var/www/piler/index.php(113): Front->dispatch()\n#3 {main}\n thrown in /var/www/piler/controller/health/worker.php on line 25'
To Reproduce
Steps to reproduce the behavior:
- Use php8.4 fpm
- log in as admin
- see error in logs
Expected behavior
health page shows up
Screenshots
n/a
Piler version:
$ piler -V
piler 1.4.8, Build Date: Thu Aug 28 11:24:30 BST 2025
ldd version: ldd (Debian GLIBC 2.36-9+deb12u10) 2.36
gcc version: gcc version 12.2.0 (Debian 12.2.0-14+deb12u1)
OS: Linux amativ02 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64 GNU/Linux
Configure command: ./configure --localstatedir=/mnt/mailpiler/ --with-database=mysql --sysconfdir=/etc
MySQL client library version: 3.4.9
Extractors: /usr/bin/pdftotext /usr/bin/catdoc /usr/bin/catppt /usr/bin/xls2csv /usr/bin/unrtf /usr/bin/tnef libzip
$ php --version
PHP 8.4.21 (cli) (built: May 14 2026 15:45:34) (NTS)
Copyright (c) The PHP Group
Built by Debian
Zend Engine v4.4.21, Copyright (c) Zend Technologies
with Zend OPcache v8.4.21, Copyright (c), by Zend Technologies
Additional context
Codex fixed this by changing $db->select_db($db->database); to $db->select_db(DB_DATABASE); in controller/health/worker.php line 25 and controller/stat/stat.php line 32.
The pages now load as expected.
Notes
If sensitive data is required to understand the situation, then don't copy it to the issue, rather send it to security@mailpiler.com
Describe the bug
After upgrade to Debian 13 with php8.4, the health and stats page throw fatal php errors:
[Thu May 28 11:02:24.320821 2026] [proxy_fcgi:error] [pid 224094:tid 224094] [client 127.0.0.1:46240] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot access private property DB::$database in /var/www/piler/controller/health/worker.php:25\nStack trace:\n#0 /var/www/piler/system/front.php(36): ControllerHealthWorker->index()\n#1 /var/www/piler/system/front.php(14): Front->execute()\n#2 /var/www/piler/index.php(113): Front->dispatch()\n#3 {main}\n thrown in /var/www/piler/controller/health/worker.php on line 25'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
health page shows up
Screenshots
n/a
Piler version:
Additional context
Codex fixed this by changing $db->select_db($db->database); to $db->select_db(DB_DATABASE); in controller/health/worker.php line 25 and controller/stat/stat.php line 32.
The pages now load as expected.
Notes
If sensitive data is required to understand the situation, then don't copy it to the issue, rather send it to security@mailpiler.com