Possible JS conflict?

Hi there,
I have been using s2member for years without much problems.
Now for some reason, I think I have a JS conflict somewhere, but can’t find it.

Symptoms:

  • The admin menus of s2 don’t have the tabbed format anymore, the admin options all appear one after the other
  • The “Reset brute force logs” & other buttons don’t work anymore
  • The password strength meter on the registration page stopped working (https://www.theguitarlesson.com/wp-login.php?action=register)

What I tried:

  • Turned off all other plugins and changed theme (no effect)
  • Enabled wp debug and script debug (didn’t show anything)
  • Ran the s2 server info file (didn’t show anything)

What’s strange is that on this same cPanel account, I have another WP installation (http://www.theguitarlesson.com/guitar-pro-tabs/), I uploaded s2member there as well, and s2 produced the same errors.

However, on the same server, but using a different cPanel account, s2 works normally.

Do you have any ideas what could be wrong?

Thanks,
Tom

On your registration page, you appear to be running the Google Captcha plugin instead of using the captcha provided by s2Member. I suspect that’s the problem there. (I know you said you deactivated all other plugins, but using both plugins looks like a recipe for trouble to me.)

As for http://www.theguitarlesson.com/guitar-pro-tabs/, right-click somehere and then select Inspect Element and then Console. Then re-load the page. That should tell you where the problem lies.

Hi, thanks, but that didn’t solve it. As I said, the issue still presents itself with all plugins deactivated, flushed cache, and refreshed.

I tried looking in console already, in Chrome and Microsoft Edge, but that didn’t have anything related to any JS errors.

Any other ideas?
Best,
Tom

Try using Firefox. I can see the following error in the console:

Loading failed for the <script> with source “https://www.googletagmanager.com/gtag/js?id=UA-5257838-7”.

Hmmm, that’s an interesting error, it’s google analytics. I wonder why Chrome and Edge didn’t produce that error.
I temporarily removed it from the site, but unfortunately the s2member issues remained.

When, at which event, it stops working? Can be upgrade of something (even the s2M itself), can be theme too (activate some "201*$ theme from WP.org and test again), or changes in hosting plan, .httaccess file and so on… Find the reason that runs the problem and will be able to fix it.

Hi, the thing is that I don’t know where it goes wrong. It just doesn’t work under this entire cpanel account. So not just this wordpress installation, but the other one in this cpanel account as well. But on another cpanel account on the same server, s2 works as expected.

I tried disabling all other plugins and changing the theme at the same time, but the error persists.

Here is a screenshot of what it looks like, and as I mentioned in the initial post, the flush brute force buttons don’t work either, I guess that’s JS as well.

Is your host running some caching, like Varnish, on that account? I think you need to talk to them.

I am reviving this question, perhaps not that Cristián is back, he can help me out :slight_smile:

All of the symptoms are the same, I haven’t found a solution since.

Thanks,
Tom

Hi Tom. :slight_smile:

That does sound like an odd behavior. It does sound like a JS problem, and it does seem related to the hosting, from what you tell me.

Did you contact your web host about it? Maybe they can give some insight or spot a difference between your cpanel accounts to correct the misconfiguration.