latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

ERROR: Unable to verify $_SERVER["HTTP_HOST"]

Home Forums Community Forum ERROR: Unable to verify $_SERVER["HTTP_HOST"]

This topic contains 15 replies, has 3 voices. Last updated by  Cristián Lávaque 3 years, 9 months ago.

Topic Author Topic
Posted: Saturday Mar 9th, 2013 at 12:40 pm #44161
Damian Jones
Username: aegis

I have searched and read a lot of the others having this problem, no solutions I have seen, have been my problem.

can you please help me…

here is the URL returned(personal info swapped out):
http://mydomain.com/?s2member_pro_clickbank_return&s2member_paypal_return=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails&txn_type=web_accept&txn_id=4MV3LPAC&custom&mc_gross=47.00&mc_currency=USD&tax=0.00&payer_email=personalemail%40gmail.com&first_name=Damian&last_name=Jones&option_name1=Originating+Domain&option_selection1=mydomain.com&option_name2=Customer+IP+Address&option_selection2&item_number&item_name&s2member_paypal_proxy_verification=4361781901-av575f0meapd645476c5v14717e5bc87

To send them to clickbank, I have them click a button that sends them to a page, where I build the url on the fly:
I removed part of the PHP tags on purpose, not sure how this post will handle it…

[code]
[php

$_orderLink = “http://eb1.MyClickbankId.pay.clickbank.net/?cbskin=8335&s2_invoice=1%3AMyCustomTag&s2_desc=My+Product+Desc&s2_custom=mydomain.com&s2_customer_ip=” . $_SERVER[‘REMOTE_ADDR’] . “&s2_referencing=” . S2MEMBER_CURRENT_USER_SUBSCR_ID;

wp_redirect (c_ws_plugin__s2member_utils_urls::add_s2member_sig($_orderLink,””)) . exit;
/php]
[/code]

that sends them to the page with this url (after clickbank redirect):
https://ssl.clickbank.net/order/orderform.html?time=1362850304&vvvv=REMOVEDforSECURITY&item=eb1&cbskin=8335&vvar=cbskin%3D8335%26s2_invoice%3D1%3AMyCustomTag%26s2_desc%3DMy+Product+Desc%26s2_custom%3Dmydomain.com%26s2_customer_ip%3DREMOVEDforSecurity%26s2_referencing%3REMOVEDforSECURITY%26_s2member_sig%3D-REMOVEDforSECURITY-REMOVEDforSECURITY&oaref=REMOVEDforSECURITY.REMOVEDforSECURITY

and it has the right product, etc.

the s2_custom is in the string there…

here is the IPN Log for the test transaction (again, removing anything private):

[code]

LOG ENTRY: Fri Mar 8th, 2013 @ precisely 7:45 pm GMT
PHP v5.3.15 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 24.65 MB :: Real Memory 25.00 MB :: Peak Memory 24.79 MB :: Real Peak Memory 25.25 MB
mydomain.com/?s2member_pro_clickbank_notify=1
User-Agent: Jakarta Commons-HttpClient/3.1
array (
‘cprodtitle’ => ‘My Product Desc’,
‘ctranspaymentmethod’ => ‘TEST’,
‘cfuturepayments’ => ”,
‘ccustzip’ => ‘MyZip’,
‘ccustshippingzip’ => ‘MyZip’,
‘ccustemail’ => ‘personal_email@gmail.com’,
‘crebillstatus’ => ”,
‘ctransaffiliate’ => ”,
‘cupsellreceipt’ => ”,
‘corderamount’ => ‘4700’,
‘ccustcounty’ => ”,
‘ccurrency’ => ‘USD’,
‘ccustfirstname’ => ‘Damian’,
‘crebillamnt’ => ”,
‘ctransaction’ => ‘TEST_SALE’,
‘ccuststate’ => ‘OK’,
‘caccountamount’ => ‘4248’,
‘ctranspublisher’ => ‘Private’,
‘ctid’ => ”,
‘ccustshippingcountry’ => ‘US’,
‘cnextpaymentdate’ => ”,
‘cverify’ => ‘Private’,
‘cprocessedpayments’ => ”,
‘cprodtype’ => ‘STANDARD’,
‘ccustcc’ => ‘US’,
‘ccustshippingstate’ => ‘OK’,
‘ctransreceipt’ => ‘Private’,
‘ccustfullname’ => ‘Damian Jones’,
‘cvendthru’ => ‘s2member_pro_clickbank_return=1&s2_custom=mydomain.com&_s2member_sig=RemovedForSecurity-RemovedForSecurity&s2_desc=My+Product+Description&cbskin=8335&s2_invoice=1%3AMyCustomTag&s2_customer_ip=RemovedForSecurity&’,
‘ctransrole’ => ‘VENDOR’,
‘ccustaddr2’ => ”,
‘ccustaddr1’ => ”,
‘ccustcity’ => ”,
‘ccustlastname’ => ‘JONES’,
‘ctranstime’ => ‘RemovedForSecurity’,
‘cproditem’ => ‘eb1’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Fri Mar 8, 2013 7:45:10 pm GMT’,
1 => ‘s2Member POST vars verified with ClickBank®.’,
2 => ‘ClickBank® transaction identified as ( `SALE/STANDARD` ).’,
3 => ‘IPN reformulated. Piping through s2Member’s core/standard PayPal® processor as `txn_type` ( `web_accept` ).’,
4 => ‘Please check PayPal® IPN logs for further processing details.’,
),
‘s2vars’ =>
array (
),
)
[/code]

Please help me. I was needing to already get this website some traffic, but waiting until everything works properly.

This is the final step in getting it launched.

Thank you in advance for any assistance you can provide.
Richard
Damian’s Dad

List Of Topic Replies

Viewing 15 replies - 1 through 15 (of 15 total)
Author Replies
Author Replies
Posted: Monday Mar 11th, 2013 at 3:18 pm #44276
Damian Jones
Username: aegis

Anyone, know anything?

Thx,
Richard

Posted: Monday Mar 11th, 2013 at 7:50 pm #44290
Damian Jones
Username: aegis

also, why does the cbskin not pass through in your button code? That way I can use my template?

Posted: Monday Mar 11th, 2013 at 10:21 pm #44296
Eduan
Username: Eduan
Moderator

Hello Richard,

So the error you’re getting is ERROR: Unable to verify $_SERVER[“HTTP_HOST”] correct?

If that’s so, could you please paste the shortcode you’re using for your button here? Thanks!

– Eduan

Posted: Monday Mar 11th, 2013 at 10:51 pm #44302
Damian Jones
Username: aegis

I already did… see my first post.

Thanks
Richard

Posted: Monday Mar 11th, 2013 at 10:53 pm #44303
Damian Jones
Username: aegis

here:

$_orderLink = "http://eb1.MyClickbankId.pay.clickbank.net/?cbskin=8335&s2_invoice=1%3AMyCustomTag&s2_desc=My+Product+Desc&s2_custom=mydomain.com&s2_customer_ip=" . $_SERVER['REMOTE_ADDR'] . "&s2_referencing=" . S2MEMBER_CURRENT_USER_SUBSCR_ID;

wp_redirect (c_ws_plugin__s2member_utils_urls::add_s2member_sig($_orderLink,"")) . exit;

see first post for how I use it.

Richard

Posted: Tuesday Mar 12th, 2013 at 11:38 pm #44447
Damian Jones
Username: aegis

Please help me. I really, really, need this fixed… This is the last thing I have to do to launch this site. I won’t start any marketing on it until there will be no problems getting the orders through.

Please help.
It has been like 3 or 4 days.

Thank you.
Richard

Posted: Wednesday Mar 13th, 2013 at 11:01 pm #44567
Eduan
Username: Eduan
Moderator

I’m afraid I can’t provide any help with code like this, not because of policy, but because I can’t myself.

Have you tried using a normal shortcode? Or is there some reason that you need to use this custom code?

– Eduan

Posted: Thursday Mar 14th, 2013 at 2:17 am #44573
Damian Jones
Username: aegis

Yes, I clicked the link both ways, they are identical…

the short code produces the exact same code, see this page:

http://detoxingguru.com/test-button-gen
I have the first link, do the short code with the anchor=url
so it shows the url.

then I have the second one print the way the redirect works, but just print the url…
the only difference is that it produces the cbskin code…

the code is nearly identical… the signature is different but that is to be expected because it calls it with code and the short code calls it separately.

Anyhow, that is the test code.

Thank you for at least replying. I hope I get some help soon, I am desperate for this to get resolved.

Oh, and as far as why I do it that way, the Link in the URL is super long and weird, so, I do it like this, because I pass them through a link tracker, which tracks the clicks, so I know how many clicks are coming, then can measure that against how many orders, against how many page loads, etc.

It worked before, I did not change anything, so I don’t know what is going on.

Thx,
Richard

Posted: Thursday Mar 14th, 2013 at 2:37 am #44576
Damian Jones
Username: aegis

Ok, the weird thing, now I generated another test card, placed an order, it sent me back and had this message:

[ detoxingguru.com ] says…
Thank you! (you MUST check your email before proceeding).

* Note: It can take (up to 15 minutes) for Email Confirmation with important details. If you don’t receive email confirmation in the next 15 minutes, please contact Support.

I never got the email, so I clicked the return link again (into another new tab)
but then I seen that same error:

ERROR: Unable to verify $_SERVER[“HTTP_HOST”].
Please contact Support for assistance.

I don’t know why the first time it loaded(in a new tab), it seemed to have worked, but the email was never sent, and then when I did it again, it had the same error.

very strange.

I am going to try doing it directly from a short code instead of the way I am, I will add another reply with that results and post both the IPN logs in that response… so the support team, when they finally get to me will hopefully see the problem.

Thx,
Richard

Posted: Thursday Mar 14th, 2013 at 3:22 am #44577
Damian Jones
Username: aegis

Ok, this is crazy.

The code output is identical… the exception is that the signature is different, but still present…

the shortcode worked.

the way I did it, does not work.

But since the output code is identical, why does it not work?

It makes no since at all.

Here is the auto-return log:

(I changed some of the receipt and cbpop values for privacy, but everything else is ok, it is all made up info anyways)

LOG ENTRY: Thu Mar 14th, 2013 @ precisely 6:26 am GMT
PHP v5.3.22 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 24.67 MB :: Real Memory 25.00 MB :: Peak Memory 25.02 MB :: Real Peak Memory 25.25 MB
detoxingguru.com/?s2member_pro_clickbank_return=1&item=eb1&cbreceipt=3D2WAZV9&time=1363242195&cbpop=172CE90C&cbaffi=0&cname=Donald+Duck&cemail=donald.duck%40usmobilehelpers.com&ccountry=US&czip=74851&s2_invoice=1%3Aprivate_custom_tag&s2_p1&s2_p3&s2_desc=Detoxing+Guru+Course+Plus+Bonuses&s2_custom=detoxingguru.com&cbskin=3885&s2_customer_ip=0.0.0.1&_s2member_sig=1363242194-f2da9a5783e5c963e4139e48d25d384f
User-Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
array (
  'item' => 'eb1',
  'cbreceipt' => '3D2WAZV9',
  'time' => '1363242195',
  'cbpop' => '172CE90C',
  'cbaffi' => '0',
  'cname' => 'Donald Duck',
  'cemail' => 'donald.duck@usmobilehelpers.com',
  'ccountry' => 'US',
  'czip' => '74851',
  's2_invoice' => '1:private_custom_tag',
  's2_p1' => '',
  's2_p3' => '',
  's2_desc' => 'Detoxing Guru Course Plus Bonuses',
  's2_custom' => 'detoxingguru.com',
  'cbskin' => '3885',
  's2_customer_ip' => '0.0.0.1',
  '_s2member_sig' => '1363242194-f2da9a5783e5c963e4139e48d25d384f',
  's2member_log' => 
  array (
    0 => 'Return-Data received on: Thu Mar 14, 2013 6:26:03 am GMT',
    1 => 's2Member POST vars verified with ClickBank®.',
    2 => 'Sleeping for 5 seconds. Giving ClickBank® a chance to finalize processing.',
    3 => 'Awake. It\'s Thu Mar 14, 2013 6:26:08 am GMT. Processing will continue.',
    4 => 'Unable to obtain API vars. The ClickBank® API may NOT have data for this order yet. Or, your ClickBank® API Keys are NOT configured properly under `s2Member -› ClickBank® Options`.',
    5 => 'array (
  \'s2member_pro_clickbank_return\' => \'1\',
  \'item\' => \'eb1\',
  \'cbreceipt\' => \'3D2WAZV9\',
  \'time\' => \'1363242195\',
  \'cbpop\' => \'172CE90C\',
  \'cbaffi\' => \'0\',
  \'cname\' => \'Donald Duck\',
  \'cemail\' => \'donald.duck@usmobilehelpers.com\',
  \'ccountry\' => \'US\',
  \'czip\' => \'74851\',
  \'s2_invoice\' => \'1:private_custom_tag\',
  \'s2_p1\' => \'\',
  \'s2_p3\' => \'\',
  \'s2_desc\' => \'Detoxing Guru Course Plus Bonuses\',
  \'s2_custom\' => \'detoxingguru.com\',
  \'cbskin\' => \'3885\',
  \'s2_customer_ip\' => \'0.0.0.1\',
  \'_s2member_sig\' => \'1363242194-f2da9a5783e5c963e4139e48d25d384f\',
)',
    6 => 'Return-Data reformulated. Piping through s2Member\'s core/standard PayPal® processor with `proxy_use` ( `ty-email` ).',
    7 => 'Please check PayPal® RTN logs for further processing details.',
    8 => 'http://detoxingguru.com/?s2member_pro_clickbank_return&s2member_paypal_return=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails%2Cty-email&s2member_paypal_proxy_verification=1363242368-b13cd02c7561a1bf283ce922942e7864',
  ),
)

LOG ENTRY: Thu Mar 14th, 2013 @ precisely 6:32 am GMT
PHP v5.3.22 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 24.67 MB :: Real Memory 25.00 MB :: Peak Memory 25.02 MB :: Real Peak Memory 25.25 MB
detoxingguru.com/?s2member_pro_clickbank_return=1&item=eb1&cbreceipt=3D2WAZV9&time=1363242195&cbpop=172CE90C&cbaffi=0&cname=Donald+Duck&cemail=donald.duck%40usmobilehelpers.com&ccountry=US&czip=74851&s2_invoice=1%3Aprivate_custom_tag&s2_p1&s2_p3&s2_desc=Detoxing+Guru+Course+Plus+Bonuses&s2_custom=detoxingguru.com&cbskin=3885&s2_customer_ip=0.0.0.1&_s2member_sig=1363242194-f2da9a5783e5c963e4139e48d25d384f
User-Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
array (
  'item' => 'eb1',
  'cbreceipt' => '3D2WAZV9',
  'time' => '1363242195',
  'cbpop' => '172CE90C',
  'cbaffi' => '0',
  'cname' => 'Donald Duck',
  'cemail' => 'donald.duck@usmobilehelpers.com',
  'ccountry' => 'US',
  'czip' => '74851',
  's2_invoice' => '1:private_custom_tag',
  's2_p1' => '',
  's2_p3' => '',
  's2_desc' => 'Detoxing Guru Course Plus Bonuses',
  's2_custom' => 'detoxingguru.com',
  'cbskin' => '3885',
  's2_customer_ip' => '0.0.0.1',
  '_s2member_sig' => '1363242194-f2da9a5783e5c963e4139e48d25d384f',
  's2member_log' => 
  array (
    0 => 'Return-Data received on: Thu Mar 14, 2013 6:32:18 am GMT',
    1 => 's2Member POST vars verified with ClickBank®.',
    2 => 'Sleeping for 5 seconds. Giving ClickBank® a chance to finalize processing.',
    3 => 'Awake. It\'s Thu Mar 14, 2013 6:32:23 am GMT. Processing will continue.',
    4 => 'Order API variables have been obtained from ClickBank®.',
    5 => 'ClickBank® transaction identified as ( `SALE/STANDARD` ).',
    6 => 'Return-Data reformulated. Piping through s2Member\'s core/standard PayPal® processor as `txn_type` ( `web_accept` ).',
    7 => 'Please check PayPal® RTN logs for further processing details.',
    8 => 'http://detoxingguru.com/?s2member_pro_clickbank_return&s2member_paypal_return=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails&txn_type=web_accept&txn_id=3D2WAZV9&custom&mc_gross=47.00&mc_currency=USD&tax=0.00&payer_email=donald.duck%40usmobilehelpers.com&first_name=Donald&last_name=Duck&option_name1=Originating+Domain&option_selection1=detoxingguru.com&option_name2=Customer+IP+Address&option_selection2&item_number&item_name&s2member_paypal_proxy_verification=1363242743-d50fe88330b8bd28657239ae811ebb59',
  ),
  's2vars' => 
  array (
  ),
)

LOG ENTRY: Thu Mar 14th, 2013 @ precisely 6:34 am GMT
PHP v5.3.22 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 24.67 MB :: Real Memory 25.00 MB :: Peak Memory 25.02 MB :: Real Peak Memory 25.25 MB
detoxingguru.com/?s2member_pro_clickbank_return=1&item=eb1&cbreceipt=3D2WAZV9&time=1363242195&cbpop=172CE90C&cbaffi=0&cname=Donald+Duck&cemail=donald.duck%40usmobilehelpers.com&ccountry=US&czip=74851&s2_invoice=1%3Aprivate_custom_tag&s2_p1&s2_p3&s2_desc=Detoxing+Guru+Course+Plus+Bonuses&s2_custom=detoxingguru.com&cbskin=3885&s2_customer_ip=0.0.0.1&_s2member_sig=1363242194-f2da9a5783e5c963e4139e48d25d384f
User-Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
array (
  'item' => 'eb1',
  'cbreceipt' => '3D2WAZV9',
  'time' => '1363242195',
  'cbpop' => '172CE90C',
  'cbaffi' => '0',
  'cname' => 'Donald Duck',
  'cemail' => 'donald.duck@usmobilehelpers.com',
  'ccountry' => 'US',
  'czip' => '74851',
  's2_invoice' => '1:private_custom_tag',
  's2_p1' => '',
  's2_p3' => '',
  's2_desc' => 'Detoxing Guru Course Plus Bonuses',
  's2_custom' => 'detoxingguru.com',
  'cbskin' => '3885',
  's2_customer_ip' => '0.0.0.1',
  '_s2member_sig' => '1363242194-f2da9a5783e5c963e4139e48d25d384f',
  's2member_log' => 
  array (
    0 => 'Return-Data received on: Thu Mar 14, 2013 6:34:27 am GMT',
    1 => 's2Member POST vars verified with ClickBank®.',
    2 => 'Sleeping for 5 seconds. Giving ClickBank® a chance to finalize processing.',
    3 => 'Awake. It\'s Thu Mar 14, 2013 6:34:32 am GMT. Processing will continue.',
    4 => 'Order API variables have been obtained from ClickBank®.',
    5 => 'ClickBank® transaction identified as ( `SALE/STANDARD` ).',
    6 => 'Return-Data reformulated. Piping through s2Member\'s core/standard PayPal® processor as `txn_type` ( `web_accept` ).',
    7 => 'Please check PayPal® RTN logs for further processing details.',
    8 => 'http://detoxingguru.com/?s2member_pro_clickbank_return&s2member_paypal_return=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails&txn_type=web_accept&txn_id=3D2WAZV9&custom&mc_gross=47.00&mc_currency=USD&tax=0.00&payer_email=donald.duck%40usmobilehelpers.com&first_name=Donald&last_name=Duck&option_name1=Originating+Domain&option_selection1=detoxingguru.com&option_name2=Customer+IP+Address&option_selection2&item_number&item_name&s2member_paypal_proxy_verification=1363242872-61fef7364bac5368dfbee8510273a5fa',
  ),
  's2vars' => 
  array (
  ),
)

LOG ENTRY: Thu Mar 14th, 2013 @ precisely 6:42 am GMT
PHP v5.3.22 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 24.67 MB :: Real Memory 25.00 MB :: Peak Memory 25.02 MB :: Real Peak Memory 25.25 MB
detoxingguru.com/?s2member_pro_clickbank_return=1&item=eb1&cbreceipt=FBRZKETR&time=1363243303&cbpop=8630CFC0&cbaffi=0&cname=Mickey+Mouse&cemail=mickey.mouse%40usmobilehelpers.com&ccountry=US&czip=74851&s2_invoice=1%3Aprivate_custom_tag&s2_p1&s2_p3&s2_desc=Detoxing+Guru+Course+Plus+Bonuses&s2_custom=detoxingguru.com&s2_customer_ip=0.0.0.1&_s2member_sig=1363243260-640991754e7256a7305c28b9ce90b7ca
User-Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
array (
  'item' => 'eb1',
  'cbreceipt' => 'FBRZKETR',
  'time' => '1363243303',
  'cbpop' => '8630CFC0',
  'cbaffi' => '0',
  'cname' => 'Mickey Mouse',
  'cemail' => 'mickey.mouse@usmobilehelpers.com',
  'ccountry' => 'US',
  'czip' => '74851',
  's2_invoice' => '1:private_custom_tag',
  's2_p1' => '',
  's2_p3' => '',
  's2_desc' => 'Detoxing Guru Course Plus Bonuses',
  's2_custom' => 'detoxingguru.com',
  's2_customer_ip' => '0.0.0.1',
  '_s2member_sig' => '1363243260-640991754e7256a7305c28b9ce90b7ca',
  's2member_log' => 
  array (
    0 => 'Return-Data received on: Thu Mar 14, 2013 6:42:48 am GMT',
    1 => 's2Member POST vars verified with ClickBank®.',
    2 => 'Sleeping for 5 seconds. Giving ClickBank® a chance to finalize processing.',
    3 => 'Awake. It\'s Thu Mar 14, 2013 6:42:53 am GMT. Processing will continue.',
    4 => 'Order API variables have been obtained from ClickBank®.',
    5 => 'ClickBank® transaction identified as ( `SALE/RECURRING` ).',
    6 => 'Return-Data reformulated. Piping through s2Member\'s core/standard PayPal® processor as `txn_type` ( `subscr_signup` ).',
    7 => 'Please check PayPal® RTN logs for further processing details.',
    8 => 'http://detoxingguru.com/?s2member_pro_clickbank_return&s2member_paypal_return=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails&txn_type=subscr_signup&subscr_id&recurring=1&txn_id=FBRZKETR&custom=detoxingguru.com&period1&period3&mc_amount1=47.00&mc_amount3&mc_currency=USD&tax=0.00&payer_email=mickey.mouse%40usmobilehelpers.com&first_name=Mickey&last_name=Mouse&option_name1=Originating+Domain&option_selection1=detoxingguru.com&option_name2=Customer+IP+Address&option_selection2=0.0.0.1&item_number=1%3Aprivate_custom_tag&item_name=Detoxing+Guru+Course+Plus+Bonuses&s2member_paypal_proxy_verification=1363243373-170db56f2a176a07f8267f0d14ea26b3',
  ),
  's2vars' => 
  array (
    's2_invoice' => '1:private_custom_tag',
    's2_p1' => '',
    's2_p3' => '',
    's2_desc' => 'Detoxing Guru Course Plus Bonuses',
    's2_custom' => 'detoxingguru.com',
    's2_customer_ip' => '0.0.0.1',
    '_s2member_sig' => '1363243260-640991754e7256a7305c28b9ce90b7ca',
  ),
)

LOG ENTRY: Thu Mar 14th, 2013 @ precisely 6:43 am GMT
PHP v5.3.22 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 24.67 MB :: Real Memory 25.00 MB :: Peak Memory 25.02 MB :: Real Peak Memory 25.25 MB
detoxingguru.com/?s2member_pro_clickbank_return=1&item=eb1&cbreceipt=FBRZKETR&time=1363243303&cbpop=8630CFC0&cbaffi=0&cname=Mickey+Mouse&cemail=mickey.mouse%40usmobilehelpers.com&ccountry=US&czip=74851&s2_invoice=1%3Aprivate_custom_tag&s2_p1&s2_p3&s2_desc=Detoxing+Guru+Course+Plus+Bonuses&s2_custom=detoxingguru.com&s2_customer_ip=0.0.0.1&_s2member_sig=1363243260-640991754e7256a7305c28b9ce90b7ca
User-Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
array (
  'item' => 'eb1',
  'cbreceipt' => 'FBRZKETR',
  'time' => '1363243303',
  'cbpop' => '8630CFC0',
  'cbaffi' => '0',
  'cname' => 'Mickey Mouse',
  'cemail' => 'mickey.mouse@usmobilehelpers.com',
  'ccountry' => 'US',
  'czip' => '74851',
  's2_invoice' => '1:private_custom_tag',
  's2_p1' => '',
  's2_p3' => '',
  's2_desc' => 'Detoxing Guru Course Plus Bonuses',
  's2_custom' => 'detoxingguru.com',
  's2_customer_ip' => '0.0.0.1',
  '_s2member_sig' => '1363243260-640991754e7256a7305c28b9ce90b7ca',
  's2member_log' => 
  array (
    0 => 'Return-Data received on: Thu Mar 14, 2013 6:43:27 am GMT',
    1 => 's2Member POST vars verified with ClickBank®.',
    2 => 'Sleeping for 5 seconds. Giving ClickBank® a chance to finalize processing.',
    3 => 'Awake. It\'s Thu Mar 14, 2013 6:43:32 am GMT. Processing will continue.',
    4 => 'Order API variables have been obtained from ClickBank®.',
    5 => 'ClickBank® transaction identified as ( `SALE/RECURRING` ).',
    6 => 'Return-Data reformulated. Piping through s2Member\'s core/standard PayPal® processor as `txn_type` ( `subscr_signup` ).',
    7 => 'Please check PayPal® RTN logs for further processing details.',
    8 => 'http://detoxingguru.com/?s2member_pro_clickbank_return&s2member_paypal_return=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails&txn_type=subscr_signup&subscr_id&recurring=1&txn_id=FBRZKETR&custom=detoxingguru.com&period1&period3&mc_amount1=47.00&mc_amount3&mc_currency=USD&tax=0.00&payer_email=mickey.mouse%40usmobilehelpers.com&first_name=Mickey&last_name=Mouse&option_name1=Originating+Domain&option_selection1=detoxingguru.com&option_name2=Customer+IP+Address&option_selection2=0.0.0.1&item_number=1%3Aprivate_custom_tag&item_name=Detoxing+Guru+Course+Plus+Bonuses&s2member_paypal_proxy_verification=1363243412-7037be5e33d7541954b28f31d433d363',
  ),
  's2vars' => 
  array (
    's2_invoice' => '1:private_custom_tag',
    's2_p1' => '',
    's2_p3' => '',
    's2_desc' => 'Detoxing Guru Course Plus Bonuses',
    's2_custom' => 'detoxingguru.com',
    's2_customer_ip' => '0.0.0.1',
    '_s2member_sig' => '1363243260-640991754e7256a7305c28b9ce90b7ca',
  ),
)

It is very strange that the same code does not work the way I send them…

The OTO sends the orders the same way…

and when I placed that test order, same thing, Server HTTP_HOST error…

So it seems to be not working, even though the code is fine.

I have to do it this way because I use a script that times out and if they click “OK” on the timeout, it will send them to the order page, so the javascript could not work because it cannot read the short code. So, I pass them through the redirect page the same way.

since the code works, why does it not work?

here is the url clickbank has, the first one is what they have from my code, the second from the shortcode:
https://ssl.clickbank.net/order/orderform.html?time=1363245601&vvvv=756b6e646f6974&item=eb1&cbskin=3885&vvar=cbskin%3D3885%26s2_invoice%3D1%3Aprivate_custom_tag%26s2_desc%3DDetoxing+Guru+Course+Plus+Bonuses%26s2_custom%3Ddetoxingguru.com%26s2_customer_ip%3D72.215.4.138%26s2_referencing%26_s2member_sig%3D1363243260-5b8c354141a253b258744eae7f162fab

https://ssl.clickbank.net/order/orderform.html?time=1363245574&vvvv=756b6e646f6974&item=eb1&vvar=s2_invoice%3D1%3Aprivate_custom_tag%26s2_p1%26s2_p3%26s2_desc%3DDetoxing+Guru+Course+Plus+Bonuses%26s2_custom%3Ddetoxingguru.com%26s2_customer_ip%3D72.215.4.138%26_s2member_sig%3D1363243260-640991754e7256a7305c28b9ce90b7ca

I even tried a test order without the cbskin in the url… same thing. that is the only difference in the URLs…
( I changed the tag to private_custom_tag )

Any ideas?
This is killing me.

Thanks,
Richard

Posted: Thursday Mar 14th, 2013 at 9:51 am #44608

Hi Damian.

[hilite pre_code]
$_orderLink = "http://eb1.MyClickbankId.pay.clickbank.net/?cbskin=8335&s2_invoice=1%3AMyCustomTag&s2_desc=My+Product+Desc&s2_custom=mydomain.com&s2_customer_ip=" . $_SERVER['REMOTE_ADDR'] . "&s2_referencing=" . S2MEMBER_CURRENT_USER_SUBSCR_ID;
wp_redirect (c_ws_plugin__s2member_utils_urls::add_s2member_sig($_orderLink,"")) . exit;
[/hilite]

It’d be better to use the shortcode with URL output. [hilite path]Dashboard -› s2Member® -› ClickBank® Buttons -› Shortcode Attributes -> output[/hilite]

[hilite pre_code]
$_orderLink = do_shortcode('[[s2Member-Pro-ClickBank-Button ... output="url" /]]');
wp_redirect($_orderLink); exit;
[/hilite]

Replace the shortcode with our own. [hilite path]Dashboard -› s2Member® -› ClickBank® Buttons[/hilite]

Here’s a hack that uses that in a must-use plugin: http://www.s2member.com/forums/topic/using-clickbank-and-paypal/#post-11438

Posted: Thursday Mar 14th, 2013 at 7:13 pm #44655
Damian Jones
Username: aegis

Awesome!! Ok, how can I put the cbskin in the shortcode? so that clickbank uses my template?

Thank you much!
Richard
(Damian’s Dad)

Posted: Sunday Mar 17th, 2013 at 11:59 am #44985

The way you could add the cbskin variable would probably be with a str_replace of the URL output of the shortcode. http://php.net/str_replace

I don’t know if the s2Member integration with ClickBank will support cbskins, I haven’t tried it. Please let us know if it works, I hope it does. :)

Posted: Wednesday Mar 20th, 2013 at 5:57 pm #45255
Damian Jones
Username: aegis

Actually, I got it to work like this, using the fix:

$_orderLink = do_shortcode('[s2Member-Pro-ClickBank-Button ... output="url" /]');
wp_redirect($_orderLink . "&cbskin=8888"); exit;

and that worked ;)

Thank you all.
I appreciate it!
Richard

Posted: Friday Mar 22nd, 2013 at 1:14 am #45441

Great idea! And thanks for the update, I’m glad you got it working. :)

Viewing 15 replies - 1 through 15 (of 15 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.