Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Thousands of MyDebug files!

    While trying to resolve a problem, I took a look into the cache folder and found literally, thousands of MyDebug files -- probably about 7,000 in all.

    They all seem to read the same:

    PHP Warning: Missing argument 2 for display_price() in /nfs/c06/h05/mnt/92537/domains/quinceandco.com/html/store/includes/classes/currencies.php on line 112

    1) Do I need to keep these files?
    2) What is this warning telling me?

    Thanks,

    John

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

    Default Re: Thousands of MyDebug files!

    1. No. You can delete them. They will regenerate until you fix the problem though.
    2. It suggests you've probably got some addon code or customization that's breaking things. And/or maybe incomplete details in currency settings in your admin.
    .

    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
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Thousands of MyDebug files!

    Yes, you can delete all the debug files. The error msg. is stating you have a problem appearing in the coding in the currencies.php file on line 112. Why the error is happening is something you will have to determine.

    You should check the cache dir. at least once a week, if not sooner, to see if any new error msgs. are there, so can fix whatever needs fixing. Then delete the error files.

  4. #4
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Re: Thousands of MyDebug files!

    Returning to this problem, since it hasn't magically disappeared with time and the log files are building up again...

    Line 112 of currencies.php reads:

    function display_price($products_price, $products_tax, $quantity = 1) {

    Does this error mean the cart is not passing a tax value (argument 2), thus generating the error?

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

    Default Re: Thousands of MyDebug files!

    Please click Reply below and answer all the questions in the Posting Tips section.
    .

    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.

  6. #6
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Re: Thousands of MyDebug files!

    As best I can:

    -- 1.3.9a
    -- Not upgraded
    -- addons: Adhoc Report 1.0, captcha_verification for ZC139, extra_field_on customer_sign_up, google-analyticator, SalesReport232
    -- customizations: I inherited this site, did not do any customizations of my own, but it appears to be significantly different in appearance from the stock site
    -- display/layout problems: None, no visible manifestation of error except for DeBug files
    -- Problem start: Not sure, it appears to have been around since I inherited the site
    -- I've searched Forum without luck, except for a reference to a Free Gift addon that doesn't seem to apply.

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

    Default Re: Thousands of MyDebug files!

    Quote Originally Posted by jgold723 View Post
    -- 1.3.9a
    There have been a LOT of bugfixes and updates since that version. It's always best to be using the latest version to minimize impact of known issues.
    Quote Originally Posted by jgold723 View Post
    Does this error mean the cart is not passing a tax value (argument 2), thus generating the error?
    Yes, it means SOMETHING is not passing that required value, thus causing the error.
    That "SOMETHING" could be code from an addon, or a poor customization, or a corrupted file, outdated code, etc.

    This is where I usually start with something like that: http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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.

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,513
    Plugin Contributions
    126

    Default Re: Thousands of MyDebug files!

    Quote Originally Posted by jgold723 View Post

    Does this error mean the cart is not passing a tax value (argument 2), thus generating the error?
    It means some code that's running in your cart is not passing a tax value.

    In this function you could just add a bit of logic:

    if (!isset($$products_tax) || ($products_tax == '')) {
    error_log(print_r(debug_backtrace())."\n",3,DIR_FS_CATALOG . "/cache/debug.log");
    }

    (Note: this hasn't been tested; please try it first before deploying it to a live site)
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v153 myDEBUG: 3 identical files yesterday
    By RixStix in forum General Questions
    Replies: 3
    Last Post: 27 Feb 2015, 07:05 PM
  2. v153 Multiple myDEBUG files, similar errors
    By RixStix in forum Bug Reports
    Replies: 26
    Last Post: 21 Aug 2014, 08:22 AM
  3. Replies: 4
    Last Post: 19 Jan 2013, 05:47 AM
  4. myDEBUG log files in cache folder
    By Athens Collectibles in forum General Questions
    Replies: 2
    Last Post: 26 Jun 2011, 11:04 AM

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