PayPal ERROR: Unexpected txn_type/status

Hi,

Our S2Member install used to work fine and we did have club members sign up and use it successfully. For some reason, now when trying to have a member renew or a new member pay (PayPal, not pro), we get “ERROR: Unexpected txn_type/status.”

IPN log fives this:

LOG ENTRY: Mon Dec 5th, 2022 @ precisely 4:20 pm UTC
PHP v8.0.25 :: WordPress v5.9.5 :: s2Member v221028 :: s2Member Pro v220421
Memory 9.72 MB :: Real Memory 12.00 MB :: Peak Memory 9.83 MB :: Real Peak Memory 12.00 MB
www.lotuscorps.org/wp/?s2member_paypal_notify=1
User-Agent: PayPal IPN ( https://www.paypal.com/ipn )
Array
(
[mc_gross] => 0.01
[invoice] => xxxxx
[protection_eligibility] => Eligible
[payer_id] => AHT5ZNMCBxxxx
[payment_date] => 08:20:11 Dec 05, 2022 PST
[payment_status] => Completed
[charset] => windows-1252
[first_name] => Rick
[option_selection1] => 1KM27588EL839xxxx
[option_selection2] => 76.150.85.xxx
[mc_fee] => 0.01
[notify_version] => 3.9
[custom] => www.lotuscorps.org
[payer_status] => verified
[business] => LotusCorps@earthlink.net
[quantity] => 1
[verify_sign] => AY1pnPAImd0oumuGpqHdCZkaT42CAuvszW3G25sq3UcKOAHWkuu.Cfzj
[payer_email] => xxxx@gmail.com
[option_name1] => Referencing Customer ID
[option_name2] => Customer IP Address
[txn_id] => 9KA41456RY030xxxx
[payment_type] => instant
[last_name] => xxxx
[receiver_email] => xxxx@earthlink.net
[payment_fee] => 0.01
[shipping_discount] => 0.00
[insurance_amount] => 0.00
[receiver_id] => BD3GLZWJ3xxxx
[txn_type] => web_accept
[item_name] => Member - Yearly Membership Dues
[discount] => 0.00
[mc_currency] => USD
[item_number] => 1::1 Y:
[residence_country] => US
[shipping_method] => Default
[transaction_subject] =>
[payment_gross] => 0.01
[ipn_track_id] => f303630ebxxxx
[option_selection] => 1KM27588EL839xxxx
[option_name] => Referencing Customer ID
[level] =>
[ccaps] =>
[s2member_paypal_proxy] =>
[s2member_log] => Array
(
[0] => IPN received on: Mon Dec 5, 2022 4:20:19 pm UTC
[1] => s2Member POST vars verified through a POST back to PayPal.
[2] => s2Member originating domain ($_SERVER["HTTP_HOST"]) validated.
[3] => Ignoring this IPN request. The txn_type/status does NOT require any action on the part of s2Member.
)

[subscr_gateway] => paypal

)


The PDT log gives this:

LOG ENTRY: Mon Dec 5th, 2022 @ precisely 4:20 pm UTC
PHP v8.0.25 :: WordPress v5.9.5 :: s2Member v221028 :: s2Member Pro v220421
Memory 9.67 MB :: Real Memory 10.00 MB :: Peak Memory 9.76 MB :: Real Peak Memory 12.00 MB
www.lotuscorps.org/wp/?s2member_paypal_return=1&s2member_paypal_return_tra=xxxx&amt=0.01&cc=USD&cm=www.lotuscorps.org&item_name=Member%20-%20Yearly%20Membership%20Dues&item_number=1%3A%3A1%20Y&st=Completed&tx=9KA41456RY030xxxx
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Array
(
[mc_gross] => 0.01
[invoice] => 638e1a220xxxx~76.150.85.xxx
[protection_eligibility] => Eligible
[payer_id] => AHT5ZNMCBxxxx
[tax] => 0.00
[payment_date] => 08:20:11 Dec 05, 2022 PST
[payment_status] => Completed
[charset] => windows-1252
[first_name] => Rick
[option_selection1] => 1KM27588EL839xxxx
[option_selection2] => 76.150.85.227
[mc_fee] => 0.01
[custom] => www.lotuscorps.org
[payer_status] => verified
[business] => xxxx@earthlink.net
[quantity] => 1
[payer_email] => xxxx@gmail.com
[option_name1] => Referencing Customer ID
[option_name2] => Customer IP Address
[txn_id] => 9KA41456RY030xxxx
[payment_type] => instant
[last_name] => xxxx
[receiver_email] => xxxx@earthlink.net
[payment_fee] => 0.01
[shipping_discount] => 0.00
[insurance_amount] => 0.00
[receiver_id] => BD3GLZWJ3xxxx
[txn_type] => web_accept
[item_name] => Member - Yearly Membership Dues
[discount] => 0.00
[mc_currency] => USD
[item_number] => 1::1 Y:
[residence_country] => US
[shipping_method] => Default
[handling_amount] => 0.00
[payment_gross] => 0.01
[shipping] => 0.00
[option_selection] => 1KM27588EL839xxxx
[option_name] => Referencing Customer ID
[level] =>
[ccaps] =>
[s2member_paypal_proxy] =>
[s2member_log] => Array
(
[0] => Return-Data received on: Mon Dec 5, 2022 4:20:19 pm UTC
[1] => s2Member POST vars verified through a POST back to PayPal.
[2] => s2Member originating domain ( $_SERVER["HTTP_HOST"] ) validated.
[3] => Unexpected txn_type/status. The txn_type/status did not match a required action.
[4] => Redirecting Customer to the Home Page (after displaying an error message).
)

[subscr_gateway] => paypal
[s2member_paypal_return_tra] => xxxx

)

Any help would be greatly appreciated.

I’ve found this is the same bug as documented at: Possible bug - IPN item handling since 221028?

I backdated to 2022-09 version and everything works fine.

Hi Rick,

Right, that’s a problem in v221028. Not everyone got it, but some did. You can upgrade to v221103 and it’d be fine.

:slight_smile:

I was getting the error when using the latest version. I’m going to wait until our yearly dues renewal is finished, and then I’ll go back and experiment with more recent versions.