A few days after migrating to php 8.1 I get this fatal error when I try to open my app dictionary:
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/class/page/nmPageDataDic.class.php:806 Stack trace: #0 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/class/page/nmPageDataDic.class.php(806): in_array(‘abonados’, NULL) #1 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/class/page/nmPageDataDic.class.php(326): nmPageDataDic->TestIncEsqTab(Array) #2 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/class/page/nmPageDataDic.class.php(101): nmPageDataDic->EditDataDic() #3 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/class/page/nmPage.class.php(2465): nmPageDataDic->DisplayContent() #4 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/class/page/nmSite.class.php(96): nmPage->Display() #5 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/lib/php/base_ini.inc.php(1598): nmSite->Run() #6 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/lib/php/base_ini.inc.php(2): sg_load(‘68ABBE04C7C5024…’) #7 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/iface/data_dic.php(25): include_once(’/opt/NetMake/v9…’) #8 /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/iface/data_dic.php(2): sg_load(‘BD8D7EBFC7C5120…’) #9 {main} thrown in /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/class/page/nmPageDataDic.class.php on line 806
Could you please say me how to fix it?
Thanks advance.