Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default getting errors from ot_tax.php

    Warning: reset() [function.reset]: Passed variable is not an array or object in /home/wishgivi/public_html/includes/modules/order_total/ot_tax.php on line 38

    Warning: Variable passed to each() is not an array or object in /home/wishgivi/public_html/includes/modules/order_total/ot_tax.php on line 39

    I searched around, and installed the patch from here: http://www.zen-cart.com/forum/showthread.php?t=56216

    then reinstalled the express checkout, it still doesn't work. I get the same error message on step 2 of 3.

    Can anyone help?

    Here is my site:
    http://wishgiving.com/index.php?main...eckout_payment

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

    Default Re: getting errors from ot_tax.php

    Does this occur when using PayPal Express Checkout ? or when using another method ?
    .

    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 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: getting errors from ot_tax.php

    This is the site that I'm working on :) It's actually happening on step 2 before a payment method is even selected! The errors are showing in the Your Total section at the very top.
    Danielle

  4. #4
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: getting errors from ot_tax.php

    And only Paypal IPN, Cheque/Money Order, and Credit Card are set up as payment options, the rest are not installed.
    Danielle

  5. #5
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Re: getting errors from ot_tax.php

    I THINK I have narrowed it down to the template files, I've replaced every file relating to order total and payment with no fix.

    I have also tried replacing tpl_checkout_process.php, no dice.

    Could there possibly be any other files contributing to this problem?

    I have to mention, I did ask my developer to work on my shopping cart, to change the color of the shopping cart. Now I'm not sure if that is related to this, since I don't know which files he had to edit in order to do so. Could this have also contributed to the problem?

  6. #6
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Re: getting errors from ot_tax.php

    Okay, I think I may have found the culprit to the problem..

    The database my zencart is using was transferred over from another zencart installation. Prior to installation, my developer kept saying there were problems with the database. Yet, he insisted on using it. He told me he had fixed the database. And sure enough, he did, the site worked.

    But there were apparent problems It seemed as though the products had transferred over, it would show the correct # of products on the admin panel front page, but the products weren't ACTUALLY in the catalog. That led me to think that the database might be missing a fair amount of data. But I continued on with configuring my website, on the same database, and I hadn't encountered any problems, until now.

    So should I try to back up everything and do a fresh installation? Danielle had suggested that to me, and I'm leaning in favor towards that. Is there any way I can back up JUST the catalog? I don't want my new installation powered by a seemingly faulty database. Again, I am really unsure of the cause. But either way, it seems like I should start from scratch.

  7. #7
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Re: getting errors from ot_tax.php

    Thanks everyone for your recommendations. I hired SUPERPRG and he was able to solve the problem successfully! He was very professional and diligent in resolving the situation. Would definitely work with him in the future.

    We also enjoyed working with Danielle, who was very professional and helpful.
    Last edited by mohinder; 17 Apr 2007 at 10:29 PM.

  8. #8
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: getting errors from ot_tax.php

    My pleasure mohinder....
    The problem was that in the template files $order variable was being used and due to its scope being global in the ot_tax.php it was getting lost
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

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

    Default Re: getting errors from ot_tax.php

    So ... what exactly did you do to fix it ?
    Was this the result of an incomplete upgrade? a customization? a mod?
    What will he have to do during his next upgrade so that whatever you did doesn't have to be done again?
    .

    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.

  10. #10
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: getting errors from ot_tax.php

    This was the problem

    includes\templates\template_default\templates\_tpl_modules_categories_images.php (16): $order="select zen_categories_description.categories_id, categories_name
    includes\templates\template_default\templates\tpl_modules_categories_images.php( 21): $order="select zen_categories_description.categories_id, categories_name
    includes\templates\template_default\templates\tpl_modules_categories_images.php( 40): $order="select zen_categories_description.categories_id, categories_name
    includes\templates\template_default\templates\tpl_modules_categories_images.php( 60): $order="select zen_categories_description.categories_id, categories_name
    includes\templates\template_default\templates\tpl_modules_categories_images.php( 80): $order="select zen_categories_description.categories_id, categories_name

    I changed $order to $temp_order
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Getting odd PHP errors on Windows 7 in localhost
    By samantha89 in forum General Questions
    Replies: 1
    Last Post: 11 Oct 2012, 04:39 PM
  2. Getting errors from IE from customers..
    By bridge32 in forum PayPal Express Checkout support
    Replies: 21
    Last Post: 27 Aug 2011, 02:24 PM
  3. I'm getting 2 errors from Paypal Express
    By LisaVB in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 29 Oct 2010, 09:34 PM
  4. Problem with ot_tax.php
    By superprg in forum General Questions
    Replies: 2
    Last Post: 18 Apr 2007, 05:17 PM
  5. getting error msg from ot_tax.php
    By gulfsprite in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 18
    Last Post: 12 Apr 2007, 04:25 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