Zen Cart Logo
Forums / General Questions / Thousands of MyDebug files!

Thousands of MyDebug files!

Views: 3,468

Results 1 to 8 of 8
25 Feb 2011, 4:23 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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

25 Feb 2011, 5:11 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.
25 Feb 2011, 5:11 PM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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.

22 Nov 2011, 5:56 PM
#4
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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?

22 Nov 2011, 6:02 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Thousands of MyDebug files!

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

22 Nov 2011, 6:42 PM
#6
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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.

22 Nov 2011, 7:34 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Thousands of MyDebug files!

jgold723:

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

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.php/Troubleshoot_-_Diagnosing_Obscure_Issues

22 Nov 2011, 8:21 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: Thousands of MyDebug files!

jgold723:

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)