Upgraded to 2.9.0 now getting a PHP crash
-
Hi,
I've just upgraded from 2.8.1 to 2.9.0. It didn't go well but I cleared the errors running
pkg-statuc upgrade. I then tried edting a firewall rule and the UI has crashed with a PHP error:Crash report begins. Anonymous machine information: amd64 16.0-CURRENT FreeBSD 16.0-CURRENT #12 RELENG_2_9_0-n256132-d8e3138ecf52: Mon Aug 17 18:50:13 UTC 2026 root@pfsense-build-release-amd64-2.eng.atx.netgate.com:/var/jenkins/workspace/pfSense-CE-snapshots-2_9_0-main/obj/amd64/XcuObCIF/var/jenkins/workspace/pfSense-CE- Crash report details: PHP Errors: [03-Nov-2026 17:44:49 Europe/London] PHP Fatal error: Uncaught Error: Call to undefined function logger() in /usr/local/pkg/haproxy/haproxy.inc:2571 Stack trace: #0 /usr/local/pkg/haproxy/haproxy.inc(1349): haproxy_check_run() #1 Standard input code(5): haproxy_configure() #2 {main} thrown in /usr/local/pkg/haproxy/haproxy.inc on line 2571 [03-Nov-2026 17:44:53 Europe/London] PHP Fatal error: Uncaught RuntimeException: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.4.0". You are running 8.3.36. in /usr/local/pfSense/include/vendor/composer/platform_check.php:22 Stack trace: #0 /usr/local/pfSense/include/vendor/composer/autoload_real.php(25): require() #1 /usr/local/pfSense/include/vendor/autoload.php(22): ComposerAutoloaderInitc79a7dac55f2962b16f0419d5f63472d::getLoader() #2 /usr/local/www/widgets/include/disks.inc(22): require_once('/usr/local/pfSe...') #3 /usr/local/www/index.php(81): include_once('/usr/local/www/...') #4 {main} thrown in /usr/local/pfSense/include/vendor/composer/platform_check.php on line 22 [03-Nov-2026 17:45:09 Europe/London] PHP Fatal error: Uncaught RuntimeException: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.4.0". You are running 8.3.36. in /usr/local/pfSense/include/vendor/composer/platform_check.php:22 Stack trace: #0 /usr/local/pfSense/include/vendor/composer/autoload_real.php(25): require() #1 /usr/local/pfSense/include/vendor/autoload.php(22): ComposerAutoloaderInitc79a7dac55f2962b16f0419d5f63472d::getLoader() #2 /usr/local/www/widgets/include/disks.inc(22): require_once('/usr/local/pfSe...') #3 /usr/local/www/index.php(81): include_once('/usr/local/www/...') #4 {main} thrown in /usr/local/pfSense/include/vendor/composer/platform_check.php on line 22 [03-Nov-2026 17:45:20 Europe/London] PHP Fatal error: Uncaught RuntimeException: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.4.0". You are running 8.3.36. in /usr/local/pfSense/include/vendor/composer/platform_check.php:22 Stack trace: #0 /usr/local/pfSense/include/vendor/composer/autoload_real.php(25): require() #1 /usr/local/pfSense/include/vendor/autoload.php(22): ComposerAutoloaderInitc79a7dac55f2962b16f0419d5f63472d::getLoader() #2 /usr/local/www/widgets/include/disks.inc(22): require_once('/usr/local/pfSe...') #3 /usr/local/www/index.php(81): include_once('/usr/local/www/...') #4 {main} thrown in /usr/local/pfSense/include/vendor/composer/platform_check.php on line 22 [03-Nov-2026 17:45:27 Europe/London] PHP Fatal error: Uncaught RuntimeException: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.4.0". You are running 8.3.36. in /usr/local/pfSense/include/vendor/composer/platform_check.php:22 Stack trace: #0 /usr/local/pfSense/include/vendor/composer/autoload_real.php(25): require() #1 /usr/local/pfSense/include/vendor/autoload.php(22): ComposerAutoloaderInitc79a7dac55f2962b16f0419d5f63472d::getLoader() #2 /usr/local/www/widgets/include/disks.inc(22): require_once('/usr/local/pfSe...') #3 /usr/local/www/index.php(81): include_once('/usr/local/www/...') #4 {main} thrown in /usr/local/pfSense/include/vendor/composer/platform_check.php on line 22 No FreeBSD crash data found.It is almost like PHP hasn't upgraded. Are you able to help me fix my installation and get my UI back, please?
[edit]
I tried rolling back to the backup I took just before the upgrade and it didn't help.From the Critical PHP Security Update, I've just tried running:
[2.8.1-RELEASE][root@pfSense.howitts.co.uk]/root: pfSense-upgrade -c && \ ? pkg upgrade -y && \ ? /etc/rc.php-fpm_restart && \ ? /etc/rc.restart_webgui >>> Updating repositories metadata...done. 2.9.0 version of pfSense is availableSo it is almost like I have not updated and I am completely confused.
How can I proceed at the command line?
-
When I try a command line upgrade or option 13, I see:
New packages to be INSTALLED: harfbuzz: 15.0.0 [FreeBSD-ports] libccid: 1.8.4 [FreeBSD-ports] pfSense-Status_Monitoring-php85: 1.9 [pfSense] pfSense-system: 2.9.0 [pfSense] php85: 8.5.12_2 [FreeBSD-ports] php85-bcmath: 8.5.12_2 [FreeBSD-ports] php85-bz2: 8.5.12_2 [FreeBSD-ports] php85-ctype: 8.5.12_2 [FreeBSD-ports] php85-curl: 8.5.12_2 [FreeBSD-ports] php85-dom: 8.5.12_2 [FreeBSD-ports] php85-filter: 8.5.12_2 [FreeBSD-ports] php85-ftp: 8.5.12_2 [FreeBSD-ports] php85-gettext: 8.5.12_2 [FreeBSD-ports] php85-gmp: 8.5.12_2 [FreeBSD-ports] php85-intl: 8.5.12_2 [FreeBSD-ports] php85-ldap: 8.5.12_2 [FreeBSD-ports] php85-mbstring: 8.5.12_2 [FreeBSD-ports] php85-openssl_x509_crl: 1.3_3 [pfSense] php85-pcntl: 8.5.12_2 [FreeBSD-ports] php85-pdo: 8.5.12_2 [FreeBSD-ports] php85-pdo_sqlite: 8.5.12_2 [FreeBSD-ports] php85-pear: 1.10.18 [FreeBSD-ports] php85-pear-Auth_RADIUS: 1.1.0_5 [pfSense] php85-pear-Cache_Lite: 1.8.3,1 [FreeBSD-ports] php85-pear-Crypt_CHAP: 1.5.0_2 [pfSense] php85-pear-HTTP_Request2: 2.7.0,1 [FreeBSD-ports] php85-pear-Mail: 2.0.0,1 [FreeBSD-ports] php85-pear-Net_IPv6: 1.3.0.b4_2 [FreeBSD-ports] php85-pear-Net_URL2: 2.2.3 [FreeBSD-ports] php85-pear-XML_RPC2: 1.1.5 [FreeBSD-ports] php85-pecl-mcrypt: 1.0.9 [pfSense] php85-pecl-radius: 1.4.0b1_6 [pfSense] php85-pecl-rrd: 2.0.4 [FreeBSD-ports] php85-pecl-ssh2: 1.3.1 [FreeBSD-ports] php85-pfSense-module: 2.9.0 [pfSense] php85-phpseclib: 2.0.17 [pfSense] php85-posix: 8.5.12_2 [FreeBSD-ports] php85-readline: 8.5.12_2 [FreeBSD-ports] php85-session: 8.5.12_2 [FreeBSD-ports] php85-shmop: 8.5.12_2 [FreeBSD-ports] php85-simplexml: 8.5.12_2 [FreeBSD-ports] php85-sockets: 8.5.12_2 [FreeBSD-ports] php85-sqlite3: 8.5.12_2 [FreeBSD-ports] php85-sysvmsg: 8.5.12_2 [FreeBSD-ports] php85-sysvsem: 8.5.12_2 [FreeBSD-ports] php85-sysvshm: 8.5.12_2 [FreeBSD-ports] php85-tokenizer: 8.5.12_2 [FreeBSD-ports] php85-xml: 8.5.12_2 [FreeBSD-ports] php85-xmlreader: 8.5.12_2 [FreeBSD-ports] php85-xmlwriter: 8.5.12_2 [FreeBSD-ports] php85-zlib: 8.5.12_2 [FreeBSD-ports] Installed packages to be UPGRADED: boost-libs: 1.86.0 -> 1.89.0_2 [pfSense] icu: 74.2_1,1 -> 76.1,1 [pfSense] libinotify: 20240724 -> 20240724_3 [FreeBSD-ports] libxml2: 2.11.9 -> 2.15.3 [pfSense] libxslt: 1.1.37_1 -> 1.1.45 [pfSense] ncurses: 6.5 -> 6.6 [FreeBSD-ports] pfSense: 2.8.1 -> 2.9.0 [pfSense] php83: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-bcmath: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-bz2: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-ctype: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-curl: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-dom: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-filter: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-ftp: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-gettext: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-gmp: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-intl: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-ldap: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-mbstring: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-opcache: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-pcntl: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-pdo: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-pdo_sqlite: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-pear: 1.10.13 -> 1.10.18 [FreeBSD-ports] php83-pear-HTTP_Request2: 2.6.0,1 -> 2.7.0,1 [FreeBSD-ports] php83-pear-Net_SMTP: 1.12.1 -> 1.12.2 [FreeBSD-ports] php83-pear-Net_URL2: 2.2.1 -> 2.2.3 [FreeBSD-ports] php83-pecl-rrd: 2.0.3_1 -> 2.0.4 [FreeBSD-ports] php83-posix: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-readline: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-session: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-shmop: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-simplexml: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-sockets: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-sqlite3: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-sysvmsg: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-sysvsem: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-sysvshm: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-tokenizer: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-xml: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-xmlreader: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-xmlwriter: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] php83-zlib: 8.3.36 -> 8.3.36_2 [FreeBSD-ports] rrdtool: 1.9.0 -> 1.9.0_1 [pfSense] Installed packages to be REINSTALLED: libargon2-20190702_1 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:amd64' -> 'FreeBSD:16:amd64') libsysinfo-0.0.3_3 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:amd64' -> 'FreeBSD:16:amd64') pfSense-pkg-acme-1.3.2 [pfSense] (ABI changed: 'FreeBSD:15:amd64' -> 'FreeBSD:16:amd64') php83-pear-Cache_Lite-1.8.3,1 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:*' -> 'FreeBSD:16:*') php83-pear-Mail-2.0.0,1 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:amd64' -> 'FreeBSD:16:amd64') php83-pear-Net_IPv6-1.3.0.b4_2 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:*' -> 'FreeBSD:16:*') php83-pear-Net_Socket-1.2.2 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:*' -> 'FreeBSD:16:*') php83-pear-XML_RPC2-1.1.5 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:*' -> 'FreeBSD:16:*') php83-pecl-mcrypt-1.0.7 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:amd64' -> 'FreeBSD:16:amd64') php83-pecl-radius-1.4.0b1_3 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:amd64' -> 'FreeBSD:16:amd64') php83-pecl-ssh2-1.3.1 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:amd64' -> 'FreeBSD:16:amd64')So I can see it installing php85, but why is it also upgrading php83 from 8.3.36 -> 8.3.36_2? Shouldn't it be removing it?
-
Could be a package currently installed that uses/needs/depends on php 8.3.x
As soon as that package gets upgraded also, and it's php dependency changes, and php 8.3.x isn't needed anymore, it will be removed.Btw : it's totally normal to have several PHP versions installed on the same system.
That said, on my pfSense Plus I have only 'php85' right now.pkg info | grep 'php' -
I've just tried a manual upgrade. At the end of the downloads I see:
<snip> [106/107] Fetching php83-pecl-rrd-2.0.4: .. done [107/107] Fetching php85-pear-Net_IPv6-1.3.0.b4_2: .. done Checking integrity...Bus error (core dumped)zpool status -vgives:[2.8.1-RELEASE][root@pfSense.howitts.co.uk]/root: zpool status -v pool: pfSense state: ONLINE status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A config: NAME STATE READ WRITE CKSUM pfSense ONLINE 0 0 0 ada0p4 ONLINE 0 0 68 errors: Permanent errors have been detected in the following files: /var/db/pkg/local.sqliteI wonder if that is the cause. Is there any way or resetting the file?
-
Checking integrity...Bus error (core dumped)
I wonder if that is the cause.
Refresh the GUI and you'll see that pfSense shows you an 'error' event.
This event can be shown, as a core dump file is available. One of them shows the 'processor status'. This file tells you the cause of the 'bus error'.
Bus error is is an error between the processor and the memory (RAM). The 'bus' is the address and/or data bus. Not related to the disk system at all.
But :/var/db/pkg/local.sqlitethat's the database file used by the pkg system to keep a record of the packages that are installed.
When it was installing packages, this file was opened, and pkg crashed and took the system with it.
The file "/var/db/pkg/local.sqlite" is now in a 'not so clean state'. Probably not a big issue.The pfSense documentation can tell you how to clean ('repair' the files system).
-
Btw : it's totally normal to have several PHP versions installed on the same system.
On a web server, sure.
@NickJH I’d wonder if your disk is going? See the blue ZFS note at https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-check.html
SMART is in the GUI so if you can’t use that perhaps you can find command line commands.
https://docs.netgate.com/pfsense/en/latest/troubleshooting/disk-lifetime.html#ssdNote if you upgrade to 2.9 now (after mid Oct) it will pull in the updated PHP. There’s no need to also run the command to update.
-
On a web server, sure.
Like pfSense ^^
Most of use havec pfSense with two servers running on it. Mine is even using 3 webserver, all with PHP support.
The GUI needs a web server with PHP support, and uses 'some' PHP version like 8.5.x right now.
Other packages can also create web server instances, take for example pfBlockerng, it uses another web server, not nginx, but "lighttpd", and also uses PHP, and right now this "lighttpd" uses the same PHP85.x version. IRC, this wasn't always the case in the past. -
Thanks for the replies. I gave up and reinstalled with a struggle as it didn't want to know about one USB stick.
I also failed to do an installation with a config restore. The instructions are different in the install medium README.txt and the documentation. I put the config.xml in the same folder as the README.txt and it wasn't picked up at the end of the installation.
I eventually managed to get back into the system and managed a restore but it was again difficult to get into the system after the restore as I needed to set up some extra bits for adamONE before I could get any progress.
Anyway, I think it is looking OK now after having to go into HAProxy to change a config and change it back to force it to write the final conf file before it would start. ......... and I only have PHP85 installed.
I also wonder if I have a disk problem. This is a Chinese 4 port mini-PC and a couple of years ago the disk cross-linked some files which made a real mess of the system then.
-
@NickJH the Installer should find the config file on disk.
https://docs.netgate.com/pfsense/en/latest/install/install-walkthrough.html#configuration-restoreIf you used the old 2.7 installer it could be confusing as different directories were used for different reasons, as I vaguely recall?
@gertjan AFAIK it’s not possible to have multiple PHP versions installed on pfSense. That was one of the issues with the old package system where people would point to a newer version, install a package, accidentally upgrade PHP and break everything.
-
I wonder if, in my rush, I overlooked the restore step as I didn't recognise the name of the device. Perhaps more haste, less speed.
Also adamONE introduces complexities.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy