You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NGINXConfig tool generates secure and performant config files for Nginx, based on standard best practice. It provides the following WordPress specific config for Nginx:
Two of these rulesets break s2Member's ability to execute functions. In my tests, it throws ERR ABORTED 403 on access to these and I would expect others: /wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css... /wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals...
The end result is a janky looking payment page, with broken menu items and PayPal features. I'm still trying to figure out the extent of it.
STEPS TO REPRODUCE THE ISSUE
Gotta be using Nginx, and include either of these two rulesets in its config file:
Then, visit the sign-up page on a WordPress + s2Member based website and monitor the console output for errors.
BEHAVIOR THAT I EXPECTED
No conflict with standard best practice rulesets, and an unbroken membership page.
BEHAVIOR THAT I OBSERVED
Layout of our membership page appeared janky. PayPal icon missing, with strange features in its place. It's also asking for credit card details in a place it shouldn't (outside of PayPal).
WORKAROUND
Pretty obviously, the two rulesets causing the issue can be removed or commented out.
The text was updated successfully, but these errors were encountered:
B-Interactive
changed the title
NGINXConfig defaults break s2's CSS
NGINXConfig defaults break s2Member functions
Jun 1, 2021
EXPLANATION OF THE ISSUE
The NGINXConfig tool generates secure and performant config files for Nginx, based on standard best practice. It provides the following WordPress specific config for Nginx:
Two of these rulesets break s2Member's ability to execute functions. In my tests, it throws ERR ABORTED 403 on access to these and I would expect others:
/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css...
/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals...
The end result is a janky looking payment page, with broken menu items and PayPal features. I'm still trying to figure out the extent of it.
STEPS TO REPRODUCE THE ISSUE
Gotta be using Nginx, and include either of these two rulesets in its config file:
Then, visit the sign-up page on a WordPress + s2Member based website and monitor the console output for errors.
BEHAVIOR THAT I EXPECTED
No conflict with standard best practice rulesets, and an unbroken membership page.
BEHAVIOR THAT I OBSERVED
Layout of our membership page appeared janky. PayPal icon missing, with strange features in its place. It's also asking for credit card details in a place it shouldn't (outside of PayPal).
WORKAROUND
Pretty obviously, the two rulesets causing the issue can be removed or commented out.
The text was updated successfully, but these errors were encountered: