Page 1 of 1

No registration email being sent after checkout with ccbill

PostPosted: December 20th, 2011, 6:45 am
by Philly
Hello,

I'm hoping someone can help me.

I'm using ccbill for payment processing and everything works fine except when the user is returned to the website no email is being sent with a registration link.

One possible reason is that there is no paypal-ipn.log being created for the event but there is ccbill-ipn.log, ccbill-rtn.log and paypal-rtn.log files being created with no obvious issues.

my ccbill-ipn.log states: (Note "Please check PayPal® IPN logs for further processing details" there is no further details in that log)

PHP v5.3.8 :: WordPress® v3.2.1 :: s2Member® v111216 :: s2Member® Pro v111216
Memory 27.53 MB :: Real Memory 27.75 MB :: Peak Memory 27.62 MB :: Real Peak Memory 27.75 MB
xxxxxxx.com/?s2member_pro_ccbill_notify=1
User-Agent:
array (
'customer_fname' => 'name',
'customer_lname' => 'name,
'email' => 'email@email.com',
'username' => '',
'password' => '',
'productDesc' => '',
'price' => '£2.99 for 2 days',
'subscription_id' => '0311354201000000589',
'denialId' => '',
'clientAccnum' => 'xxxxxx',
'clientSubacc' => '0000',
'address1' => 'line 1',
'city' => 'l',
'state' => '',
'country' => '',
'phone_number' => '',
'zipcode' => '',
'start_date' => '2011-12-20 03:18:46',
'referer' => '',
'ccbill_referer' => '',
'affiliate' => '',
'reservationId' => '',
'referringUrl' => 'http://xxxxxxx.com/join/',
'reasonForDecline' => '',
'reasonForDeclineCode' => '',
'formName' => '146cc',
'cardType' => 'VISA',
'responseDigest' => '9abfa56f498467a987cc8c3c9bff667a',
's2_desc' => '2 Days membership',
's2_customer_ip' => '86.14.153.64',
's2_invoice' => '1::2 D',
's2_custom' => 'xxxxxxx.com',
's2_p1' => '0 D',
's2_p3' => '2 D',
'typeId' => '0',
'initialPrice' => '2.99',
'initialPeriod' => '2',
'recurringPrice' => '0',
'recurringPeriod' => '0',
'rebills' => '0',
'initialFormattedPrice' => '£2.99',
'recurringFormattedPrice' => '£0.00',
'ip_address' => '86.14.153.64',
's2member_log' =>
array (
0 => 'IPN received on: Tue Dec 20, 2011 10:18:53 am UTC',
1 => 's2Member POST vars verified with ccBill®.',
2 => 'ccBill® transaction identified as ( `NON-RECURRING/BUY-NOW` ).',
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.',
),
)


Thank you in advance

Re: No registration email being sent after checkout with ccb

PostPosted: December 20th, 2011, 3:29 pm
by Cristián Lávaque
When did you start having this problem?

Have you tried updating to WordPress 3.3? I noticed you still have an earlier version. There's also a new version of s2Member released today. Could you update the scripts and see if you still have the problem?

Re: No registration email being sent after checkout with ccb

PostPosted: December 20th, 2011, 3:41 pm
by Philly
Thanks for the responsive. I have updated everything but I'm still having the same result.

Re: No registration email being sent after checkout with ccb

PostPosted: December 20th, 2011, 8:42 pm
by Raam Dev
Did you check if your logs showed any additional information after you upgraded? Was there anything in the paypal-ipn.log this time?

Re: No registration email being sent after checkout with ccb

PostPosted: December 20th, 2011, 8:51 pm
by Philly
those are the logs after upgrading:

ccbill-ipn.log

PHP v5.3.8 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 27.87 MB :: Real Memory 28.00 MB :: Peak Memory 27.96 MB :: Real Peak Memory 28.00 MB
xxxxxxxxxxxxx.com/?s2member_pro_ccbill_notify=1
User-Agent:
array (
'customer_fname' => 'name',
'customer_lname' => 'name',
'email' => 'email@gmail.com',
'username' => '',
'password' => '',
'productDesc' => '',
'price' => '£2.99 for 2 days',
'subscription_id' => '0311354202000000403',
'denialId' => '',
'clientAccnum' => 'xxxxxx',
'clientSubacc' => '0000',
'address1' => '1 street',
'city' => 'city',
'state' => '',
'country' => 'GB',
'phone_number' => '',
'zipcode' => 'sw01 1aa',
'start_date' => '2011-12-20 13:37:11',
'referer' => '',
'ccbill_referer' => '',
'affiliate' => '',
'reservationId' => '',
'referringUrl' => 'http://xxxxxxxxxxxxx.com/join/',
'reasonForDecline' => '',
'reasonForDeclineCode' => '',
'formName' => '146cc',
'cardType' => 'MASTERCARD',
'responseDigest' => '24a9221c4737abee8be30ab29dcd1af2',
's2_desc' => '2 Days membership',
's2_customer_ip' => '86.14.153.64',
's2_invoice' => '1::2 D',
's2_custom' => 'xxxxxxxxxxxxx.com',
's2_p1' => '0 D',
's2_p3' => '2 D',
'typeId' => '0',
'initialPrice' => '2.99',
'initialPeriod' => '2',
'recurringPrice' => '0',
'recurringPeriod' => '0',
'rebills' => '0',
'initialFormattedPrice' => '£2.99',
'recurringFormattedPrice' => '£0.00',
'ip_address' => '86.14.153.64',
's2member_log' =>
array (
0 => 'IPN received on: Tue Dec 20, 2011 8:37:14 pm UTC',
1 => 's2Member POST vars verified with ccBill®.',
2 => 'ccBill® transaction identified as ( `NON-RECURRING/BUY-NOW` ).',
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.',
),
)


ccbill-rtn.log


PHP v5.3.8 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 27.56 MB :: Real Memory 27.75 MB :: Peak Memory 27.64 MB :: Real Peak Memory 27.75 MB
xxxxxxxxxxxxx.com/?s2member_pro_ccbill_return=1
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22
array (
's2member_log' =>
array (
0 => 'Return URL processed on: Tue Dec 20, 2011 8:37:20 pm UTC',
1 => 'Piping through s2Member\'s core/standard PayPal® processor with `proxy_use` ( `ty-email` ).',
2 => 'Please check PayPal® RTN logs for further processing details.',
3 => 'http://xxxxxxxxxxxxx.com/?s2member_pro_ccbill_return&s2member_paypal_return=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails%2Cty-email&s2member_paypal_proxy_verification=1324413440-0cc44c976f0ee372e548e86bf261159a',
),
)

paypal-rtn.log

PHP v5.3.8 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 29.74 MB :: Real Memory 30.00 MB :: Peak Memory 29.87 MB :: Real Peak Memory 30.00 MB
xxxxxxxxxxxxx.com/?s2member_pro_ccbill_return&s2member_paypal_return=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails%2Cty-email&s2member_paypal_proxy_verification=1324413440-0cc44c976f0ee372e548e86bf261159a
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22
array (
'proxy_verified' => 'ccbill',
's2member_log' =>
array (
0 => 'Return-Data received on: Tue Dec 20, 2011 8:37:21 pm UTC',
1 => 's2Member POST vars verified with a Proxy Key',
2 => 'Customer must wait for Email Confirmation `proxy_use`: ( `ty-email` ).',
3 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation `proxy_use`: ( `ty-email` ).',
),
'subscr_gateway' => 'ccbill',
's2member_paypal_proxy' => 'ccbill',
's2member_paypal_proxy_use' => 'standard-emails,ty-email',
's2member_paypal_proxy_verification' => '1324413440-0cc44c976f0ee372e548e86bf261159a',
)


but nothing in paypal-ipn.log


Thank you

Re: No registration email being sent after checkout with ccb

PostPosted: December 21st, 2011, 8:13 am
by Philly
Update:

I found this error in ccbill-dl.log that may be causing this? However I can't work out why this is getting an "04" error, username and password are correct and so is the recording server IP address as stated below,

I think the "04" error is ccbill saying the IP address the request is coming from is not the same as the IP address I stated in the data link settings?

Is it possible the IP address the request is coming from is not the same as the one listed below?

PHP v5.3.8 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 33.45 MB :: Real Memory 33.75 MB :: Peak Memory 33.50 MB :: Real Peak Memory 33.75 MB
xxxxxxxxxxxxx.com/wp-cron.php?doing_wp_cron=1324465151
User-Agent: WordPress/3.3; http://xxxxxxxxxxxxx.com
array (
's2member_log' =>
array (
0 => 'Storing last DataLink time: Wed Dec 21, 2011 10:53:10 am UTC',
1 => 'Recording DataLink error at: Wed Dec 21, 2011 10:59:13 am UTC',
2 => 'Recording server IP address: 205.186.175.79',
3 => 'https://datalink.ccbill.com/data/main.cgi?startTime=20111220105310&endTime=20111221105310&transactionTypes=EXPIRE%2CREBILL%2CREFUND%2CCHARGEBACK&clientAccnum=943866&clientSubacc=0000&username=xxxxxx&password=xxxxxx',
4 => 'Error: Authentication failed. 04',
),
)

Re: No registration email being sent after checkout with ccb

PostPosted: December 21st, 2011, 2:50 pm
by Raam Dev
Hi Philly,

I looked up CCBill Error Code 04 in the CCBill Users Guide and here's what it says:

04 - The given subscription was not for the account the client was authenticated on.


Can you please double-check all of your s2Member CCBill Options and confirm that you've configured your CCBill account with the correct Approval Post URL and Denial Post URL (ccBill IPN / Bg Post Integration).

Also please note: As of s2Member v111206, all CCBill URLs leading to checkout MUST be digitally signed by s2Member. Please see this thread for more information: http://www.primothemes.com/forums/viewt ... 133#p56133

Re: No registration email being sent after checkout with ccb

PostPosted: December 21st, 2011, 3:14 pm
by Philly
Thanks Raam,

I checked all my details and they are correct, all my buttons are produced by s2Member's Shortcodes so they are signed.

s2member posts to the ccbill data link once daily, I would like to post from my server again to test if I still get the error but I don't know how to do that?

Also on my ccbill data options I accept posts from my personal IP address, so if I type the datalink URL from the above post into my browser, I get a successful response, so the problem with that must be IP related

Re: No registration email being sent after checkout with ccb

PostPosted: December 21st, 2011, 7:04 pm
by Philly
While I'm trying to resolve this I thought I could "bypass s2Member's "Approval" system all together" by passing this

http://xxxxxxxxxxxxx.com/?s2member_pro_ccbill_return=1&s2member_pro_ccbill_return_success=http%3A%2Fxxxxxxxxxxxxx.com%2Fwp-login.php%3Faction%3Dregister

as the ccBill® Approval URL so that customers can go ahead and register without waiting for the email that never gets sent, however s2member then redirects that to

http://xxxxxxxxxxxxx.com/?s2member_pro_ccbill_return&s2member_paypal_return=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails%2Cty-email&s2member_paypal_return_success=http%3A%2Fxxxxxxxxxxxxx.com%2Fwp-login.php%3Faction%3Dregister&s2member_paypal_proxy_verification=1324512060-640cfef609051fc97bfe786580a184eb

which displays the default thank you wait for email message

Re: No registration email being sent after checkout with ccb

PostPosted: December 22nd, 2011, 6:08 am
by Philly
update:

my data link works fine now so that's not the problem, as I'm still experiencing the same issue, I have triple checked all my details and everything matches cannot think what else could be causing this

Re: No registration email being sent after checkout with ccb

PostPosted: December 22nd, 2011, 3:41 pm
by Raam Dev
Can you please share your logs again now that the datalink problem is fixed? (You can use [code][/code] tags when posting the log entires to keep them easily readable; be sure to X-out any private info.)

You may also want to try installing the Email Log plugin so you can see exactly what emails s2Member is sending.

Re: No registration email being sent after checkout with ccb

PostPosted: December 22nd, 2011, 4:05 pm
by Philly
Thanks Raam,

I just installed a new wordpress with a new s2member to test in a new location, I still have the same problem, here are the logs.

ccbill-ipn
Code: Select all
PHP v5.2.17 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 22.41 MB :: Real Memory 22.75 MB :: Peak Memory 22.52 MB :: Real Peak Memory 22.75 MB
blog.georgiedarby.com/wp/?s2member_pro_ccbill_notify=1
User-Agent:
array (
  'customer_fname' => 'name',
  'customer_lname' => 'name',
  'email' => 'xxxxxx',
  'username' => '',
  'password' => '',
  'productDesc' => '',
  'price' => '£2.95 for 2 days',
  'subscription_id' => '0311356402000000463',
  'denialId' => '',
  'clientAccnum' => 'xxxxxxx',
  'clientSubacc' => '0000',
  'address1' => '1 street',
  'city' => 'london',
  'state' => '',
  'country' => 'GB',
  'phone_number' => '',
  'zipcode' => 'sw1 0aa',
  'start_date' => '2011-12-22 13:55:48',
  'referer' => '',
  'ccbill_referer' => '',
  'affiliate' => '',
  'reservationId' => '',
  'referringUrl' => 'http://blog.georgiedarby.com/wp/',
  'reasonForDecline' => '',
  'reasonForDeclineCode' => '',
  'formName' => '146cc',
  'cardType' => 'VISA',
  'responseDigest' => '21bafb6e7b217c0a0c789302ea9ea5b1',
  's2_desc' => 'Bronze Member / description and pricing details here.',
  's2_customer_ip' => '86.14.153.64',
  's2_invoice' => '1::2 D',
  's2_custom' => 'blog.georgiedarby.com',
  's2_p1' => '0 D',
  's2_p3' => '2 D',
  'typeId' => '0',
  'initialPrice' => '2.95',
  'initialPeriod' => '2',
  'recurringPrice' => '0',
  'recurringPeriod' => '0',
  'rebills' => '0',
  'initialFormattedPrice' => '£2.95',
  'recurringFormattedPrice' => '£0.00',
  'ip_address' => '86.14.153.64',
  's2member_log' =>
  array (
    0 => 'IPN received on: Thu Dec 22, 2011 8:55:52 pm UTC',
    1 => 's2Member POST vars verified with ccBill®.',
    2 => 'ccBill® transaction identified as ( `NON-RECURRING/BUY-NOW` ).',
    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.',
  ),
)


ccbill-rtn

Code: Select all
PHP v5.2.17 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 22.09 MB :: Real Memory 22.25 MB :: Peak Memory 22.19 MB :: Real Peak Memory 22.25 MB
blog.georgiedarby.com/wp/?s2member_pro_ccbill_return=1
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
array (
  's2member_log' =>
  array (
    0 => 'Return URL processed on: Thu Dec 22, 2011 8:56:01 pm UTC',
    1 => 'Piping through s2Member\'s core/standard PayPal® processor with `proxy_use` ( `ty-email` ).',
    2 => 'Please check PayPal® RTN logs for further processing details.',
    3 => 'http://blog.georgiedarby.com/wp/?s2member_pro_ccbill_return&s2member_paypal_return=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails%2Cty-email&s2member_paypal_proxy_verification=1324587361-2c95b731c7df3177ac792856c7bf4541',
  ),
)


paypal-rtn

Code: Select all
PHP v5.2.17 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 23.85 MB :: Real Memory 24.25 MB :: Peak Memory 24.00 MB :: Real Peak Memory 24.25 MB
blog.georgiedarby.com/wp/?s2member_pro_ccbill_return&s2member_paypal_return=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails%2Cty-email&s2member_paypal_proxy_verification=1324587361-2c95b731c7df3177ac792856c7bf4541
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
array (
  'proxy_verified' => 'ccbill',
  's2member_log' =>
  array (
    0 => 'Return-Data received on: Thu Dec 22, 2011 8:56:03 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 'Customer must wait for Email Confirmation `proxy_use`: ( `ty-email` ).',
    3 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation `proxy_use`: ( `ty-email` ).',
  ),
  'subscr_gateway' => 'ccbill',
  's2member_paypal_proxy' => 'ccbill',
  's2member_paypal_proxy_use' => 'standard-emails,ty-email',
  's2member_paypal_proxy_verification' => '1324587361-2c95b731c7df3177ac792856c7bf4541',
)


still no paypal-ipn.log

Re: No registration email being sent after checkout with ccb

PostPosted: December 22nd, 2011, 5:45 pm
by Raam Dev
Just to confirm, the problem you're experiencing is that the registration email never goes out after a successful payment, correct? The customer is transferred back to your site after payment, but they never receive a registration email, right?

Have you tried installing that EMail Log plugin to see if s2Member is sending the registration email?

Re: No registration email being sent after checkout with ccb

PostPosted: December 22nd, 2011, 5:55 pm
by Philly
Yes that's right, Yes I installed that plugin done another transaction but there is no email log.

From what I understand the the IPN communicates back to s2member for it to generate the log in ccbill-ipn but not in paypal-ipn which would then generate the email part?

I'm so confused

Re: No registration email being sent after checkout with ccb

PostPosted: December 23rd, 2011, 1:34 pm
by Raam Dev
Hey Philly,

I'm not sure what's going on either. I've forwarded this thread to Jason, our lead developer. Let's see if he can shed any light on this.

Thanks for your patience!

Re: No registration email being sent after checkout with ccb

PostPosted: December 24th, 2011, 2:13 pm
by Jason Caldwell
Thanks for the heads up on this thread Raam.

This log entry indicates that s2Member DID process the ccBill IPN successfully.
Code: Select all
    PHP v5.2.17 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
    Memory 22.41 MB :: Real Memory 22.75 MB :: Peak Memory 22.52 MB :: Real Peak Memory 22.75 MB
    blog.georgiedarby.com/wp/?s2member_pro_ccbill_notify=1
    User-Agent:
    array (
      'customer_fname' => 'name',
      'customer_lname' => 'name',
      'email' => 'xxxxxx',
      'username' => '',
      'password' => '',
      'productDesc' => '',
      'price' => '£2.95 for 2 days',
      'subscription_id' => '0311356402000000463',
      'denialId' => '',
      'clientAccnum' => 'xxxxxxx',
      'clientSubacc' => '0000',
      'address1' => '1 street',
      'city' => 'london',
      'state' => '',
      'country' => 'GB',
      'phone_number' => '',
      'zipcode' => 'sw1 0aa',
      'start_date' => '2011-12-22 13:55:48',
      'referer' => '',
      'ccbill_referer' => '',
      'affiliate' => '',
      'reservationId' => '',
      'referringUrl' => 'http://blog.georgiedarby.com/wp/',
      'reasonForDecline' => '',
      'reasonForDeclineCode' => '',
      'formName' => '146cc',
      'cardType' => 'VISA',
      'responseDigest' => '21bafb6e7b217c0a0c789302ea9ea5b1',
      's2_desc' => 'Bronze Member / description and pricing details here.',
      's2_customer_ip' => '86.14.153.64',
      's2_invoice' => '1::2 D',
      's2_custom' => 'blog.georgiedarby.com',
      's2_p1' => '0 D',
      's2_p3' => '2 D',
      'typeId' => '0',
      'initialPrice' => '2.95',
      'initialPeriod' => '2',
      'recurringPrice' => '0',
      'recurringPeriod' => '0',
      'rebills' => '0',
      'initialFormattedPrice' => '£2.95',
      'recurringFormattedPrice' => '£0.00',
      'ip_address' => '86.14.153.64',
      's2member_log' =>
      array (
        0 => 'IPN received on: Thu Dec 22, 2011 8:55:52 pm UTC',
        1 => 's2Member POST vars verified with ccBill®.',
        2 => 'ccBill® transaction identified as ( `NON-RECURRING/BUY-NOW` ).',
        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.',
      ),
    )
* It then pipes it through s2Member's core PayPal IPN processor, which is where the email is actually sent out. You should have another log entry related to this inside /paypal-ipn.log. If you don't, then something is intercepting s2Member's HTTP POST to the core PayPal IPN handler at: /?s2member_paypal_notify=1.

Here are some things I would look at:

1. Does your Apache error log indicate any requests to:
/?s2member_paypal_notify=1
If so, are there errors?

2. Are any plugins installed that could be intercepting requests to:
/?s2member_paypal_notify=1

3. Have you seen this article? It could be causing this issue.
viewtopic.php?f=36&t=14787

4. Do you have any log entries at all inside /paypal-ipn.log?

Re: No registration email being sent after checkout with ccb

PostPosted: December 24th, 2011, 5:57 pm
by Philly
Thanks Raam and Jason,

No other plugins installed so I can rule that out.

Using Mediatemple so I don't think there is an issue with mod.

Nothing at all in paypal-ipn.log

However your write about log errors, here is what I get
Code: Select all
[Thu Dec 22 13:09:10 2011] [error] [client 205.186.175.79] Premature end of script headers: php-legacy
[Thu Dec 22 13:09:19 2011] [error] [client 86.14.153.64] File does not exist: /home/xxxxxx/domains/blog.georgiedarby.com/html/wp/wp-includes/js/l10n.js, referer: http://blog.georgiedarby.com/wp/?s2member_pro_ccbill_return&s2member_paypal_return=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails%2Cty-email&s2member_paypal_proxy_verification=1324588156-a5fa08069746ee4f2239e29b4f12d39d


So I looked for l10n.js and it appears that it no longer exists in wordpress 3.3 or not in that location anyway, I'm out of my depth on this one and really appreciate your time

Thank you

Re: No registration email being sent after checkout with ccb

PostPosted: December 25th, 2011, 6:06 pm
by Philly
To add, I tried another test purchase but forgot to log out as admin as a result I actually got further in the process, there was no
Code: Select all
[Sun Dec 25 14:52:32 2011] [error] [client 205.186.175.79] Premature end of script headers: php-legacy
error log, and the paypal-ipn actually received the notification but of course stopped at the point it realised it was associated with an administrator
Code: Select all
PHP v5.2.17 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 27.76 MB :: Real Memory 29.75 MB :: Peak Memory 28.96 MB :: Real Peak Memory 29.75 MB
test.xxxxxxxxxxx.com/?s2member_paypal_notify=1&s2member_paypal_proxy=ccbill&s2member_paypal_proxy_use=standard-emails,subscr-signup-as-subscr-payment&s2member_paypal_proxy_verification=fea8ce6535ec337c31c6c552ea38aa7e
User-Agent: WordPress/3.3; http://test.xxxxxxxxxxx.com
array (
  'txn_type' => 'subscr_signup',
  'subscr_id' => '0311359702000000449',
  'recurring' => '5.00',
  'txn_id' => '0311359702000000449',
  'custom' => 'test.xxxxxxxxxxx.com',
  'period1' => '30 D',
  'period3' => '1 M',
  'mc_amount1' => '5.00',
  'mc_amount3' => '5.00',
  'mc_gross' => '5.00',
  'mc_currency' => 'USD',
  'tax' => '0.00',
  'payer_email' => 'xxx@xxx.com',
  'first_name' => 'name',
  'last_name' => 'name',
  'option_name1' => 'Referencing Customer ID',
  'option_selection1' => '1',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '86.14.153.64',
  'item_number' => '1',
  'item_name' => 'Bronze Member / description and pricing details here.',
  'proxy_verified' => 'ccbill',
  's2member_log' =>
  array (
    0 => 'IPN received on: Sun Dec 25, 2011 10:48:56 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept|subscr_signup` ).',
    4 => 's2Member `txn_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' => 'ccbill',
  'eotper' => NULL,
  'ccaps' => NULL,
  'level' => '1',
  'ip' => '86.14.153.64',
  'initial_term' => '30 D',
  'initial' => '5.00',
  'regular' => '5.00',
  'regular_term' => '1 M',
  's2member_paypal_proxy' => 'ccbill',
  's2member_paypal_proxy_use' => 'standard-emails,subscr-signup-as-subscr-payment',
  's2member_paypal_proxy_verification' => 'fea8ce6535ec337c31c6c552ea38aa7e',
)


I did try another transaction logged out but received the above server error again and there was no log in pay-pal.ipn.

Re: No registration email being sent after checkout with ccb

PostPosted: December 25th, 2011, 10:09 pm
by Raam Dev
That sounds like it could be related to Apache's ModSecurity. Did you see the article Jason referred to in suggestion #3? viewtopic.php?f=36&t=14787

Also, you might try disabling ModSecurity in your .htaccess file as described here: viewtopic.php?f=4&t=14619&p=53536#p53526

Lastly, I did a quick Google Search for that "Premature end of script headers: php-leagcy" error and came across this post on the Joomla forum. The guy who solved the problem reported that his web host was monkeying around with the base php settings.

Re: No registration email being sent after checkout with ccb

PostPosted: December 26th, 2011, 6:11 pm
by Philly
Thanks Ramm,

I'm running on mediatemples gs service so I can't access things like httpd.conf.
I did notice that mediatemple add this line to my .htaccess file
Code: Select all
AddHandler php-legacy .php

which meant I was running an older version of php so changed to 5.3.8 which adds this line to .htaccess
Code: Select all
AddHandler php-stable .php
but that just changes the server log error to
Code: Select all
[Mon Dec 26 14:29:49 2011] [error] [client 205.186.175.79] Premature end of script headers: php-stable

I'm sure your write that its too do with security given that I get further if logged in an as admin but don't really know what else to try

here is my phpinfo file not sure if the reason is in there http://test.georgiedarby.com/phpinfo.php

Re: No registration email being sent after checkout with ccb

PostPosted: December 26th, 2011, 7:05 pm
by Jason Caldwell
I've seen this happen before on MediaTemple servers. The premature end of script headers is a VERY generalized error, indicating that there was an error during the execution of a PHP script that was perhaps caused by some type of server crash, which is not actually reportable via PHP error logs. Therefore, you end up with just an Apache log entry with "Premature end of script headers". Which really tells us nothing.

In my experience with MT, this error is often attributed to mail handling by the PHPMailer class. There is something going on with their MTA at MediaTemple, and the PHPMailer class that ships with WordPress.

I would try one of these things.

1. Install and configure this plugin to use an external SMTP server.
http://wordpress.org/extend/plugins/wp-mail-smtp/

2. Ask MediaTemple to move you to a different cluster, or ask them to run a deep investigation of this issue and determine what this "premature end of script headers" error is actually being triggered by (i.e. what is the underlying cause).

3. Move to a different hosting provider. Perhaps HostGator.

Re: No registration email being sent after checkout with ccb

PostPosted: December 26th, 2011, 7:29 pm
by Philly
Thanks very much Jason and Ramm,

That SMTP plugin has solved the issue and everything seems to be working correctly.

Thanks very much for your time on this.

Re: No registration email being sent after checkout with ccb

PostPosted: December 26th, 2011, 7:32 pm
by Raam Dev
You're most welcome! I'm glad to hear things are working now. :) Let us know if you run into any other issues.