Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Warning: Division by zero in attributes_controller.php

    What are your settings in Admin->Configuration->Attribute Settings?
    Which ones have you changed from defaults, and why?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #2
    Join Date
    Aug 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in attributes_controller.php

    Quote Originally Posted by DrByte View Post
    What are your settings in Admin->Configuration->Attribute Settings?
    Which ones have you changed from defaults, and why?
    enable downloads: true
    download by redirect: true
    download by streaming: false
    download expiration: 2
    # downloads per product: 1
    update status value: 4
    status value >= lower value: 2
    status Value <= upper value: 4
    enable price factor: true
    Enable quantity discount: false
    enable attribute images: false
    enable text pricing by word or letter: true
    text pricing spaces are free: 1
    read only option type - ignore: 1

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Warning: Division by zero in attributes_controller.php

    When you click on the order in your Admin side, and click Edit, it shows you the downloadable files on the left side below the order details/pricing/etc. It includes the download count and expiry date. What are those showing?
    And then below that is the order-status-history area which records customer comments and admin comments, along with order status level. What's the history showing on this order?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Aug 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in attributes_controller.php

    Quote Originally Posted by DrByte View Post
    When you click on the order in your Admin side, and click Edit, it shows you the downloadable files on the left side below the order details/pricing/etc. It includes the download count and expiry date. What are those showing?
    And then below that is the order-status-history area which records customer comments and admin comments, along with order status level. What's the history showing on this order?

    When I go to the order via the admin panel, I don't see anything regarding the download count and expiry date. The status is listed as "processing".

  5. #5
    Join Date
    Aug 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in attributes_controller.php

    Quote Originally Posted by Snicklefritz View Post
    When I go to the order via the admin panel, I don't see anything regarding the download count and expiry date. The status is listed as "processing".
    I do recall entering the info when I go to the attributes setting page for this particular item. However, after typing in the info for filename, # of downloads, etc, I then click "insert", but when I go back to look at that item, I don't see any indication that it stored anything which is weird since there were no further error messages such as the ones I had earlier (referenced several posts above)

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Warning: Division by zero in attributes_controller.php

    If you delete that attribute and add it back again now, what happens? Does it now store that information? And, does that information now transfer to new orders?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in attributes_controller.php

    Quote Originally Posted by DrByte View Post
    If you delete that attribute and add it back again now, what happens? Does it now store that information? And, does that information now transfer to new orders?
    YES!!! It works!!

    What was it about erasing and starting over that took care of this? I'd like to make a note of it for future reference.

    thanks so much for your help.

 

 

Similar Threads

  1. v154 PHP Warning: Division by zero header_php_review.php
    By cyberfolli in forum General Questions
    Replies: 5
    Last Post: 15 Oct 2015, 02:53 PM
  2. v151 PHP Warning: Division by zero in public_html/store/includes/classes/c
    By lilly06 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 27 Sep 2013, 06:29 PM
  3. Replies: 11
    Last Post: 1 Feb 2013, 07:12 PM
  4. Warning: Division by zero in /includes/classes/shipping.php on line 94
    By keycraze in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 Sep 2008, 09:40 PM
  5. Replies: 3
    Last Post: 27 Jan 2007, 05:31 PM

Posting Permissions

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