Error Trying to access array offset on value of type bool and Error Undefined offset: 4, on web server

Good morning, I made several pdf reports in blank-type applications, using the tc-pdf library, in turn I made a “filter” that directs the pdf report depending on the “codigoputs” value (see code 1), this in turn is linked in a grid through a field link, when I click on that link on a local server, it runs without problems, but when I try on a web server this error appears in some rows of the grid (see image1) (most of them run normally on the web server)
my scriptcase version is 9.9.007

/Code1/
$IDPERSONA = [IDPERSONA];
$ps = [ps];
$idhistoria = [idhistoria];
$codigoputs = [codigoputs];
if($codigoputs==“890111”||$codigoputs==“890311”||$codigoputs==“890211”){
sc_redir (HC_FISIOTERAPIA_DESCARGA, IDPERSONA= [IDPERSONA]; ps =[ps]; idhistoria =[idhistoria]);
}else if($codigoputs==“890201”||$codigoputs==“890199”){
sc_redir (hc_ambulatoria_descarga, IDPERSONA= [IDPERSONA]; ps =[ps]; idhistoria =[idhistoria]);
}

image1

image

Hi, do you tried make a full installation (with all libraries) with new SC version?.