osCmax v2.5 User Manual
Results 1 to 3 of 3

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

      
  1. #1
    Lurker
    Join Date
    Aug 2009
    Posts
    4
    Rep Power
    0


    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 

  2. #2
    Lurker
    Join Date
    Aug 2009
    Posts
    4
    Rep Power
    0


    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

  3. #3
    Lurker
    Join Date
    Aug 2009
    Posts
    4
    Rep Power
    0


    Default Re: Warning Message Help

    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •