Errori PHP se passo a Versione 7.4 su Aruba.it

Salve a tutti,
ho notato che sul mio hosting aruba avevo ancora php 5.6. Non appena sono passato a 7.4 ho riscontrato moltissimi errori ed alert nella generazione pdf… nell’invio delle mail, etc. etc.
Ho la versione 1.5.10_it2

Cosa sbaglio ?
Grazie
Dario

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: src/Otl.php

Line Number: 5785

Backtrace:

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Otl.php
Line: 5785
Function: _error_handler

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag/BlockTag.php
Line: 1092
Function: trimOTLdata

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag.php
Line: 246
Function: close

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 15352
Function: CloseTag

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mpdf_helper.php
Line: 108
Function: WriteHTML

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/pdf_helper.php
Line: 113
Function: pdf_create

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mailer_helper.php
Line: 63
Function: generate_invoice_pdf

File: /web/htdocs/www.deskservice.com/home/dga/application/modules/mailer/controllers/Mailer.php
Line: 162
Function: email_invoice

File: /web/htdocs/www.deskservice.com/home/dga/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: src/Otl.php

Line Number: 5785

Backtrace:

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Otl.php
Line: 5785
Function: _error_handler

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag/BlockTag.php
Line: 1092
Function: trimOTLdata

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag.php
Line: 246
Function: close

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 15352
Function: CloseTag

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mpdf_helper.php
Line: 108
Function: WriteHTML

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/pdf_helper.php
Line: 113
Function: pdf_create

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mailer_helper.php
Line: 63
Function: generate_invoice_pdf

File: /web/htdocs/www.deskservice.com/home/dga/application/modules/mailer/controllers/Mailer.php
Line: 162
Function: email_invoice

File: /web/htdocs/www.deskservice.com/home/dga/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: src/Mpdf.php

Line Number: 12826

Backtrace:

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 12826
Function: _error_handler

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 12884
Function: _setLineYpos

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 6388
Function: _setInlineBlockHeights

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 18154
Function: finishFlowingBlock

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag/BlockTag.php
Line: 1123
Function: printbuffer

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag.php
Line: 246
Function: close

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 15352
Function: CloseTag

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mpdf_helper.php
Line: 108
Function: WriteHTML

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/pdf_helper.php
Line: 113
Function: pdf_create

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mailer_helper.php
Line: 63
Function: generate_invoice_pdf

File: /web/htdocs/www.deskservice.com/home/dga/application/modules/mailer/controllers/Mailer.php
Line: 162
Function: email_invoice

File: /web/htdocs/www.deskservice.com/home/dga/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type int

Filename: src/Mpdf.php

Line Number: 23208

Backtrace:

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 23208
Function: _error_handler

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag/Table.php
Line: 648
Function: _fixTableBorders

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag.php
Line: 246
Function: close

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 15352
Function: CloseTag

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mpdf_helper.php
Line: 108
Function: WriteHTML

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/pdf_helper.php
Line: 113
Function: pdf_create

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mailer_helper.php
Line: 63
Function: generate_invoice_pdf

File: /web/htdocs/www.deskservice.com/home/dga/application/modules/mailer/controllers/Mailer.php
Line: 162
Function: email_invoice

File: /web/htdocs/www.deskservice.com/home/dga/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: src/Mpdf.php

Line Number: 23208

Backtrace:

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 23208
Function: _error_handler

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag/Table.php
Line: 648
Function: _fixTableBorders

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Tag.php
Line: 246
Function: close

File: /web/htdocs/www.deskservice.com/home/dga/vendor/mpdf/mpdf/src/Mpdf.php
Line: 15352
Function: CloseTag

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mpdf_helper.php
Line: 108
Function: WriteHTML

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/pdf_helper.php
Line: 113
Function: pdf_create

File: /web/htdocs/www.deskservice.com/home/dga/application/helpers/mailer_helper.php
Line: 63
Function: generate_invoice_pdf

File: /web/htdocs/www.deskservice.com/home/dga/application/modules/mailer/controllers/Mailer.php
Line: 162
Function: email_invoice

File: /web/htdocs/www.deskservice.com/home/dga/index.php
Line: 325
Function: require_once

Quasi tutti gli errori sono in mpdf…

Provato a scaricare da github mpdf aggiornato ma evidentemente non è compatibile perchè mi escono altri errori

Buonasera @cdj l’errore che stai riscontrando è da ricondurre ad un’incompatibilità della tua versione del software con la versione php 7.4.

Se ti è possibile, ti invito innanzitutto ad aggiornare il tuo applicativo usando le versioni ufficiali che puoi trovare all’indirizzo www.invoiceplane.com. Ti rendo attento sul fatto che la prima versione a supportare php 7.4 è la versione 1.5.11.

Inoltre,nelle prossime settimane verrà rilasciata la versione 1.6 che è la prima versione a supportare php 8 e contiene diverse migliorie e correzioni di errori. Facci sapere se l’aggiornamento alla versione ufficiale 1.5.11 ti è d’aiuto.

1 Like

Grazie mille con la 1.5.11 ho risolto !

1 Like