This topic is locked
[SOLVED]

Filters on list page cause crash

1/12/2023 3:25:10 PM
PHPRunner General questions
V
valdaure author

Hi fellow PHPRunner fans.

Migrating my platform to a new server has presented a series of problems that I'm gradually resolving. But one in particular has me stumped:

The application works fine until I add a filter to a list page. Filters make it crash with the following message--

Fatal error: Declaration of FilterValuesList::getFilterBlockStructure($filterControl, $visibilityClass, $value, $parentFiltersData = []) must be compatible with FilterControl::getFilterBlockStructure($filterControl, $visibilityClass = '', $value = '', $parentFiltersData = []) in /var/www/vhosts/[path]/classes/controls/FilterValuesList.php on line 372

As soon as I remove the filter, the crashes stop happening.

Could it be an issue with the new server's more recent version of PHP? I've moved from 7.4.27 to 8.0.27

Thanks for any help anyone may be able to provide.

V
valdaure author 1/12/2023

I should have said that I'm using PHP Runner Enterprise 10.5 (Build 36451).

V
valdaure author 1/12/2023

The problem was with the version of PHP. In fact, quite a few other functions also result in app crash using PHP 8.0.27 with PHPR Enterprise 10.5.
Downgrading to PHP 7.4.33 resolved all of the issues.