Support

Home Forums Event Espresso Premium PHP 7 Incompatibility in dompdf

PHP 7 Incompatibility in dompdf

Posted: March 11, 2017 at 12:05 pm

Viewing 1 reply thread


NCER

March 11, 2017 at 12:05 pm

SiteGround’s PHP 7 compatibility checker is reporting 2 errors with Event Espresso 4 files.

FILE: /wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/table_frame_decorator.cls.php
——————————–
FOUND 1 ERROR AFFECTING 1 LINE
——————————–
173 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0

FILE: /wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/dompdf.php
——————————–
FOUND 1 ERROR AFFECTING 1 LINE
——————————–
184 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_split instead

I am not asking for help with this. I fixed both errors on my site


Josh

  • Support Staff

March 13, 2017 at 11:52 am

Hi there,

Those errors you saw were actually false positives. The first error is a false positive because of the way dompdf is doing the loop (without brackets). The second error is within a case that is for running dompdf in the command line. So it will not be executed by EE at all. So there’s no need to change the code, and the next time you update EE, the code changes will get overwritten anyway.

Viewing 1 reply thread

The support post ‘PHP 7 Incompatibility in dompdf’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso