502 Bad Gateway after PayPal checkout

Hi,

After checkout PayPal sends me to a 502 bad gateway page. I have triple checked all of my API settings and return URL. All of that seems good. Here’s my button code.

[s2Member-PayPal-Button level=“1” ccaps=“daughters_workshop” desc=“TEST Daughters Workshop” ps=“paypal” lc="" cc=“USD” dg=“0” ns=“1” custom=“www.willieverbegoodenough.com” ta=“0” tp=“0” tt=“D” ra=“0.01” rp=“1” rt=“L” rr=“BN” rrt="" rra=“1” image=“default” output=“button” success="/thank-you"]

I have a thank you page created and have tried various URLs /thank-you, /thank-you/, https://www.willieverbegoodenough.com/thank-you/

None of them work. What could be preventing it from going to the thank you page and why the 502 error? Any advice would be welcome. Thank you!

Hit F12 on your keyboard to bring up the browser debug window, select the Network tab, refresh the page and see what address the 502 is failing on.

Hi, Tim. Thanks for the tip. When I refresh the page by the way I get this:

[ www.willieverbegoodenough.com ] says…
Thank you! Please check your email for further details regarding your purchase.
Return to Home Page
If you need assistance, please contact support.

So the 502 Bad Gateway error goes away - but still no thank you page!

Here’s what I found when inspecting the page. There are 3 red lines:

Request URL: https://www.willieverbegoodenough.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&qcABC=1&ver=200301-200301-585276094
Referrer Policy: no-referrer-when-downgrade

Request URL: https://www.willieverbegoodenough.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=aace95c2816ff364edd11525303857fa&qcABC=1&ver=200301-200301-585276094
Request Method: GET
Status Code: 500
Remote Address: 151.101.130.159:443
Referrer Policy: no-referrer-when-downgrade

Request URL: https://www.willieverbegoodenough.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=aace95c2816ff364edd11525303857fa&qcABC=1&ver=200301-200301-585276094
Request Method: GET
Status Code: 500
Remote Address: 151.101.130.159:443
Referrer Policy: no-referrer-when-downgrade

Uninstall your s2member plugin (and s2member pro plugin if using it) and re-install. You should not be getting 500 errors for that file.

Hi, Tim.

I uninstalled both plugins ( I am using Pro) and reinstalled. I am still getting the 502 error. When I refresh the page it does display thank you text and registration emails are arriving.

Could there be an issue with the button code? And it does not take me to the thank you page as intended.

[s2Member-PayPal-Button level=“1” ccaps=“daughters_workshop” desc=“Healing the Daughters of Narcissistic Mothers A Virtual Workshop” ps=“paypal” lc="" cc=“USD” dg=“0” ns=“1” custom=“www.willieverbegoodenough.com” ta=“0” tp=“0” tt=“D” ra=“00.01” rp=“1” rt=“L” rr=“BN” rrt="" rra=“1” image=“https://www.willieverbegoodenough.com/wp-content/uploads/2012/08/2014-workshop-promo-paypal-button.png” output=“button” success="/thank-you" /]

Thank you!

I’m a bit confused. You started off with a 502 error with no “thank you” page, then you had 500 errors with no 502 error and the “thank you” page worked, and now you have no 500 errors, a 502 error, the text is being displayed and the registration email is getting delivered but the redirect is not working.

Hit F12 and select the network tab and tell me what the 502 error info is. The last time you did this you reported 500 errors but no 502 error. Now that you have a 502 error you need to look at the network debug to find out why. I’m assuming he 502 is coming from PayPal.

Hi, Tim.

The 502 error resolves after I hit refresh to inspect the Network panel. As I mentioned, when I refresh the 502 Bad Gateway page it takes me to a generic thank you text.

This time I had the Network panel open when performing the paypal transaction. Here is the 502 error.

  1. Request URL:

https://www.willieverbegoodenough.com/?s2member_paypal_return=1&s2member_paypal_return_tra=ZGVmNTAyMDA1YTY0NzI0Y2YwZDM5YWE3ZmJhMzEwMzk2NDUxZGI0YzdjODNlN2M5OTFjMjgzZGVkZjI3ZDQxMTgyZWUxNTZlOGZmZmUyZDMxOTcyZjAxZjNkZGRmYzA3MzcwNjVmY2Q3ODIwZDA4NDM0N2NkMGFhYTY5OGE5NTc5NTE3YWJlZDA1Y2EzZTA4YzlhZDJlM2VkYWNmYjRiMDhkZjA2NDZkMzhkMmU5MjNmYzFkOGI1ZTU3ZjNiODQ1OTkyZTdjY2NkZDczNmY2OWQ3ZWEwNzgzZjEyZmUwODQ4NDQ1NTBhY2U2YmFlODNmMTAzNzNhNTg5NjMzNGEzYjNlMTA2NzU1MWY3ZGVkNDMyMmQ2ZmU1Y2NjMDAwZjNjZjdkNDE0NDJiNzI4ODIzODIyYjAyY2E5OTFmMTM0ZTRlZDYxMTE4NGNjNDAxOWI3Mzk3ZTliN2EwOWYyMGIzZTYyOTRjNmUwNjBmYTIzNDY3MjJiOTFhNzgzNTIzYTYyMWVkZjRhZDRlYjViYzVhODQyNWI5NmVmNzRmYjc0Y2YzNjkxMDZiZDdjYzBjNzFiNTg4MDU2MmJkMDI0MWE5NDhmOTQ1NDRjN2U0YzQ3YzhjZDE3NDM0MDgyY2NlOWNlMWUwMDBiZTQ0NjRiNGZlMGFmNzM5NDYxYWViMjUyMTc4NTAwMjZjYWYyMzczMWVjZjE5OWU5YTg2NDc3OWFlNGRiMmFiYWM2ZDYwNzNjNjdlMTQ5ZjFhOGYxYTQ3M2RkMTY2NDU3NzAxYmMzMmU0OWM2NTQ5NWJhNjFjZjJhOWI4MzZmZGRkOWNiM2VlN2M2MDM1YmFlOGQzYjA3Y2Y0NDA2NjE3OGY0ZjRkNGZlMDM4Yzg5Njk1NzkxY2Q5M2ZjOTc3MzM2NGQ4ZjAyZDJlYmM4ZjU4YTM0N2YzNWJkNGQ3ZmJiYjU&s2member_paypal_return_success=%2Fthank-you&amt=0.01&cc=USD&cm=www.willieverbegoodenough.com&item_name=Healing%20the%20Daughters%20of%20Narcissistic%20Mothers%20A%20Virtual%20Workshop&item_number=1%3Adaughters_workshop&st=Completed&tx=2V185775XR1172603

Request Method: GET
Status Code: 502
Remote Address: 151.101.130.159:443
Referrer Policy: no-referrer-when-downgrade

Thanks for hanging in there with me! I appreciate the help!

No worries. If you’re patient…I’ll be patient :slight_smile:

You need to do the F12 test again but look in two other places: 1) Headers-Response (returned meta-data) 2) Response (returned data) to see what info was returned. See following sample debug trace from another thread to see where to look:
image

Thanks, Tim!

The Inspector panel looks slightly different in my Firefox. Hopefully, I’m in the right place.

Found under Request > Query String

s2member_paypal_return: “1”
s2member_paypal_return_tra|: “ZGVmNTAyMDA4M2M0YzYwZmQ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Workshop"
item_number"1:daughters_workshop"
st"Completed"
tx"6AM68103RA7024004"

Response Headers

HTTP/2 502 Bad Gateway
content-type: text/html
x-xss-protection: 1
x-content-type-options: nosniff
referrer-policy: no-referrer-when-downgrade
x-fw-server: Flywheel/5.1.0
x-fw-hash: voecdtytbx
cache-control: private, max-age=0
x-fw-version: 5.0.0
server: Flywheel/5.1.0
x-cacheable: NO: obj.status
x-cacheable-status: 502
accept-ranges: bytes
accept-ranges: bytes
date: Thu, 11 Jun 2020 14:02:52 GMT
x-served-by: cache-den19620-DEN
x-cache: MISS
x-cache-hits: 0
x-timer: S1591884169.470375,VS0,VE2614
vary: Authorization
x-fw-serve: TRUE
x-fw-static: NO
x-fw-type: VISIT
content-length: 166
X-Firefox-Spdy: h2

Request Headers

Host: www.willieverbegoodenough.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Referer: https://www.paypal.com/webapps/xoonboarding?token=6T0890646S015953E&useraction=commit&rm=2&mfid=1591884020444_feaeda3eb31c9&country.x=US&locale.x=en_US
Upgrade-Insecure-Requests: 1

Have a read of the following: https://www.s2member.com/forums/topic/paypal-re-direct-not-working-properly/

Your success url should be a full url starting with https://

Hi, Tim.

I did add the thank you URL but I’m still seeing the 502 Bad Gateway error.

  1. t URL:

https://www.willieverbegoodenough.com/?s2member_paypal_return=1&s2member_paypal_return_tra=ZGVmNTAyMDAzNzEwYjU4MDRmNTE3OTE3OWE4NzdmOTg3YjA2NWZlNGQ0NTdjYmQ1MjUzOWFjYmRmOWUxMmY0YmZkZWQ4ZGEwOGMzZWZkNmY0OGQ5OGY5ZWZiZWZmODEzYWE0ZTgxYTFhMjA1ZDVkN2RkMGM0MWVkZDVjYzcxNGZiZjgyNDJkOTFkZTc0YzgzODQ3NDdkMjBkNzE4ZWY0OTY2Yzk4MTdlMTMxMzBkMDRjMWIxNzZlMTZlZGM3ZmFkYzFmYzA5NGMxMDY0ZmI5NzFiYzY4YTZkYjg2Njc4NzZmMGE2ZDA3NjU4YjNhNTk2ZTZmNmU3YWQyOWE1MDMwMjk2MzQ0ZWU1NjgzMjYzYjI3OWMyMzFmNTU4ZWRmNjNlOWE2M2RhOGM1ZjQ1ZmQ1MjZkMmUxMDA3ODI1MGU2M2Q4MDZhNjdkNGE2MDYyMDU3MGU4ODRkNzQ0MzhiZmI2N2QxYjMwNjAwNTM4OTFiMTMwNTUyZGU1NGVmMDQ2MGM3YzAzM2NhNzM1MjRjNDFhNDViYjNjYWMxZDY1NzY3YjBjNDA2Mzg3OGM0NGJhZjUzZDdiM2IzMGRjMGE5ZWQwYTA3ZmNlN2M5ODYzOTM0YWYxNjJiNzllZjAxMmM5NDk5YTZiZmQyY2UyNjcxMmJiMjI3MzkxOGM5NzVkMDJkY2M1MzJiMzJlY2RjNGI3MTRkMzFhYTgyMGVlMDYwZmFmYmY4NjI0OTY1ODVlOWEzZjgyYzBiN2FjODFlODc0N2IyNzNiODg5YjU5MDczMTNhNTMwYjgwMzllMGRhNGVhZGJhNWViZmM1OTkzZDg4YmJmOTQ2YWFjNmQ1MjY0MGViZTQwNzdlM2EyMzQzMTlmMDdiZGE2YTYwMjE4ZjNkMzUxYzhhYjAxZTQ0NWZhOGYyZDg0MDYzNDI5NjAxODFmM2NmNmE5MjE&s2member_paypal_return_success=https%3A%2F%2Fwww.willieverbegoodenough.com%2Fthank-you%2F&amt=0.01&cc=USD&cm=www.willieverbegoodenough.com&item_name=Healing%20the%20Daughters%20of%20Narcissistic%20Mothers%20A%20Virtual%20Workshop&item_number=1%3Adaughters_workshop&st=Completed&tx=1CE35230A69388149

  1. Request Method:

GET

  1. Status Code:

502

  1. Remote Address:

151.101.130.159:443

  1. Referrer Policy:

no-referrer-when-downgrade

  1. Response Headers

  2. accept-ranges:

bytes

  1. accept-ranges:

bytes

  1. cache-control:

private, max-age=0

  1. content-length:

568

  1. content-type:

text/html

  1. date:

Fri, 12 Jun 2020 18:14:21 GMT

  1. referrer-policy:

no-referrer-when-downgrade

  1. server:

Flywheel/5.1.0

  1. status:

502

  1. vary:

Authorization

  1. x-cache:

MISS

  1. x-cache-hits:

0

  1. x-cacheable:

NO: obj.status

  1. x-cacheable-status:

502

  1. x-content-type-options:

nosniff

  1. x-fw-hash:

voecdtytbx

  1. x-fw-serve:

TRUE

  1. x-fw-server:

Flywheel/5.1.0

  1. x-fw-static:

NO

  1. x-fw-type:

VISIT

  1. x-fw-version:

5.0.0

  1. x-served-by:

cache-den19651-DEN

  1. x-timer:

S1591985661.753299,VS0,VE1215

  1. x-xss-protection:

1

  1. Request Headers

  2. :authority:

www.willieverbegoodenough.com

  1. :method:

GET

  1. :path:

/?s2member_paypal_return=1&s2member_paypal_return_tra=ZGVmNTAyMDAzNzEwYjU4MDRmNTE3OTE3OWE4NzdmOTg3YjA2NWZlNGQ0NTdjYmQ1MjUzOWFjYmRmOWUxMmY0YmZkZWQ4ZGEwOGMzZWZkNmY0OGQ5OGY5ZWZiZWZmODEzYWE0ZTgxYTFhMjA1ZDVkN2RkMGM0MWVkZDVjYzcxNGZiZjgyNDJkOTFkZTc0YzgzODQ3NDdkMjBkNzE4ZWY0OTY2Yzk4MTdlMTMxMzBkMDRjMWIxNzZlMTZlZGM3ZmFkYzFmYzA5NGMxMDY0ZmI5NzFiYzY4YTZkYjg2Njc4NzZmMGE2ZDA3NjU4YjNhNTk2ZTZmNmU3YWQyOWE1MDMwMjk2MzQ0ZWU1NjgzMjYzYjI3OWMyMzFmNTU4ZWRmNjNlOWE2M2RhOGM1ZjQ1ZmQ1MjZkMmUxMDA3ODI1MGU2M2Q4MDZhNjdkNGE2MDYyMDU3MGU4ODRkNzQ0MzhiZmI2N2QxYjMwNjAwNTM4OTFiMTMwNTUyZGU1NGVmMDQ2MGM3YzAzM2NhNzM1MjRjNDFhNDViYjNjYWMxZDY1NzY3YjBjNDA2Mzg3OGM0NGJhZjUzZDdiM2IzMGRjMGE5ZWQwYTA3ZmNlN2M5ODYzOTM0YWYxNjJiNzllZjAxMmM5NDk5YTZiZmQyY2UyNjcxMmJiMjI3MzkxOGM5NzVkMDJkY2M1MzJiMzJlY2RjNGI3MTRkMzFhYTgyMGVlMDYwZmFmYmY4NjI0OTY1ODVlOWEzZjgyYzBiN2FjODFlODc0N2IyNzNiODg5YjU5MDczMTNhNTMwYjgwMzllMGRhNGVhZGJhNWViZmM1OTkzZDg4YmJmOTQ2YWFjNmQ1MjY0MGViZTQwNzdlM2EyMzQzMTlmMDdiZGE2YTYwMjE4ZjNkMzUxYzhhYjAxZTQ0NWZhOGYyZDg0MDYzNDI5NjAxODFmM2NmNmE5MjE&s2member_paypal_return_success=https%3A%2F%2Fwww.willieverbegoodenough.com%2Fthank-you%2F&amt=0.01&cc=USD&cm=www.willieverbegoodenough.com&item_name=Healing%20the%20Daughters%20of%20Narcissistic%20Mothers%20A%20Virtual%20Workshop&item_number=1%3Adaughters_workshop&st=Completed&tx=1CE35230A69388149

  1. :scheme:

https

  1. accept:

text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9

  1. accept-encoding:

gzip, deflate, br

  1. accept-language:

en-US,en;q=0.9,de;q=0.8

  1. referer:

https://www.paypal.com/webapps/xoonboarding?token=9UN61323N0215382K&useraction=commit&rm=2&mfid=1591985540661_5f54df25830ef&country.x=US&locale.x=en_US

  1. sec-fetch-dest:

document

  1. sec-fetch-mode:

navigate

  1. sec-fetch-site:

cross-site

  1. upgrade-insecure-requests:

1

  1. user-agent:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

  1. Query String Parametersview sourceview URL encoded

  2. s2member_paypal_return:

1

  1. s2member_paypal_return_tra:

ZGVmNTAyMDAzNzEwYjU4M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.com

  1. item_name:

Healing the Daughters of Narcissistic Mothers A Virtual Workshop

  1. item_number:

1:daughters_workshop

  1. st:

Completed

  1. tx:

1CE35230A69388149

You’re still getting 500 errors accessing the plugin. You need to fix that. Talk to your hosting company. See the following screenshot:

Thanks for the feedback, Tim.

Do you think this is a permissions issue? Any suggestions on how I would start this conversation with my host?

Before contacting your host, disable any security plugins and try again. I just helped another user with messaging issues that turned out to be caused by his security plugin (see Paypal Payment Not Updating Membership Level).

If that doesn’t fix it then contact your host and just do a screenshot like the sample I provided you above that includes the 500 errors.

Hi, Tim.

I did not have any security plugins active or even installed.

After a few back and forths here is a reply from my host that may have a clue?

Hello Chris,

Thanks for the follow-up and sorry for the continued issues! I went ahead and bumped the server resources way up and made a test purchase from the /test-workshop. I was unfortunately able to recreate the 502 error as well. Do you know when the issue started or has it always been this way?

As my colleague mentioned, the return URL is extremely long, do you know if S2 perhaps has a way to shorten it?:

www.willieverbegoodenough.com/?s2member_paypal_return=1&s2member_paypal_return_tra=ZGVmNTAyMDA1MGM2YzM4NjlkMjMyYjNkYjU2MmY2NDEzN2U5ZmUyZDAyZjIyNDFmNDZkY2YwNmY4YTEzNGQ4ZTY5OWM2OGExMDBmMjM0MmYxZmQ2ZjFiZmJhMjBlNmIxOWYyNTM5ZWZiMTE3MTYxYjc5NDg0NjRiMTlkOTY5NjRiNzlkMjM0ZGI5ZTE4YzE5YmZlMThlMWFiNGUzZTViOGY3YzFjMDY4ZmFjM2QzMDE5NDBlNTkxZTdjMDA4MjU5YTY0ODg1YTQwZWRiZGM4NzA5ZDgzMWFkMDE1ODYwNjk0NzlmY2IxMDAyMDZiMzYzYzE4NjJiNWVkMjJiNzNiNzIyY2NmMmMwNjJlZjI2ZWRhOTJkYzg0ZTAzNDljZTM2YTcwZTJiMTgzYTYxODIzNWQxZDg0NGIxNjUyNWM5ZjgxODk0MDE1MjNiNjExZmNlOTQzZjMwYjg5ZTE1NGI3ZWI4MTVhOGQxYTg4ODVlNDEyNGJhNWUzYTE3OGNmYzY3M2Q1YjNmN2QxYTAxMTg5YjY4YjFmNGFjOWFlMjAxOWMzMWE1ZWRhNDgwNWZlMGFhZWExZGE1NWZiYzc5ZmY4MDFhZDBhZmU0N2QxZGUwNTEzZGNlZmExMTU3YzJmYThlMDEyM2RkNjk2ZGY1MTRkNzc4MDAxMjQxYjkyY2M1YmY3MTJmYzFhMzI5YmYyY2ZlZjQ3NDk3M2QzYzc1YzliYWRiMmNmY2JiZjExYjkxOWEyNzI2OTc4MDk2NzZiYjBhODQwYTM5MGFmZDRhOTJiNjVmZWI5ZTc5NTU0NWMwMGVlMTFjZmJiYjJiYmVhY2QzOWFmYWVjZjg2ZTFiMTljZTg1OTYyYjZiNWExMTRlNDhkNDI3NjJlYTE0ZT

As for the 500 error, immediately after the order a request with a 500 response is sent to:

https://www.willieverbegoodenough.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=1&qcABC=1&ver=200301-200301-3342417551

And it shows this error:

ERROR: s2Member unable to locate WordPress directory.

I took a look at the file and it looks like the plugin is using a variable “wp_dir” to detect the wordpress directory. On our cloud platform, we store the WordPress core files (wp-admin, wp-includes, etc.) in a separate location for easier maintenance and for security. To find the Wordpress directory, they can use a call to ABSPATH which will always return “/www/.wordpress”.

We also searched our ticketing system and so far we haven’t seen any other S2 Member plugin users have this same error, so it is a bit puzzling. Let us know if there’s anything else the plugin developer would like for us to try.

That is a possible problem.

It begs the question…did this work before and it stopped working or is this a new installation and you are attempting to get it to work.

Next step (actually it is a step that should have been first if you can reproduce this error) is to enable the s2member debug logs and look in there. See: Dashboard → s2Member → Log Files (Debug) → Logging Configuration

Hi, Tim.

I have had log files enabled for the past couple of weeks. I’m not sure what to do with them. Is there one I can export and share for you? Thank you!

I haven’t looked at s2member logs for years. I assumed they might shed some light on your errors since it appears to be a timeout in the request from s2member to the gateway.

Sorry I’m not offering more specific help but I have multiple sites running PayPal and Stripe for years with no errors except for the recent Stripe / PayPal double payment issues plaguing everyone.