Home › Forums › Error reporting › Button “Edit default value” › Reply To: Button “Edit default value”
Fixed: https://github.com/ABCD-DEVCOM/ABCD2/pull/472
Fix erros: PHP Deprecated: trim(): Passing null to parameter
The error “PHP Deprecated: trim(): Passing null to parameter” appears in newer versions of PHP.
To correct it, where it says:
trim($tl)
has changed to:
trim((string)$tl)
Updates compatibility for PHP versions higher than 8xx
The error below is caused in PHP 8xx versions
Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /ABCD2/www/htdocs/central/dataentry/fmt.php:1120 Stack trace: #0 {main} thrown in /ABCD2/www/htdocs/central/dataentry/fmt.php on line 1120
To correct it was changed where it says:
$tag=trim(substr($linea,0,4))*1;
To:
$tag=(int)trim(substr($linea,0,4))*(int)1;