Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2010
    Posts
    246
    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
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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,128
    Plugin Contributions
    0

    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.
    The learning is in the doing.

    Potent Products

  4. #4
    Join Date
    Dec 2010
    Posts
    246
    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
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    246
    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
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    4,483
    Plugin Contributions
    121

    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)
    Scott C Wilson, That Software Guy, Plugin Moderator
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

 

 

Similar Threads

  1. Replies: 13
    Last Post: 5 May 2011, 03:48 AM
  2. Can't find /cache/myDEBUG-xxxxxxx.log
    By doktorfroyd in forum General Questions
    Replies: 3
    Last Post: 21 Jan 2011, 07:29 PM
  3. myDEBUG & AIM_Debug
    By braggweb in forum General Questions
    Replies: 2
    Last Post: 13 May 2010, 08:47 PM
  4. Is there a mod to manage thousands of items?
    By lizar5- in forum General Questions
    Replies: 2
    Last Post: 24 Jun 2008, 01:16 AM

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
  •