Hi, the last days I had an issue with an update for events manager pro (2.6.7 -> 2.6.8).
The update was marked as “compatible with CP” but when I tried to update I first got this error message:
PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
Then I did the update manually by uploading via FTP. Activating was no problem but than, trying to add a new event or editing an existing event, the editor was not usable anymore. Just an empty box…
So I contacted the support team. They said that EM-Pro should be compatible with WP4.9.x and ClassicPress. Then I did set up a test system and they could reproduce the error that the editor is not usable anymore. And they fixed the problem really quick.
This is the explanation I was given:
After a little debugging, the fix was relatively simple, we use wp_date(), a function introduced in later WP updates. It’s the kind of thing most event or date-driven plugins would probably switch to. However, we have our own internal date functions that check for compatibility, we should have used that to begin with as that now fixes the problem.
Check it out, does it work for you now? The file changed is events-manager-pro/add-ons/coupons/coupons-admin.php
I’m surprised ClassicPress hasn’t implemented that function, just to prevent unnecessary breakages in plugins.
I think it was Marcus I wrote with, and we agreed that this should be posted in this forum here.
Yes, supporting wp_date(), even as a polyfill would greatly increase ClassicPress compatibility with newer plugin updates, as date_i18n() was the previous version of this function and it’s simply a replacement of the same. If you can suggest it to them, that’d be appreciated!
I am posting this here now so that the proposed adjustment can be implemented in future versions of ClassicPress.