We have been running S2 Member for many years and today a long-standing custom registration and purchase page stopped working. A bunch of fields not in our custom setup appeared and the credit-card entry box is no longer clickable and cannot receive text entries. We tried stripping out our custom CSS and reverting from our child theme with the custom login info but it’s all the same problem repeating. Any idea what the issue could be?
We are on Pro 250701. Reverting framework and pro to 250525 didn’t fix the issue. The coupon code should not show, and you can see in the attached that the credit card box is too small and messed up.
This worked fine until this morning.
Custom purchase page no longer working -- customization broke, CC field not clickable
Thanks for the screenshot.
That looks like a pro-form without the JavaScript or styles. I think something may be blocking s2member’s JavaScript/styles file (s2member-o.php) from being loaded.
See this article and follow the tips there: https://s2member.com/kb-article/mod-security-odd-403-503-500-errors/
Thanks. I will look into that.
I tried making a new Stripe Pro page for L1 access, and got this shortcode:
[s2Member-Pro-Stripe-Form level=“1” ccaps="" desc=“6 Months @ $39.99 / then $ USD / One Time (for 6 month access, non-recurring)” cc=“USD” custom=“onlinepubliccommunication.com” ta=“39.99” tp=“6” tt=“M” ra=“0” rp=“6” rt=“M” rr=“0” coupon="" accept_coupons=“0” default_country_code=“US” captcha=“0” /]
But it returns the same problem. And when I do an inspect in Chrome it shows this for the credit card entry box:
<div id="s2member-pro-stripe-form-card-element"> <!-- A Stripe Element will be inserted here. --> </div>
I see… Yeah, it does seem to be a security configuration issue blocking your s2member-o.php file. If you check the page’s source and search for that file, take the URL and try loading it in a new tab. You’ll likely get a 403 or 503 error.
The article I linked to, covers the most common things that cause it.
Yeah, it produced a 403 error. I’m working on the modsecurity edits now and seeing if that fixes it.
Great
Hmmm… No luck so far. We use Litespeed, not Apache, if that matters.
And I completely disabled the iThemes Security plugin and got the same result.
Switching to Apache also made no difference. Same result.
Actually, switching to Apache produced a 404 error for sitedomain.com/wp-content/plugins/s2member/s2member-o.php
Still not able to get this working again. It’s totally fubar. Tried deactivating every other plugin and still didn’t get a solution. I did find deactivating one got a partial result in Chrome on one computer (win11) but not another (mac).
Ok, culprit is the “WP Content Copy Protection & No Right Click (Premium)” plugin.
I had to uninstall it completely, clear all the browsing history on our computers, then install a previous version and turn off auto-updates for it. I will contact the developer of that plugin and let them know about the conflict. I imagine it’s blocking some JS someplace. Looks to be resolved for now.
Great troubleshooting job! I’m glad you got to the bottom of it and could sort it out. Thanks for the update.