Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With the new update to 6.7.2, the usage of Mutlicell is showing Undefined Array key -1 error with php 8.1 #701

Open
Muzammil1234 opened this issue Mar 22, 2024 · 0 comments

Comments

@Muzammil1234
Copy link

Hi! We are using the php version 8.1 and before the update we were using the tcpdf verison 6.6.5 and it was working like a charm. Now after the update to 6.7.2 its giving exception. I am pasting the stack trace
[2024-03-20 11:54:01] local.ERROR: Undefined array key -1 {"exception":"[object] (ErrorException(code: 0): Undefined array key -1 at /var/www/html/vendor/tecnickcom/tcpdf/tcpdf.php:18829)
[stacktrace]
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/html/vendor/tecnickcom/tcpdf/tcpdf.php(18829): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap{closure}()
#2 /var/www/html/vendor/tecnickcom/tcpdf/tcpdf.php(5934): TCPDF->writeHTML()
#3 /var/www/html/app/Exports/PdfGeneration.php(121): TCPDF->MultiCell()
#4 /var/www/html/app/Exports/MonthlyBalancePdfExport.php(64): App\Exports\PdfGeneration->addBlankCell()
I am using MultiCell to create an empty row. But after the upgrade its not working.
Can you help with this? thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant