-
Notifications
You must be signed in to change notification settings - Fork 272
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
PHP 8.2 not working #68
Comments
Got the following email communication from Epic2022: The deprecated functions mentioned in the warnings are related to the TCPDF library, which is used for generating PDF files. I will be taking a look at this and when I have a solution will be posting. |
I am also stuck waiting on this issue |
for ex. |
same problem.. anyone solved this issue ? |
https://github.com/sinanbekar/pdf-merger |
In the end what I have done is get the latest FPDI and FPDF libraries and just re-work the original PHPMerger library to use them. Literally two lines need modifying that are specific to TCPDF (you remove the two lines specifically calling the TCPDF header and footer initialisation). It works with PHPv8.3.3 and if you buy the official FPDI-Parser will handle pretty much everything. Even without the additional commercial parser it is as robust as the original. This is pretty much what @johnloydlao has mentioned in the link above. When I drilled into what it was doing the code is really simple. I am using: There looks to be a new version of TCPDF under development which will handle some of the major changes brought about by PHPv8+. Information can be found here (https://tcpdf.org/ )but the link to the new version is: https://github.com/tecnickcom/tc-lib-pdf |
I am running back to back PHP8.0 and PHP8.2 and am getting the following in PHP8.2:
PHP Deprecated: Optional parameter $isunicode declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 1999
PHP Deprecated: Optional parameter $isunicode declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2021
PHP Deprecated: Optional parameter $setbom declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2037
PHP Deprecated: Optional parameter $isunicode declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2037
PHP Deprecated: Optional parameter $setbom declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2057
PHP Deprecated: Optional parameter $forcertl declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2057
PHP Deprecated: Optional parameter $isunicode declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2057
PHP Deprecated: Optional parameter $str declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2074
PHP Deprecated: Optional parameter $setbom declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2074
PHP Deprecated: Optional parameter $forcertl declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2074
PHP Deprecated: Optional parameter $isunicode declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2074
PHP Deprecated: Optional parameter $str declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2090
PHP Deprecated: Optional parameter $forcertl declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2090
PHP Deprecated: Optional parameter $isunicode declared before required parameter $currentfont is implicitly treated as a required parameter in PDFMerger\tcpdf\include\tcpdf_fonts.php on line 2090
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::AddPage"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 323
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::AddPage"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 323
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::AddPage"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 323
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::Link"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 338
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
PHP Deprecated: Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated in PDFMerger\tcpdf\fpdf_tpl.php on line 278
The text was updated successfully, but these errors were encountered: