osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Warning Message Help

This is a discussion on Warning Message Help within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello everyone, I am a newbie and hope I have come to the right place to post. I am very ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 08-27-2009, 12:42 AM
Lurker
 
Join Date: Aug 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dink is on a distinguished road
Default Warning Message Help

Hello everyone,

I am a newbie and hope I have come to the right place to post.
I am very new at OsCommerce and even newer with PHP. I have background in C++ and Java.
I don't know where to look to fix these warnings. If you can point me in the right direction I would really appreciate it.
I have installed OsCommerce 2.2 and everything seemed to work fine when I tested the order with pay by COD. I had to install an addon for Quickbooks Merchant Services and now when I try to do a test order I get the warnings listed below.
I have not changed any of these files since installation.

Your help would be greatly appreciated.
dink


PHP Code:
Warning:  Division by zero in /usr3/home/xxxx.com/htdocs/ComputerHMO/store/includes/classes/shipping.php on line 61

Warning
:  Division by zero in /usr3/home/xxxx.com/htdocs/ComputerHMO/store/includes/classes/shipping.php on line 62

Warning
Cannot modify header information headers already sent by (output started at /usr3/home/jsnpc.com/htdocs/ComputerHMO/store/includes/classes/shipping.php:61in /usr3/home/xxxx.com/htdocs/ComputerHMO/store/includes/functions/general.php on line 33 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-27-2009, 10:00 AM
Lurker
 
Join Date: Aug 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dink is on a distinguished road
Default Re: Warning Message Help

I found the answer!
Check to make sure that none of the variables are set to 0. For me it was in the shipping module. I had flat rate set to true and value set to 0. I simply set it to false and everything is working great.
dink
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-27-2009, 10:15 AM
Lurker
 
Join Date: Aug 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dink is on a distinguished road
Default Re: Warning Message Help

Quote:
Warning: Division by zero in /usr3/home/xxxx.com/htdocs/ComputerHMO/store/includes/classes/shipping.php on line 61

Warning: Division by zero in /usr3/home/xxxx.com/htdocs/ComputerHMO/store/includes/classes/shipping.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /usr3/home/xxxx.com/htdocs/ComputerHMO/store/includes/classes/shipping.php:61) in /usr3/home/xxxx.com/htdocs/ComputerHMO/store/includes/functions/general.php on line 33
Hi everyone,
Just want to let you know I got it fixed. The flat rate for shipping was set to true and the value set to 0. I set the flat rate for shipping to false and everything works fine now.
Just thought I would share in case some other newbie has the same problem.
dink
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Another warning for me! [wicked] osCMax v2 Customization/Mods 4 02-09-2006 12:57 PM
Error Message Help, Warning: session_start ????? emerge23 osCMax v1.7 Discussion 3 11-16-2004 10:43 AM
Crazy warning message after installing STS mod innovations osCommerce 2.2 Modification Help 1 12-10-2003 08:30 PM
Warning message help. Picman osCommerce 2.2 Installation Help 6 06-05-2003 04:30 PM
Help about warning Anonymous osCommerce 2.2 Installation Help 2 11-09-2002 12:11 PM


All times are GMT -8. The time now is 08:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design