Forums / Currencies & Sales Taxes, VAT, GST, etc. / getting error msg from ot_tax.php

getting error msg from ot_tax.php

Locked

Views: 3,263

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
11 Jan 2007, 8:59 PM
#1
gulfsprite avatar

gulfsprite

New Zenner

Join Date:
Jan 2007
Posts:
3
Plugin Contributions:
0

getting error msg from ot_tax.php

error msg reads:
Warning: reset(); Passed variable is not an array or object i ot_tax.php on line 38

this appears on step 2 of 3 payment information

i have taxes set up as follows:
admin / locations/taxes/zone definitions: florida

admin / locations/taxes/tax classes: taxable goods

admin / locations/taxes/tax rates: priority - 1, tax class - taxable goods, zone - florida, tax rate - 6%

admin / configuration / my store:

Country United States
Zone Florida
Display Prices wtih Tax false
Display Prices with Tax in Admin false
Basis of Product tax shipping
basis of shipping tax shipping
sales tax display status 1

I tried once from a shipping address in Florida and once from a shipping address in Texas and get the same error both times. I can't figure out where I've made my mistake.
Any suggestions?

4 Mar 2007, 10:41 AM
#2
teksimple avatar

teksimple

New Zenner

Join Date:
Mar 2007
Posts:
5
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

Had same problem. Patching with the latest paypal payment module files fixed it...

4 Mar 2007, 2:59 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: getting error msg from ot_tax.php

This link to the current PayPal Patches might be of help ...

http://www.zen-cart.com/forum/showthread.php?t=56216

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Apr 2007, 6:29 PM
#4
mohinder avatar

mohinder

Zen Follower

Join Date:
Mar 2007
Posts:
115
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

I'm having a similar problem. I just installed the paypal patch and it didn't fix anything.. :(

11 Apr 2007, 3:03 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: getting error msg from ot_tax.php

For giggles and grins ... make sure you downloaded the most recent patch ...

Then reload all of the files to your site ...

Uninstall and Reinstall and configure ...

Close your browser ... clear your cache ...

Now give it a try ...

If it still happens, try switching to Classic Template ... does this work now?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Apr 2007, 4:01 AM
#6
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

Ajeh:

For giggles and grins ... make sure you downloaded the most recent patch ...

Then reload all of the files to your site ...

Uninstall and Reinstall and configure ...

Close your browser ... clear your cache ...

Now give it a try ...

If it still happens, try switching to Classic Template ... does this work now?

What if a site is getting this error and not even using Paypal Express?

Danielle

11 Apr 2007, 4:20 AM
#7
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

Ajeh:

For giggles and grins ... make sure you downloaded the most recent patch ...

Then reload all of the files to your site ...

Uninstall and Reinstall and configure ...

Close your browser ... clear your cache ...

Now give it a try ...

If it still happens, try switching to Classic Template ... does this work now?

OK, I tried all of the above. Even tried it in IE where I've never gone to this site before and still no luck. I did try switching templates but the error remained. The error is on step 2 of the checkout process. In addition to the error, the Sub-total and Total show as $0.00.

Danielle

11 Apr 2007, 5:57 AM
#8
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

Another thing, if I turn off the taxes in the order total module, the errors disappear, but the subtotal and total remain at $0.00. We do need the taxes to work, but I just wanted to see if turning it off would solve the problem even, but it only partially fixed it.

Danielle

11 Apr 2007, 7:01 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: getting error msg from ot_tax.php

Danielle:

Another thing, if I turn off the taxes in the order total module, the errors disappear, but the subtotal and total remain at $0.00. We do need the taxes to work, but I just wanted to see if turning it off would solve the problem even, but it only partially fixed it.Sounds like a bit more information is needed ....

  1. What version of Zen Cart ?
  2. What mods / addons have you installed?
  3. What parts of the code have you customized?
  4. When did this error start occurring?
  5. Have you ever had taxes working on this site?
  6. What is the URL to the site?
  7. What currencies do you have activated? Does this happen only in the default currency?
  8. What tax zones do you have?
  9. What tax classes do you have?
  10. What tax rates do you have?
  11. What tax class is assigned to the products in your cart when this occurs?
  12. What tax class is assigned to each of your shipping modules?
  13. What tax class is assigned to each of your order-total modules? What Tax Basis is assigned?
  14. Do you have coupons and/or gift certificates enabled on your site? Are these in-use when these errors occur?
  15. In Admin->Config->My Store, what is your Tax Basis set to for products? for shipping?
  16. In Admin->Config->My Store, are you displaying prices WITH or WITHOUT tax ?
  17. If you had to set up a fresh site to duplicate this problem, what steps would be necessary?

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

11 Apr 2007, 3:14 PM
#10
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

OK, I don't have all of this info, but here is what I do know:

  1. Zen Cart 1.3.7
  2. Imagehandler, EZPages on Sitemap, Cross-Sell.
  3. Not sure
  4. Not sure
  5. No
  6. https://www.wishgiving.com
  7. USD only
  8. California
  9. Taxable Goods
  10. California - 7.75%
  11. Taxable Goods
  12. --none--
  13. Only Shipping, Sub-total, Tax, and Total are turned on and they have no tax settings to set up.
  14. Nope
  15. Shipping & Shipping
  16. Without tax.
  17. Not sure

I actually think that I'm going to do a clean install today in a subdirectory and see what happens.

Danielle

11 Apr 2007, 3:47 PM
#11
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

Hmmm...something is really buggy here...I just did a clean install with the demo products, didn't change any settings at all. Added a product to my cart, and then on the account creation page, entered all my info. When I hit submit the page refreshed. So I entered my info again, this time it gave me an error message saying I already had an account. So I tried to login, and the page refreshed. Tried this several times, same thing kept happing. Clicked the checkout link, and it brought me back to the login screen, where again when I tried to login the screen simply refreshed and nothing else happened.

I then uninstalled, reinstalled again, this time without the demo products, created a test product, added it to my cart, and the same thing happened at the account creation/login page!

What could be causing this? I have never had this happen before. And could it somehow be related to the other problem in this thread?

Thanks!

Danielle

11 Apr 2007, 3:48 PM
#12
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

Oh and I did receive a welcome e-mail both times, and my customer account did show up in the store...

Danielle

11 Apr 2007, 3:53 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: getting error msg from ot_tax.php

Check your Session settings ... what happens if you turn off the Recreate Session?

Some servers are not set up right for this safety to run correctly ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Apr 2007, 3:57 PM
#14
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

Ah thanks, that fixed that problem :)

OK, so yes, the clean install works great. So the problem is somewhere in the files. But I really don't know where. I've already tried replacing the entire admin and the entire includes folder with the original files and the error was still there

Danielle

11 Apr 2007, 4:12 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: getting error msg from ot_tax.php

Try replacing the /includes/modules/order_total directory and /includes/languages/english/modules/order_total directory ...

Then for giggles and grins, run through the Modules ... Order Totals ... and make sure anything you are not using is not installed ... as in click on it and hit Remove ...

Anything you are using ... hit Edit and jot down your settings ... hit Cancel ... hit Remove ... hit Install ... and reconfigure ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Apr 2007, 4:28 PM
#16
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

OK, tried that, but no luck. The only ones installed are Shipping, Sub-total, Tax, and Total. I removed them and reinstalled them after replacing all the order-total files, but no change. The only thing that does change is that if I remove the tax order total module, the error disappears at step 2 of checkout, but the sub-total and total still show $0.00.

Danielle

11 Apr 2007, 4:49 PM
#17
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

I don't know if this would help at all, but if I continue on in the checkout process, on step 3, there is no longer anything in my cart. But if I click on the shopping cart link, everything that is supposed to be there is there. Also, the shipping rates are based on weight, and they are being calculated correctly in step 1. So somewhere between step 1 and step 2 it seems there is a corrupted file? Can anyone point me to any specific files I should be looking at?

Also, I notice that in the Who's Online area of the admin, it does show what is in my cart and the total correctly as I go through the checkout process, even though on the customer end it shows as $0.00.

Danielle

11 Apr 2007, 10:40 PM
#18
mohinder avatar

mohinder

Zen Follower

Join Date:
Mar 2007
Posts:
115
Plugin Contributions:
0

Re: getting error msg from ot_tax.php

Hello, I don't recall ever doing anything to the files except for installing mods and small design changes.

However, I did hire a developer to convert my design to zen cart. He may have done something to the code, but I cannot get ahold of him ATM.

Which files could possibly be causing these errors? Aside from the obvious files in the order_total folder?

12 Apr 2007, 3:25 AM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: getting error msg from ot_tax.php

First make sure that you have the most recent patch installed:
http://www.zen-cart.com/forum/showthread.php?t=56216

Next, go to the Modules ... Payments ...

Write down your settings then remove and install and configure again ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!