Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Posts
    362
    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
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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
    Dec 2010
    Posts
    362
    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. v151 mydebug problem
    By Andreas1211 in forum General Questions
    Replies: 7
    Last Post: 26 Sep 2013, 09:38 PM
  2. Replies: 4
    Last Post: 19 Jan 2013, 05:47 AM
  3. v150 myDEBUG-adm Error on TaxCloud
    By joem83 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 30 Aug 2012, 08:56 PM
  4. Help deciphering my Debug Log
    By scosio in forum Basic Configuration
    Replies: 4
    Last Post: 3 Jul 2010, 02:57 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR