Wappler Version : 4.5.0
Operating System : OSX
Server Model: PHP
Database Type: MySQL
Hosting Type: Local
All my SA DB queries have started erroring.
dmxConnectLib\/lib\/db\/Connection.php","line":152,"message":"json_decode(): Passing null to parameter #1 ($json) of type string is deprecated","trace":"#0 [internal function]: exception_error_handler(8192, 'json_decode(): ...'
Line 152 reads as $row[$name] = json_decode($value);
changed to $row[$name] = json_encode($value); to resolve.
strlen function expects the first parameter to be of type string . By definition, it does not accept null values (i.e. not declared as ?string nor string|nullunion type). For historical reasons, PHP allowed passing null , for these parameters. This behavior is inconsistent from user-land functions/methods because they would have thrown a \TypeError exception if null is passed to a parameter type not declared as nullable.
Thanks @NewMedia@Teodor
I reverted to PH 8.0 and the Connection.php back to json_decode($value);
As the issue occurs even when I call a SA that does not have/need any $_GET parameters