You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a give developer, I want to use open source and PHP 7.2-compatible libraries to generate PDFs.
TCPDF is currently not compatible with PHP 7.2, specifically the deprecated funciton each() at give/includes/libraries/tcpdf/tcpdf.php on line 16548. It appears that development has stopped on that library at https://github.com/tecnickcom/TCPDF and the new library is not complete/stable yet.
Current Behavior
I currently get an error on PHP 7.2 when trying to generate a PDF.
Expected Behavior
I expect to have PHP 7.2 compatibility.
Steps to Reproduce
Update the local PHP version to 7.2.x
Generate a custom PDF using one of the methods that uses TCPDF. (may require an add-on, but the library itself lives in Give Core)
anywhere the each() function is will generate a fatal error Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /app/public/wp-content/plugins/give/includes/libraries/tcpdf/tcpdf.php on line 16548
This should be fixed in a more recent release of TCPDF according to this PR.
The version of TCPDF in Give is 6.2.13 but the latest release available is 6.2.17.
@raftaar1191 please look into updating TCPDF and post whether you feel there would be any side effects to upgrading. We'll also need to test existing PDF functionality in PHP 7.2.
User Story
As a
give developer
, I wantto use open source and PHP 7.2-compatible libraries to generate PDFs
.TCPDF is currently not compatible with PHP 7.2, specifically the deprecated funciton
each()
at give/includes/libraries/tcpdf/tcpdf.php on line 16548. It appears that development has stopped on that library at https://github.com/tecnickcom/TCPDF and the new library is not complete/stable yet.Current Behavior
I currently get an error on PHP 7.2 when trying to generate a PDF.
Expected Behavior
I expect to have PHP 7.2 compatibility.
Steps to Reproduce
each()
function is will generate a fatal errorDeprecated: The each() function is deprecated. This message will be suppressed on further calls in /app/public/wp-content/plugins/give/includes/libraries/tcpdf/tcpdf.php on line 16548
Related
Tasks
6.2.17
.The text was updated successfully, but these errors were encountered: