close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Switching SSL - email error

Thread began 6/06/2011 11:18 am by sam308940 | Last modified 6/06/2011 5:12 pm by Jason Byrnes | 969 views | 7 replies |

sam308940

Switching SSL - email error

My client currently uses the hosts SSL and thier secure domain for checkout. However we purchased a ssl for the domain. While trying to switch the checkout process i ran into errors.

1. all i did do was on on the view cart page, i changed the form submit to url. this seemed to work fine, the checkout page and the confirm order pages both displayed normally withour error.


2. after i pressed confirm order - this is where i get my error. The order does save to the database, but i get errors on the email confirmation process.

i can look at the lines noted in the error, but im curious why i would get these errors when using secure checkout on her domain, but not on the hosts shared-secure domain.


The errors i get all refer to the same line in the confirmation email:
if ($_SESSION["eCartCheckoutForm_street2"] !="") echo "<br />";

Sign in to reply to this post

Jason ByrnesWebAssist

what is the text of the error message?

It is impossible to tell what is causing an error without knowing what the error is.

Sign in to reply to this post

sam308940

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\webassist\email\mail_php.php on line 285

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\webassist\email\mail_php.php on line 285

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\cart_confirm2.php on line 630

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\cart_confirm2.php on line 630



Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\webassist\email\mail_php.php on line 285

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\webassist\email\mail_php.php on line 285

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\cart_confirm2.php on line 660

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\cart_confirm2.php on line 660

Warning: Cannot modify header information - headers already sent by (output started at C:\Domains\julesreid.com\wwwroot\WA_Universal_Email\WAUE_cart_confirm_2.php:274) in C:\Domains\julesreid.com\wwwroot\cart_confirm2.php on line 675

Sign in to reply to this post

Jason ByrnesWebAssist

Ok, can you send a copy of the WA_Universal_Emai l\WAUE_cart_confirm_2.php page in a zp archive so i can see the code at line 274

Sign in to reply to this post

sam308940

the line of code is the one i listed in the first email:
if ($_SESSION["eCartCheckoutForm_street2"] !="") echo "<br />";


Here is lines 273-275 (1 line before and after)

$MailBody = $MailBody . " ";
if ($_SESSION["eCartCheckoutForm_street2"] !="") echo "<br />";
$MailBody = $MailBody . "\r\n";

Sign in to reply to this post

Jason ByrnesWebAssist

it should be:
$MailBody = $MailBody . " ";
if ($_SESSION["eCartCheckoutForm_street2"] !="") $MailBody = $MailBody . "<br />";
$MailBody = $MailBody . "\r\n";



the echo is causing the error.


any time there is an echo statement before the session_start() or header() functions, you will have that error.

Sign in to reply to this post

sam308940

ok - but its quite odd.
that file is working just fine when its processed on the shared ssl the host provides.

I will test your changed code tonight and see if i can successfully process.

Other than changing the submit to URL on the view cart page, is there any other steps i should be looking at to convert the ssl to hers instead of the shared hsot ssl?

Sign in to reply to this post

Jason ByrnesWebAssist

with the different ssl certificate, you probably have a different ssl server and a different error reporting level. My guess is this new server is set to display warnings, but the old server was not, that would mean the error was still occurring, but being suppressed by the error level.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...