We’re in the process of converting to PHP 7.0.x and discovered the following results during our compatibility checks, specific to EventON – Event Tickets:
/eventon-tickets/includes/lib/src/Adapter/CPDF.php
—————————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————–
190 | ERROR | Extension ‘cpdf’ is removed since PHP 5.1 – use pecl/pdflib instead.
—————————————————————————————————–
/eventon-tickets/includes/lib/src/FrameDecorator/Table.php
————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————-
201 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
————————————————————————————————————————-
Please advise.
Thanks!
Mar 19,2017 AT 1:38PM - 4 years ago -Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer!
Yea we are not using that library any more in the new version which we will release this week hopfully. Been ready to go out and then we find issues and then take more time testing and fixing those 🙂
Hi Ashan,
We’ve updated to the latest version of EventON Tickets v1.5 and in follow-up, performed an additional compatbility test(s) for PHP 7.0; this was the most recent result:
FILE: /eventon-tickets/includes/lib/src/Adapter/CPDF.php
—————————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————–
 190 | ERROR | Extension ‘cpdf’ is removed since PHP 5.1 – use pecl/pdflib instead.
—————————————————————————————————–
FILE: /eventon-tickets/includes/lib/src/FrameDecorator/Table.php
————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————-
 201 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
————————————————————————————————————————-
We’re ready to throw the switch to so speak on our PHP 7.0 change over primarly due to performance issues, although I won’t take any chances with breaking such a critical plugin.
Thoughts?
Hi Ashan,
Interestingly enough, my EventON Tickets installation has remnants of previous versions, specifically the folder ‘/includes/lib/src‘ and ‘/includes/lib/src/lib‘. It appears that the most recent versions don’t include any reference to those folders, so I’ve since removed the unused remnants.
As such, yes, your reply was correct in that you don’t use that library any longer; it’s just that if someone upgrades manually and doesn’t replace the entire plugin folder, it can retain remnants and the PHP 7.0 compatibility test will attempt to analyze accordingly.
That should resolve the any further issues during our compatibility testing.
Thanks!
thanks for letting me know. The user updating have to be aware of this as there is no programatic way to remove those folders. But we will make a note of this.
Glad the PHP issues are resolved for you.