Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Division by zero in functions_general.php using Easy Populate Advanced

    I have zencart 1.3.8a loaded and I was using the "Debug Error Logging Utility" and I have been using "Easy Populate Advanced 3.0.3". I keep getting this error code in my cache folder that says "PHP Warning: Division by zero in ../includes/functions/functions_general.php on line 1339". Why am I getting this code?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Division by zero in functions_general.php

    Does this happen only when using EasyPopulate?

    What other addons do you have installed?
    What specific activity causes the error to be logged?

    Technically, whatever's causing that error is trying to call the fmod_round() function, but is passing a 0 in the second value, causing the division by zero error.
    .

    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.

  3. #3
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Re: Division by zero in functions_general.php

    Yes, it only happens in Easy Populate Advanced.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Division by zero in functions_general.php

    Quote Originally Posted by smoke133 View Post
    Yes, it only happens in Easy Populate Advanced.
    I've moved this thread to the Contributions area, as it's not a bug-report about Zen Cart itself.
    .

    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.

 

 

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. Replies: 11
    Last Post: 1 Feb 2013, 07:12 PM
  3. Warning: Division by zero in attributes_controller.php
    By Snicklefritz in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 12 May 2010, 04:19 PM
  4. php error log - ot_coupon division by zero
    By keylesslocks in forum General Questions
    Replies: 2
    Last Post: 23 Oct 2008, 07:54 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