TCPDF icon indicating copy to clipboard operation
TCPDF copied to clipboard

Trying to access array offset on null

Open andruha opened this issue 1 year ago • 2 comments

I get an error in php 8.4.1 In PHP 8.3 everything is fine

yii\base\ErrorException: Trying to access array offset on null #17 /var/composer/vendor/tecnickcom/tcpdf/include/barcodes/qrcode.php(761): yii\base\ErrorHandler::handleError #16 /var/composer/vendor/tecnickcom/tcpdf/include/barcodes/qrcode.php(761): QRcode::setFrameAt #15 /var/composer/vendor/tecnickcom/tcpdf/include/barcodes/qrcode.php(724): QRcode::encodeMask #14 /var/composer/vendor/tecnickcom/tcpdf/include/barcodes/qrcode.php(687): QRcode::encodeString #13 /var/composer/vendor/tecnickcom/tcpdf/include/barcodes/qrcode.php(630): QRcode::__construct #12 /var/composer/vendor/tecnickcom/tcpdf/tcpdf_barcodes_2d.php(299): TCPDF2DBarcode::setBarcode #11 /var/composer/vendor/tecnickcom/tcpdf/tcpdf_barcodes_2d.php(69): TCPDF2DBarcode::__construct #10 /var/composer/vendor/tecnickcom/tcpdf/tcpdf.php(15666): TCPDF::write2DBarcode

andruha avatar Dec 06 '24 09:12 andruha

Error when opcache.jit=1235 No error when opcache.jit=1255

andruha avatar Dec 06 '24 15:12 andruha

Quite a weird one For now the policy of @nicolaasuni is to not change qrcodes to much and update the new library

williamdes avatar Dec 06 '24 18:12 williamdes