Posted: January 23, 2018 at 2:00 am
|
I’ve been using S2Members and EE together for years without issue. Just recently we noticed that our site’s settings for S2 are all blank. When EE is disabled all of the settings return so it seems there’s some type of conflict. The only error I get in console is: |
Hello, May I ask which versions of Event Espresso and s2members are installed on your site? Also, does the error occur if all other plugins are deactivated and the site is temporarily switched to the default theme? |
|
|
Event Espresso – 4.9.55.p We’ve been running both EE and S2 for many years now without issues, there’s be no new plugins added, and all plugins/themes are up to date with the most current versions. I haven’t tried disabling the theme but I have tried all the plugins and it’s only the core EE that’s causing the conflict. S2Members support has replied to me asking me to contact EE for a script to block JS from loading on non-EE pages. Other plugins if it helps: Thank you! |
Hi there, That’s interesting that S2Member support asked about a way to block EE’s scripts from loading on non-EE pages. This is because with one exception, EE’s scripts do not load on on non-EE pages. I have S2 installed on a test site and checked its admin pages and there were no conflicts there. Does S2 support know exactly which script needs to be blocked? My guess would be ee-cpt-wp-injects.js, because that’s the only script that’s loaded on non-EE pages. It’d be a really strange thing for that script to cause a conflict though.
|
|
|
I’ve reached out to them with your reply. Since they didn’t initially tell me which scripts to block then I’m assuming they aren’t sure which script(s). Is it worth trying to block that script you mention to see if that fixes the issue? |
You can block that script from loading from the S2 General Options page by adding the following code to a site functions plugin:
Here’s how to set up a site functions plugin. If the above fixes the issue for the S2 General Options page of your site we can add the other pages to the script. |
|
|
Thanks for the reply Josh. I’ve added that script to my functions.php but unfortunately it’s still not working. S2 just has a blank page on all the settings. |
I didn’t think that would help because like I mentioned earlier, it would be really strange thing for that script to cause a conflict. Can you get a copy of the source of the s2member webpage and paste it into a gist or pastebin, then link here? I’m afraid we can only guess what S2 is doing on that page and why there’d be an error there. If you cannot do that, you could also complete this form so we can investigate further. |
|
Hi there, I found the error and applied a temporary fix and the S2 plugin’s settings page loads now. I can advise contacting your host and ask them if they can upgrade the web server to at least PHP 5.6.32, but it’d be best if they can update to PHP 7.0 or greater. |
|
The support post ‘S2Members 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.