PHP 8.2+ error

OS info

  • Operating System : Mac OSX 22.6.0
  • Wappler Version : 6.6.1

Problem description

PHP 8.2.20 throws an error, when calling a API script:

code 0
file /var/www/vhosts/xxxxxxxxxxxx/httpdocs/dmxConnectLib/modules/api.php
line 100
message curl_escape(): Passing null to parameter #2 ($string) of type string is deprecated
trace #0 [internal function]: exception_error_handler()\n#1 /var/www/vhosts/xxxxxxxx/httpdocs/dmxConnectLib/modules/api.php(100): curl_escape()\n#2 /var/www/vhosts/xxxxxxxx/httpdocs/dmxConnectLib/lib/App.php(206): modules\api->send()\n#3 /var/www/vhosts/xxxxxxx/httpdocs/dmxConnectLib/lib/App.php(178): lib\App->execSteps()\n#4 /var/www/vhosts/xxxxxxx/httpdocs/dmxConnectLib/lib/App.php(146): lib\App->execSteps()\n#5 /var/www/vhosts/xxxxxx/httpdocs/dmxConnectLib/lib/App.php(135): lib\App->exec()\n#6 /var/www/vhosts/use.carelit.de/httpdocs/dmxConnectLib/lib/App.php(113): lib\App->exec()\n#7 /var/www/vhosts/xxxxxx/httpdocs/dmxConnect/api/suche/suche_api.php(7): lib\App->define()\n#8 {main}

PHP 8.030 works

Does any of the parameters you pass in the API action have a NULL value?

I will add an extra check in the code and will convert NULL values to an empty string. Will post the updated file here later.

Could you check following update.

api.zip (2.8 KB) unzip to dmxConnectLib/modules

Great! Works!

Thanks a lot :+1:

Fixed in Wappler 6.7.1