After upgrading php7.4 to php8.1, Piler just loads Blank Page for Web Interface

Issue #1224 resolved
Brett created an issue

After upgrading from php7.4 to php8.1 only a blank page loads for the Piler web interface. I changed settings in config files from php7.4-fpm.sock to php8.1-fpm.sock or even php-fpm.sock. I followed Online PHP Upgrade Guides and the process works for other php projects that I use, but for Piler I am just getting a black page for the web interface. My OS is Ubuntu 20.04. I also tested a clean install on the latest daily build of Ubuntu 22.04, which will be released in April and currently only has php8.x in the default package repositories, and I have the same issue with a clean install of Piler with php8.1. I am not sure if there is something I am missing for Piler php configuration, or if this request some modification to Piler for php8.x.

PHP Upgrade Guide Followed:

https://www.vultr.com/docs/upgrade-php-7-4-to-php-8-0-on-ubuntu-20-04-with-nginx/

Comments (5)

  1. Janos SUTO repo owner

    I’m a big fan of using the latest stable packages and releases, however I have to consider what the mainstream distros actually support. Ubuntu 22.04 hasn’t been released yet, so php 8.x is not supported by piler at the moment.

    Anyway, the issue is likely a language change from 7.x to 8.x. The nginx or php error logs might give you a clue what code in the piler gui is obsoleted in php 8.x.

  2. Janos SUTO repo owner

    I checked the code in the meantime, and it seems that the each() calls must be replaced with foreach() to make the gui work with php 8. I’ve added it to my todo list. I’ll keep you posted.

  3. Brett reporter

    I updated the files with the ones in the latest master branch and it looks like all the php webpages are loading and functioning properly with php8.1. Thank you for the quick response and fix. I was just trying to prep for Ubuntu 22.04.

    FYI: Also be sure and change “php7.4-fpm.sock” to “php8.1-fpm.sock” in etc/nginx/sites-enabled/piler and reload nginx or reboot server.

    Command I used:

    sed -i "s|/var/run/php/php7.4-fpm.sock|/var/run/php/php8.1-fpm.sock|g" /etc/nginx/sites-enabled/piler

    Or you can always edit the file using an editor such as nano.

  4. Brett reporter

    Latest php modifications (replaced deprecated each function with foreach function) fixed compatibility issues with php8.x versions.

  5. Log in to comment