Problem with payment and Admin error
-
Hi
Yesterday I had a member try and sign up for a yearly subscription on my site however he was met with the following error (as he told me in an email)
Error: Unable to modify Subscription
Please contact Support for assistanceThe existing User Id is associated with an Administrator. Stopping here. Othewise an Administrator could lose access.
Please make sure that you are NOT logged in as an Administrator while testingThe button code is the following
[s2Member-PayPal-Button level=”4″ ccaps=”” desc=”Yearly Service / £99.99 per year” ps=”MySiteName” lc=”” cc=”GBP” dg=”0″ ns=”1″ custom=”www.mydomain.com” ta=”0″ tp=”0″ tt=”D” ra=”99.99″ rp=”1″ rt=”Y” rr=”1″ rrt=”” rra=”0″ image=”http://www.mydomain.com/images/buy-now.png” output=”button” /]
I checked the PayPal API log and I have the following messages related to this member.
One thing I have noticed is that the IP address is being logged is MY IP address (e.g my work PC – not my home PC or Server IP but my works gateway server), I find this very strange and don’t know how this could happen unless you have some sort of shared memory/caching going on that has confused things.
I do run WP-Super-Cache and also I am behind Cloudflare. However this has not prevented OTHER customers from signing up, or recurring payments from other customers.
I do have the Cloudflare.mod module installed which replaces the original users IP address in my Apache log file the CloudFlare WordPress plugin that does the same to help certain WordPress plugins such as Akismet by replacing the CloudFlare reverse proxy IP that traffic comes through on with the original users IP as it is passed along in X-Forwarded-For and CF-CONNECTING-IP headers.
However I have had NO problems before accepting payments with either WP Super Cache OR CloudFlare enabled so I am not sure why this has happened.
I have provided you with the output of the gateway-core-ipn.log log file that relates to first a customer whose recurring payment for this month went through without a problem a few days before so you can see it has worked and then this problematic customers references.
Nothing on the server has changed in between these two dates.
All identifying information has been replaced with XXXX.
However as I said before the one thing I noticed was that this customers IP was the same as my work IP address.
This is an example of someone’s recurring payment that went through correctly without any problems…
LOG ENTRY: Sat Jun 20th, 2015 @ precisely 5:46 am UTC
PHP v5.2.6-1+lenny16 :: WordPress v4.2.2 :: s2Member v150311
Memory 61.42 MB :: Real Memory 61.75 MB :: Peak Memory 61.45 MB :: Real Peak Memory 61.75 MB
http://www.mydomain.com/?s2member_paypal_notify=1
User-Agent: PayPal IPN ( https://www.paypal.com/ipn )
array (
‘mc_gross’ => ‘14.99’,
‘invoice’ => ‘5584fd7bdd666~83.218.116.68’,
‘protection_eligibility’ => ‘Ineligible’,
‘payer_id’ => ‘WEHTY9GMBU7XG’,
‘payment_date’ => ’22:45:11 Jun 19, 2015 PDT’,
‘payment_status’ => ‘Completed’,
‘charset’ => ‘windows-1252’,
‘first_name’ => ‘XXXX’,
‘option_selection1’ => ‘121’,
‘option_selection2’ => ‘83.218.116.68’,
‘mc_fee’ => ‘0.78’,
‘notify_version’ => ‘3.8’,
‘subscr_id’ => ‘I-XXXXXXXXXXXX’,
‘custom’ => ‘www.mydomain.com’,
‘payer_status’ => ‘verified’,
‘business’ => ‘admin@mydomain.com’,
‘verify_sign’ => ‘AOAcaeKrixYeuawaa8ie2UKDeXsAAGcG5SLuIZ5KOd99rQRt6gclrYcg’,
‘payer_email’ => ‘some_other_paying_customer_who_worked@gmail.com’,
‘option_name1’ => ‘Referencing Customer ID’,
‘option_name2’ => ‘Customer IP Address’,
‘txn_id’ => ‘7RW206768S836533E’,
‘payment_type’ => ‘instant’,
‘last_name’ => ‘XXXX’,
‘receiver_email’ => ‘admin@mydomain.com’,
‘payment_fee’ => ”,
‘receiver_id’ => ‘WBQGEG6EZJZ28’,
‘txn_type’ => ‘subscr_payment’,
‘item_name’ => ‘Monthly Service / £14.99 per month’,
‘mc_currency’ => ‘GBP’,
‘item_number’ => ‘3’,
‘residence_country’ => ‘US’,
‘transaction_subject’ => ‘Monthly Service / £14.99 per month’,
‘payment_gross’ => ”,
‘ipn_track_id’ => ‘4ecfb4c6eebc2’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Sat Jun 20, 2015 5:45:46 am UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal.’,
2 => ‘s2Member originating domain ($_SERVER["HTTP_HOST"]
) validated.’,
3 => ‘s2Membertxn_type
identified as (subscr_payment|recurring_payment
).’,
4 => ‘Sleeping for 15 seconds. Waiting for a possible (subscr_signup|subscr_modify|recurring_payment_profile_created
).’,
5 => ‘Awake. It\’s Sat Jun 20, 2015 5:46:01 am UTC. s2Membertxn_type
identified as (subscr_payment|recurring_payment
).’,
6 => ‘Updated Payment Times for this Member.’,
),
‘subscr_gateway’ => ‘paypal’,
‘subscr_baid’ => ‘I-XXXXXXXXXXXX’,
‘subscr_cid’ => ‘I-XXXXXXXXXXXX’,
‘ccaps’ => NULL,
‘level’ => ‘3’,
‘ip’ => ‘XX.XX.105.24’,
‘currency’ => ‘GBP’,
‘currency_symbol’ => ‘£’,
)This is the entries for the person who failed with MY WORK IP ADDRESS logged as their own…..
LOG ENTRY: Mon Jun 22nd, 2015 @ precisely 7:43 pm UTC
PHP v5.2.6-1+lenny16 :: WordPress v4.2.2 :: s2Member v150311
Memory 61.99 MB :: Real Memory 63.00 MB :: Peak Memory 62.63 MB :: Real Peak Memory 63.00 MB
http://www.mydomain.com/?s2member_paypal_notify=1
User-Agent: PayPal IPN ( https://www.paypal.com/ipn )
array (
‘txn_type’ => ‘subscr_signup’,
‘subscr_id’ => ‘I-XXXXXXXXXXXX’,
‘last_name’ => ‘XXXX’,
‘option_selection1’ => ‘1’,
‘option_selection2’ => ‘MY.WORK.IP.ADDRESS’,
‘residence_country’ => ‘GB’,
‘mc_currency’ => ‘GBP’,
‘item_name’ => ‘Yearly Service / £99.99 per year’,
‘business’ => ‘admin@mydomain.com’,
‘recurring’ => ‘99.99’,
‘verify_sign’ => ‘ARHdMzuVLYbWTYeJKwRk1ytpxtIeAllQwLx7S0V7zwkPjqfj20f5hn4-‘,
‘payer_status’ => ‘verified’,
‘payer_email’ => ‘xxxx@yahoo.com’,
‘first_name’ => ‘xxxx’,
‘receiver_email’ => ‘admin@mydomain.com’,
‘option_name1’ => ‘Referencing Customer ID’,
‘payer_id’ => ’63KKZTJR37HZY’,
‘invoice’ => ’54d117d978f64~MY.WORK.IP.ADDRESS’,
‘option_name2’ => ‘Customer IP Address’,
‘reattempt’ => ‘1’,
‘item_number’ => ‘4’,
‘payer_business_name’ => ‘XXXX XXXX’,
‘subscr_date’ => ’12:43:05 Jun 22, 2015 PDT’,
‘custom’ => ‘www.mydomain.com’,
‘charset’ => ‘windows-1252’,
‘notify_version’ => ‘3.8’,
‘period3’ => ‘1 Y’,
‘mc_amount3’ => ‘99.99’,
‘ipn_track_id’ => ‘d404f893bd435’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Mon Jun 22, 2015 7:43:40 pm UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal.’,
2 => ‘s2Member originating domain ($_SERVER["HTTP_HOST"]
) validated.’,
3 => ‘s2Membertxn_type
identified as (web_accept|subscr_signup
).’,
4 => ‘s2Membertxn_type
identified as (web_accept|subscr_signup
) w/ update vars.’,
5 => ‘Unable to modify Subscription. The existing User ID is associated with an Administrator. Stopping here. Otherwise, an Administrator could lose access.’,
),
‘subscr_gateway’ => ‘paypal’,
‘subscr_baid’ => ‘I-XXXXXXXXXXXX’,
‘subscr_cid’ => ‘I-XXXXXXXXXXXX’,
‘eotper’ => NULL,
‘ccaps’ => NULL,
‘level’ => ‘4’,
‘ip’ => ‘MY.WORK.IP.ADDRESS’,
‘period1’ => ‘0 D’,
‘mc_amount1’ => ‘0.00’,
‘initial_term’ => ‘0 D’,
‘initial’ => ‘99.99’,
‘regular’ => ‘99.99’,
‘regular_term’ => ‘1 Y’,
‘currency’ => ‘GBP’,
‘currency_symbol’ => ‘£’,
)LOG ENTRY: Mon Jun 22nd, 2015 @ precisely 7:43 pm UTC
PHP v5.2.6-1+lenny16 :: WordPress v4.2.2 :: s2Member v150311
Memory 62.48 MB :: Real Memory 63.75 MB :: Peak Memory 62.73 MB :: Real Peak Memory 63.75 MB
http://www.mydomain.com/?s2member_paypal_notify=1
User-Agent: PayPal IPN ( https://www.paypal.com/ipn )
array (
‘mc_gross’ => ‘99.99’,
‘invoice’ => ’54d117d978f64~MY.WORK.IP.ADDRESS’,
‘protection_eligibility’ => ‘Ineligible’,
‘payer_id’ => ’63KKZTJR37HZY’,
‘payment_date’ => ’12:43:07 Jun 22, 2015 PDT’,
‘payment_status’ => ‘Completed’,
‘charset’ => ‘windows-1252’,
‘first_name’ => ‘xxxx’,
‘option_selection1’ => ‘1’,
‘option_selection2’ => ‘MY.WORK.IP.ADDRESS’,
‘mc_fee’ => ‘3.60’,
‘notify_version’ => ‘3.8’,
‘subscr_id’ => ‘I-XXXXXXXXXXXX’,
‘custom’ => ‘www.mydomain.com’,
‘payer_status’ => ‘verified’,
‘business’ => ‘admin@mydomain.com’,
‘verify_sign’ => ‘AgeQwfdW9musYPRVT4zufJ4cF81iA0VfrSb5NNuROWINWBZwrFPrpBGX’,
‘payer_email’ => ‘xxxx@yahoo.com’,
‘option_name1’ => ‘Referencing Customer ID’,
‘option_name2’ => ‘Customer IP Address’,
‘txn_id’ => ‘5DA94764UN7913228’,
‘payment_type’ => ‘instant’,
‘payer_business_name’ => ‘xxxx XXXX’,
‘last_name’ => ‘XXXX’,
‘receiver_email’ => ‘admin@mydomain.com’,
‘payment_fee’ => ”,
‘receiver_id’ => ‘WBQGEG6EZJZ28’,
‘txn_type’ => ‘subscr_payment’,
‘item_name’ => ‘Yearly Service / £99.99 per year’,
‘mc_currency’ => ‘GBP’,
‘item_number’ => ‘4’,
‘residence_country’ => ‘GB’,
‘transaction_subject’ => ‘Yearly Service / £99.99 per year’,
‘payment_gross’ => ”,
‘ipn_track_id’ => ‘d404f893bd435’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Mon Jun 22, 2015 7:43:39 pm UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal.’,
2 => ‘s2Member originating domain ($_SERVER["HTTP_HOST"]
) validated.’,
3 => ‘s2Membertxn_type
identified as (subscr_payment|recurring_payment
).’,
4 => ‘Sleeping for 15 seconds. Waiting for a possible (subscr_signup|subscr_modify|recurring_payment_profile_created
).’,
5 => ‘Awake. It\’s Mon Jun 22, 2015 7:43:54 pm UTC. s2Membertxn_type
identified as (subscr_payment|recurring_payment
).’,
6 => ‘Skipping this IPN response, for now. The Subscr. ID is not associated with a registered Member.’,
7 => ‘Re-generating. This IPN will go into a Transient Queue; and be re-processed during registration.’,
),
‘subscr_gateway’ => ‘paypal’,
‘subscr_baid’ => ‘I-XXXXXXXXXXXX’,
‘subscr_cid’ => ‘I-XXXXXXXXXXXX’,
‘ccaps’ => NULL,
‘level’ => ‘4’,
‘ip’ => ‘MY.WORK.IP.ADDRESS’,
‘currency’ => ‘GBP’,
‘currency_symbol’ => ‘£’,
)LOG ENTRY: Tue Jun 23rd, 2015 @ precisely 7:42 am UTC
PHP v5.2.6-1+lenny16 :: WordPress v4.2.2 :: s2Member v150311
Memory 59.56 MB :: Real Memory 59.75 MB :: Peak Memory 59.62 MB :: Real Peak Memory 59.75 MB
http://www.mydomain.com/?s2member_paypal_notify=1
User-Agent: Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)
array (
‘s2member_log’ =>
array (
0 => ‘Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.’,
1 => ‘Please see this KB article:http://www.s2member.com/kb/server-scanner/
. We suggest that you run the s2Member Server Scanner.’,
2 => ‘array (
\’s2member_paypal_notify\’ => \’1\’,
)’,
),
)I have checked with PayPal and the IPN messaging is enabled and working
I run my own server which can access PayPal with CURL/WordPresses HTTP object/FOpen/File_get_contents/FSockOpen etc.
Thanks for your help
- The topic ‘Problem with payment and Admin error’ is closed to new replies.