PHP7.2 Compatibility issue

Hi,

We ran a PHP compatibility scan on our website themes and plugins and found that Sage Starter theme is incompatible. Please find below details:

FILE: /nas/content/live/devcheese/wp-content/themes/hilmar/lib/vendor/itbz/fpdi/src/fpdi/FPDI.php

FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE

466 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead

FILE: /nas/content/live/devcheese/wp-content/themes/hilmar/lib/vendor/itbz/fpdf/src/fpdf/FPDF.php

FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES

1057 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
1065 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0

FILE: /nas/content/live/devcheese/wp-content/themes/hilmar/lib/vendor/itbz/fpdf/makefont/makefont.php

FOUND 2 ERRORS AFFECTING 2 LINES

318 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0

Please suggest.

I am pretty sure that itbz/fpdi is not part of the default Sage-install so you can’t blame the Roots theme for that incompatibility :slight_smile:

itbz/fpdi seems to be abandoned but maybe following the recommendations by the developer can help you out: https://packagist.org/packages/itbz/fpdi .

This has nothing to do with Sage.

Thank you so much for the response.

Could you please suggest a way to fix this compatibility issue that we are seeing?

You need to open an issue or bug report with the author of itbz/fpdf and have them resolve it.

The package is abandoned. Judging by the README, the author suggests switching to setasign/fpdi – but it is not a drop-in replacement. See Changes to Version 1 (namely the bullet points at the bottom).

This topic was automatically closed after 42 days. New replies are no longer allowed.