close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Lots of warning messages after clicking the confirm button

Thread began 4/13/2010 1:15 pm by pmait97856 | Last modified 4/20/2010 4:41 pm by Jason Byrnes | 822 views | 5 replies |

pmait97856

Lots of warning messages after clicking the confirm button

I am testing eCart 5 and have followed the user guide step by step.

Everything seems to work as expected until I click the confirm button on the confirm page.

That's when I get all these messages:


Warning: Division by zero in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 37

Warning: Division by zero in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 38

Warning: Division by zero in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 57

Warning: Division by zero in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 58

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php:37) in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 67

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php:37) in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 67

Warning: sleep() expects parameter 1 to be long, string given in /home3/paul5b5c/public_html/crowlane/webassist/email/mailformatting_php.php on line 348

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php:37) in /home3/paul5b5c/public_html/crowlane/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 /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php:37) in /home3/paul5b5c/public_html/crowlane/webassist/email/mail_php.php on line 285

Warning: Division by zero in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 76

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php:37) in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php:37) in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php:37) in /home3/paul5b5c/public_html/crowlane/customerCentre/confirm.php on line 344

Although the success page does not load, the database is updated and an email is received.

The only change I made from the user guide is to use db tables: customer_orderdetails and customer_orders instead of orderdetails and orders. (customer_orderdetails and customer_orders are exact copies of the originals).

Can anyone let me know what may be the problem/s and how to solve them.

Also, I really don't need all the columns in the customer_orders table, if I remove some and add a couple I do need, which files do I need to adjust?

Paul

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your confirm.php page so I can examine the code.

Sign in to reply to this post

pmait97856

Confirm page

Hi Jason,
Attached is the confirm page. I had to create a zip of the file.

I did forget to mention that the pages are on a sub domain of my testing server so the path to this file would be:
confirm.php

Could that also be a cause of the problem?

Paul

Attached Files
confirm.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

find the following code:
$BurstSize = undefined;
$BurstTime = undefined;
$WaitTime = undefined;


and change it to:
$BurstSize = 200;
$BurstTime = 1;
$WaitTime = 1;

Sign in to reply to this post

pmait97856

Thanks, just one more question

Thanks Jason,
That worked, I assume that I need to check for this on all pages that will use email in future.

Just one question related to my original question.
There are a number of columns in the orders table that I do not need and a few new ones that I do.
For instance I do not need:
OrderShipAddress
OrderShipAddress2
OrderCity
OrderState
OrderZip
OrderCountry
OrderFax
OrderShipping
OrderTax

Is it safe to remove these columns or do some of the helper files need them?

I will need to add columns for Cell, TakeoutTime and Date and some others.

Am I correct in assuming that after adding these fields to the checkout page, on the confirm page I will need to delete the session values that I don't need i.e.
<?php
if (!session_id()) session_start();
if($_SERVER["REQUEST_METHOD"] == "POST") {
$_SESSION["eCartCheckoutForm_fax"] = "".((isset($_POST["fax"]))?$_POST["fax"]:"") ."";
}
?>

and the hidden fields i.e.
<input type="hidden" name="shipping_fax" id="shipping_fax" value="<?php echo ((isset($_SESSION["eCartCheckoutForm_shipping_fax"]))?$_SESSION["eCartCheckoutForm_shipping_fax"]:"") ?>" />

and replace them with new ones for the new columns?

Regards, Paul

Sign in to reply to this post

Jason ByrnesWebAssist

If you are using Shipping rate lookup, it will require the shipping zip and shipping country field, other wise, these fields should not be needed, but I would make a backup of the checkout and confirm pages before deleting them just in case.

as for the session code and hidden form elements, yes, you can delete the ones you don't need, and add new ones for new elements that you add.

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...