Page 1 of 1

Please help: invalid profile ID 11552

PostPosted: April 12th, 2011, 4:54 pm
by lucjager
Sinds a few days i'm getting this error:

Can you please help me?
// paypal-pro-api log file//

-------- Output string/vars: ( Sat Nov 6, 2010 7:20:44 pm UTC ) --------
TIMESTAMP=2010%2d11%2d06T19%3a20%3a53Z&CORRELATIONID=xxxxxxxxxxxxx&ACK=Failure&VERSION=63%2e0&BUILD=1584437&L_ERRORCODE0=11552&L_SHORTMESSAGE0=Invalid%20profile%20ID&L_LONGMESSAGE0=The%20profile%20ID%20is%20invalid&L_SEVERITYCODE0=Error
array (
'TIMESTAMP' => '2010-11-06T19:20:53Z',
'CORRELATIONID' => 'xxxxxxxxxxxxx',
'ACK' => 'Failure',
'VERSION' => '63.0',
'BUILD' => '1584437',
'L_ERRORCODE0' => '11552',
'L_SHORTMESSAGE0' => 'Invalid profile ID',
'L_LONGMESSAGE0' => 'The profile ID is invalid',
'L_SEVERITYCODE0' => 'Error',
'__error' => 'Error# 11552. Invalid profile ID. The profile ID is invalid.',
)

Re: Please help: nvalid profile ID 11552

PostPosted: April 12th, 2011, 5:32 pm
by Cristián Lávaque
Hi Luc.

Was it working well before? What changes have you made to your PayPal or s2Member settings? Does it happen with all transactions or only some? Do they have something in common?

Any extra information you could give will help.

Re: Please help: nvalid profile ID 11552

PostPosted: April 12th, 2011, 5:35 pm
by lucjager
Nothing really changed pnly updated s2member, itt occurs on all the froms..

Re: Please help: nvalid profile ID 11552

PostPosted: April 12th, 2011, 8:04 pm
by Jason Caldwell
Hi Luc. In your log file, can you please grab the set of "Input String Vars" that immediately precede that section? Feel free to xxxx any personally identifiable information before posting it.

Re: Please help: nvalid profile ID 11552

PostPosted: April 13th, 2011, 4:42 am
by lucjager
sorry the invalidprofile id was because of the test account from another old log..

but i still have this problem: after payment in paypal nothing happens it just returns to the registration page and no money has been written of or account has been created....

https://www.xxxxxxxxxx.org/lowrate/?s2m ... xxxxxxxxxx

this is from the api log

http://www.xxxxxxx.org/lowrate/
Code: Select all
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27
-------- Input vars: ( Wed Apr 13, 2011 9:38:58 am UTC ) --------
array (
  'METHOD' => 'SetExpressCheckout',
  'RETURNURL' => 'https://www.xxxxxx.org/lowrate/?s2member_paypal_xco=s2member_pro_paypal_checkout_return',
  'CANCELURL' => 'https://www.xxxxxx.org/lowrate/?s2member_paypal_xco=s2member_pro_paypal_checkout_cancel',
  'PAGESTYLE' => 'xxxxxx',
  'NOSHIPPING' => '1',
  'ALLOWNOTE' => '0',
  'PAYMENTREQUEST_0_PAYMENTACTION' => 'Sale',
  'PAYMENTREQUEST_0_DESC' => '1 yearMembership € 15,-',
  'PAYMENTREQUEST_0_CUSTOM' => 'www.xxxxxx.xxx',
  'PAYMENTREQUEST_0_CURRENCYCODE' => 'EUR',
  'PAYMENTREQUEST_0_ITEMAMT' => '15.00',
  'PAYMENTREQUEST_0_TAXAMT' => '0.00',
  'PAYMENTREQUEST_0_AMT' => '15.00',
  'L_PAYMENTREQUEST_0_NAME0' => '1 year Membership € 15,-',
  'L_PAYMENTREQUEST_0_NUMBER0' => '1::262 D',
  'L_PAYMENTREQUEST_0_AMT0' => '15.00',
  'VERSION' => '63.0',
  'USER' => 'XXX',
  'PWD' => 'XXX',
  'SIGNATURE' => 'XXX',
)
-------- Output string/vars: ( Wed Apr 13, 2011 9:38:59 am UTC ) --------
TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx&TIMESTAMP=2011%2d04%2d13T09%3a38%3a59Z&CORRELATIONID=xxxxxxxxxxxxxxx&ACK=Success&VERSION=63%2e0&BUILD=1838679
array (
  'TOKEN' => 'xxxxxxxxxxxxxxxxxxxxxxxx',
  'TIMESTAMP' => '2011-04-13T09:38:59Z',
  'CORRELATIONID' => 'xxxxxxxxxxxxx',
  'ACK' => 'Success',
  'VERSION' => '63.0',
  'BUILD' => '1838679',
)

Re: Please help: nvalid profile ID 11552

PostPosted: April 15th, 2011, 3:58 pm
by Jason Caldwell
Investigating now.

Re: Please help: nvalid profile ID 11552

PostPosted: April 15th, 2011, 4:19 pm
by Jason Caldwell
Alright, I'm sorry for the delay Luc; it's been crazy here the last few days.

In this log entry, s2Member is redirecting a Customer through PayPal Express Checkout successfully, but when the Customer returns from checkout, they are just getting the same checkout form all over again, is that correct? If so, then yes, something is definitely wrong.

I can confirm that this functionality DOES work as expected ( just tested with s2Member Pro v1.5.8 ).

It almost seems like your site is not accepting $_GET vars in the query string after checkout is completed. For instance, this URL you provided contains variables that s2Member needs access to. If your server is configured in some way that is limiting s2Member's ability to read $_GET vars in the query string, you might have this problem.
Code: Select all
https://www.xxxxxxxx.org/lowrate/?s2member_paypal_xco=s2member_pro_paypal_checkout_return&token=EC-xxxxxxxxxxxxxx&PayerID=xxxxxxxxxxxxxx

If this problem continues, please email me a Dashboard login and FTP access; we'll be happy to have a look for you. Also, what version of s2Member Pro are you running?

Re: Please help: nvalid profile ID 11552

PostPosted: April 15th, 2011, 4:23 pm
by lucjager
It runs the latest version, and the problem only occurs with the pro forms.. Not with the free buttons...

The explanation you gave is the problem because the server doesnt get the variables or something..

Re: Please help: nvalid profile ID 11552

PostPosted: April 18th, 2011, 3:23 pm
by Jason Caldwell
Hi Luc. Sorry, just got to this, but I've been unable to locate the details that you emailed. Can you please send them again through this contact form? http://www.s2member.com/contact/

~ Thanks for your patience.

Re: Please help: nvalid profile ID 11552

PostPosted: April 18th, 2011, 4:40 pm
by Jason Caldwell
Got it this time. Thanks.
I'll be taking a look shortly.

Re: Please help: nvalid profile ID 11552

PostPosted: April 18th, 2011, 6:53 pm
by Jason Caldwell
90% Resolved

Investigation completed.
~ My findings are listed below.

I verified that $_GET vars are NOT the issue.

Instead, it seems that you may have another plugin on your site that is interfering with the WordPress core framework functions get_transient() and set_transient(). On your installation, nothing happens upon return from checkout, because the temporary Express Checkout TOKEN that s2Member stores as a WordPress transient value is no longer available. This is not normal, and my guess is that another plugin you're running is somehow filtering and/or discarding the Express Checkout Token ( i.e. the Transient database entry ) long before it should.

This is a plugin conflict.

Suggestion resolution.
You already have the PHP Execution plugin installed ( so you're good there ).
I've created a Test Page on your site that reproduces this bug on your installation.
Inside the Test Page that I created ( it's a Draft ), I've added this code.
Code: Select all
<?php
$array 
= array(1,3,4);
$token = "ExpressCheckoutToken";
set_transient("s2m_".md5("s2member_transient_express_checkout_".$token), $array, 10800);
print_r(get_transient("s2m_".md5("s2member_transient_express_checkout_".$token)));
?>
Upon previewing this page, you should see: array(1,2,3).

Now, to complete the test, comment this line out:
Code: Select all
<?php
$array 
= array(1,3,4);
$token = "ExpressCheckoutToken";
// set_transient("s2m_".md5("s2member_transient_express_checkout_".$token), $array, 10800);
print_r(get_transient("s2m_".md5("s2member_transient_express_checkout_".$token)));
?>
Preview the page again, you should still see: array(1,2,3). If you don't still see this, and right now, you won't, because of this bug on your installation; then it means something else is discarding the Transient value when it should NOT be. So to find the bug, try disabling other plugins one at a time until this test succeeds; and you consistently see: array(1,2,3), even with the line commented out.

I would start by eliminating any caching plugins, as these would be the most likely culprits.
Not always, but it might be a good place to start.

Re: Please help: nvalid profile ID 11552

PostPosted: April 19th, 2011, 3:27 am
by lucjager
Hi Jason,

thanks for your reply, but unlucky nothing worked very well so i decided to reinstall wp 3.1.1 and now everything works aggain :D

*ps can you remove this topic because of the website data?

thanks,

Luc

Re: Please help: nvalid profile ID 11552

PostPosted: April 19th, 2011, 12:17 pm
by Cristián Lávaque
I'm glad you solved it, Luc. :)

I xxxx'ed out several things, let me know if I missed anything.