This topic is locked
[SOLVED]

spreadsheet mode list page error - phprunner 10.8 - php 8.1.6

8/3/2022 9:49:13 AM
PHPRunner General questions
ffrinai author

Hi,
i try to test new server width xampp and php 8.1.6.
I have a project that works fine on a server with php 7.3.5 but on the server with php 8.1.6 the List page with spreadsheet mode does not open and reports this error:

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in C:\sitiweb\webpriv\prophpr\classes\controls\FileField.php:57 Stack trace: #0 C:\sitiweb\webpriv\prophpr\classes\controls\Control.php(751): FileField->buildControl('[{"name":"allpr...', 7, 0, Array, Array, Array) #1 C:\sitiweb\webpriv\prophpr\classes\listpage.php(2092): EditControl->getControlMarkup(Array, Array) #2 C:\sitiweb\webpriv\prophpr\classes\listpage.php(2068): ListPage->getInlineEditControl('allphpr', 5, Array) #3 C:\sitiweb\webpriv\prophpr\classes\listpage.php(1726): ListPage->proccessRecordValue(Array, '&key1=10.1', Array) #4 C:\sitiweb\webpriv\prophpr\classes\listpage.php(2310): ListPage->fillGridData() #5 C:\sitiweb\webpriv\prophpr\phprvers_list.php(154): ListPage->prepareForBuildPage() #6 {main} thrown in C:\sitiweb\webpriv\prophpr\classes\controls\FileField.php on line 57

The problematic field name is allphpr (mediumtext) configured as attachment field (view as file, edit as File/Image).
If I uncheck the Spreadsheet mode option, everything works fine.
Thanks
Fabio

phprunner Enterprise 10.8 build 39612 x64

fhumanes 12/22/2022

Hello,

The author of the message that XLINESOFT would resolve in a next version told me.

All the best,
fernando

Sergey Kornilov admin 12/22/2022

As a first step make sure that you use the latest build of PHPRunner 10.8.

If this doesn't help, post your project to Demo Account and contact support directly so we can fix it.