The support forum is in archive (read-only) mode and access is limited to members with a purchase history.

For technical support, please visit our support page.

General questions or topics can also be discussed on the ExpressionEngine StackExchange.

   
 
Checkout Issues - PHP errors
Posted: 09 March 2011 04:19 AM   [ Ignore ]
Is a Really Great Dancer
Avatar
RankRank
Total Posts:  72
Joined  2010-03-05

I’m getting a bunch of PHP errors when a users decides to complete their purchase.

Checkout code looks like this:

{exp:cartthrob:checkout_form 
    id
="checkout_form"
    
failed_redirect="cart/failed"
    
declined_redirect="cart/declined"
    
authorized_redirect="cart/authorized"}
    
                                
<input type="text" name="first_name" value="{first_name}" />
                                <
input type="text" name="last_name" value="{last_name}" />
                                <
input type="text" name="address" value="{address}" />
                                <
input type="text" name="address2" value="{address2}" />
                                <
input type="text" name="city" value="{city}" />
                                <
input type="text" name="state" value="{state}" />
                                <
input type="text" name="zip" value="{zip}" />
                                <
input type="text" name="phone" value="{phone}" />
                                <
input type="text" name="email_address" value="{email_address}" />

    <
div class="full">
        <
label for="credit_card_number">Credit Card Number</label>
        <
input type="text" name="credit_card_number" value="" />
    </
div>
    
    <
div class="half">
    <
label for="expiration_month">Expiration Year</label>
    <
select name="expiration_month"
          <
option selected>Choose Month</option
          <
option value="01">January</option
          <
option value="02">February</option
          <
option value="03">March</option
          <
option value="04">April</option
          <
option value="05">May</option
          <
option value="06">June</option
          <
option value="07">July</option
          <
option value="08">August</option
          <
option value="09">September</option
          <
option value="10">October</option
          <
option value="11">November</option
          <
option value="12">December</option
        </
select>
    </
div>
    
    <
div class="half">
        <
label for="expiration_year">Expiration Year</label>
        
{exp:cartthrob:year_select name="expiration_year" selected="{expiration_year} years="6"}
    </div>    
    
    <input type="
submit" value="Compleate My Order">
    {/exp:cartthrob:checkout_form} 

The orders is saved as a Failed order in the Orders Channel - but none of the billing information is saved - and the payment fails because I’m developing localy without an SSL cert.

FAILED: Could not connect to the specified payment gateway SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

[ Edited: 11 March 2011 08:00 PM by Rob Sanchez ]
 Signature 

philipzaengle.com

Profile
 
 
Posted: 09 March 2011 04:20 AM   [ Ignore ]   [ # 1 ]
Is a Really Great Dancer
Avatar
RankRank
Total Posts:  72
Joined  2010-03-05

Errors:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 680

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 680

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 681

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 683

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 687

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 687

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 687

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 687

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 688

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 688

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 688

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 688

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 689

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 690

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 691

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 692

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 693

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 694

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 695

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 696

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 697

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: customer_info

Filename: cartthrob/mod.cartthrob.php

Line Number: 698

A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /Sites/secret.dev/httpdocs/secret/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Cartthrob_session.php

Line Number: 461

A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Sites/secret.dev/httpdocs/secret/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Cartthrob_session.php

Line Number: 461

A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /Sites/secret.dev/httpdocs/secret/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Cartthrob_session.php

Line Number: 461

A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Sites/secret.dev/httpdocs/secret/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Cartthrob_session.php

Line Number: 461

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Sites/secret.dev/httpdocs/secret/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 749

A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /Sites/secret.dev/httpdocs/secret/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Cartthrob_session.php

Line Number: 461

A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Sites/secret.dev/httpdocs/secret/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Cartthrob_session.php

Line Number: 461

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Sites/secret.dev/httpdocs/secret/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 387

 Signature 

philipzaengle.com

Profile
 
 
Posted: 09 March 2011 10:25 PM   [ Ignore ]   [ # 2 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

I fixed that in the latest release. Since that release ALSO includes the sessions thing that’s driving you crazy, it might not help much. But…. it HAS been fixed.

 Signature 
Profile
 
 
Posted: 09 March 2011 10:28 PM   [ Ignore ]   [ # 3 ]
Is a Really Great Dancer
Avatar
RankRank
Total Posts:  72
Joined  2010-03-05

Thanks Chris - Good luck on the sessions class rewrite - I’ve been really impressed with the lack of bugs in ct2, not nearly as buggy as other betas I’ve been a part of.

 Signature 

philipzaengle.com

Profile
 
 
Posted: 11 March 2011 03:44 PM   [ Ignore ]   [ # 4 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

Good to hear man. Now if we could just get to the point where people say “DAMN your docs are GOOOOOD”. But that’ll never happen.

 Signature 
Profile