This topic is locked

PHP 8 fatal error in classes\viewpage.php on line 367

4/19/2021 8:16:54 AM
PHPRunner General questions
A
axier author

Hi,

I'm getting this error with php 8.0.2 and phprunner 10.5 v 37031

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given

I solved by changing the line 367 of the classes\viewpage.php from this:

if( !count($dpParams['ids']) )

to this:

if( empty($dpParams['ids']) )

Is this a bug that have to be solved in future realeases? Anyone else is having this issue?

Thanks

admin 4/19/2021

PHP 8 is not fully supported yet. Will definitely be supported in version 10.6.