We have been using s2Member pro with Stripe for some years, but recently migrated to a new host with the newest PHP version. Now, the “Add Billing Method” doesn’t work at https://whav.net/news-match-premium-monthly-subscription/ and similar pages. I’ve seen other report the issue on these pages, but I have not seen a solution mentioned.
Thank you for your response. The entire site was recently migrated to a new host via a migrate plugin. Maybe the directory structure changed during the move. I can try to check. Maybe S2Member reinstallation would fix?
I don’t think that reinstalling s2Member would fix that, but you can try it.
Let me know when you find out if the WP directories were changed in some way. Perhaps it was done in such a way that s2Member can’t find it for some reason.
This is kind of a technical solution, but you can also try setting a server variable to tell s2Member where WordPress is, if your host allows that.
I faced a similar issue with the trellis stack. The solution will be different depending on your host and web server, but setting a WP_DIR server variable will help s2Member find your WP installation.
@clavaque I think I also experienced the issue when I tried using a “WP-optimized host” a few years back. Maybe it was Flywheel? It was a while back so it might have been a different host or fixed by now.
I’m wondering if more and more hosts that offer automatic updates, etc. are sharing the same WP core installation for ease of updates and to save some storage space and CPU when upgrades occur.
Unfortunately, s2Member has been the only plugin I’ve experienced that can’t find WP core sometimes. Maybe a rewrite of how it locates it?