Posted: June 24, 2021 at 12:31 pm
If I try to activate the Elastic Email Sender plugin, it crashes the backend of WordPress (white screen and won’t load). I went through and started deactivating plugins via FTP and realized that when I deactivated “event-espresso-core-reg”, the site started working again. Likewise, when I went into the WordPress dashboard and reactivated the Event Espresso main plugin, the site crashed again (when Elastic Email is also activated). Seeing as how Elastic Email is pretty popular for easy SMTP sending, is this something that you can help fix? Our registrations are on hold until you guys or Elastic Email updates their plugin or provides a fix. |
|
Hi there, So the issue is that both Event Espresso and Elastic Email are defining a constant names All EE constants are prefixed https://github.com/eventespresso/event-espresso-core/blob/master/core/espresso_definitions.php#L35 The Elastic Email plugin is using 5 matches across 5 files: https://monosnap.com/file/kSWdCj6PKZj6lOqoUSgiJy8OrB4EOa So to be honest, it makes the most sense for the Elastic Search Plugin to update that constant to something like |
|
Ok–so is that something I can fix, or do I have to take it up with Elastic Search to have them change it in their code? |
|
You ‘can’ change the code locally, but if Elastic Search doesn’t make that change to the plugin then you’ll lose those changes when the plugin updates next time and be in the same situation. |
|
Hi there, Generally (as above) I don’t recommend changing core files of a plugin but I realised that although what I said above still applies, I think it’s worth letting you know the changes that need to be made for this to work to give you the option to use both at the time.
Change: To be: Thats where the constant is defined, the next 4 files all use it in the exact same way:
Line 2 on each of those files has:
Change that to be:
That should be it, as it’s used as a flag there’s not much to test. It’s either defined or not and it’ll either work or you’ll see ‘No direct access allowed.’ on the page. I looked to open up a pull request to have these changes considered by Elastic Email but looks like their repo isn’t public (or I’m completely missing it) but at least for now you know what needs to be changed. |
|
The support post ‘Elastic Email conflict’ 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.