Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Posts
    249
    Plugin Contributions
    0

    Default Deciphering MyDEBUG error

    I throw myself upon the mercy of the court.

    I am trying to find the source of the error below - -it is being generated dozens of times a day -- it doesn't seem to affect the function of the cart, but I think it would be good to resolve it, since its spitting out myDEBUG files by the thousands

    Here's the error from the MyDEBUG file:

    [25-Mar-2012 17:24:01] PHP Warning: Missing argument 2 for currencies::display_price(), called in /nfs/c06/h05/mnt/92537/domains/quinceandco.com/html/store/includes/templates/quince/templates/tpl_checkout_confirmation_default.php on line 139 and defined in /nfs/c06/h05/mnt/92537/domains/quinceandco.com/html/store/includes/classes/currencies.php on line 112

    Line 139 in tpl_checkout_confirmation_default.php is:
    Code:
    <?php echo $currencies->display_price($order->products[$i]['price'], $order->products[$i]['tax']); ?>
    And line 112 in /classes/currencies.php is:
    Code:
    function display_price($products_price, $products_tax, $quantity = 1)
    My question is -- what is the missing "argument 2" -- is it the tax value or the quantity value (I don't know if PHP numbers arguments 1,2,3 or 0,1,2)

    Thank you for your help.

  2. #2
    Join Date
    Jan 2004
    Posts
    58,446
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Deciphering MyDEBUG error

    Function arguments are numbered from 1. So it's talking about the tax amount.

    Looks like you must have some addons that are mangling the normal way tax is handled.

    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.

  3. #3
    Join Date
    Dec 2010
    Posts
    249
    Plugin Contributions
    0

    Default Re: Deciphering MyDEBUG error

    That's what I thought, but I'm confused by this:

    The line of code that's throwing an error is:

    Code:
    <?php echo $currencies->display_price($order->products[$i]['price'], $order->products[$i]['tax']); ?>
    This line, by the way, is not part of the stock template -- it is a modification of some sort.

    However, down slightly further, is a similar line (part of the stock template)

    Code:
     <?php echo $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']);
    This does not generate an error, even though it is still calling for the same tax value as the line above (I think).

 

 

Similar Threads

  1. Thousands of MyDebug files!
    By jgold723 in forum General Questions
    Replies: 7
    Last Post: 22 Nov 2011, 09:21 PM
  2. myDEBUG log files in cache folder
    By Athens Collectibles in forum General Questions
    Replies: 2
    Last Post: 26 Jun 2011, 11:04 AM
  3. Can't find /cache/myDEBUG-xxxxxxx.log
    By doktorfroyd in forum General Questions
    Replies: 3
    Last Post: 21 Jan 2011, 07:29 PM
  4. Help deciphering my Debug Log
    By scosio in forum Basic Configuration
    Replies: 4
    Last Post: 3 Jul 2010, 02:57 AM
  5. myDEBUG & AIM_Debug
    By braggweb in forum General Questions
    Replies: 2
    Last Post: 13 May 2010, 08:47 PM

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
  •