Fatal error message in DB Synchro/Add Fields

taubes

Member
Hi,
Using DaDaBIK version 11.7-Elba platinum. I get this reproducible fatal error in "DB Synchro" when I click add fields and there are no new fields to add in the database. In previous versions this was just ignored. Adding new fields in "DB Synchro" otherwise works fine. This has no consequence as nothing is added except that a fatal error is shown and one has to go back to the "DB Synchro" page.
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in [...]/db_synchro.php:0 Stack trace: #0 {main} thrown in [...]/db_synchro.php on line 0
Best
Stefan
 

eugenio

Administrator
Staff member
Hello Stefan,
thanks for the report; I am pretty sure this has to do with PHP 8.1; PHP 7 was more "forgiving" and what is now a fatal error was probably a warning in PHP 7 and your server was probably set not to show warnings.
As you said, it has no consequences, but I will fix it.

Best,
 
Top