Error when generating code in Postgresql

From 9.7 to 9.9 version every time I generate the code, the log show the following message:
Invalid argument supplied for foreach() | Script: /var/www/html/scriptcase/devel/lib/php/database.inc.php linha: 2361.
I work work with the operative system Ubuntu 20.04 and I have set the rights to 777 in all the files in the folder “scriptcase”.
Everyone can to help me to resolve this problem? Thanks.