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
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.
Support forum for Event Espresso 3 and Event Espresso 4.