2011-10-22 3:15:27 - PHP Notice: Undefined index: country_id in /home/rhoppern/public_html/store/system/library/tax.php on line 17
2011-10-22 3:15:27 - PHP Notice: Undefined index: zone_id in /home/rhoppern/public_html/store/system/library/tax.php on line 17
2011-10-22 3:15:27 - PHP Notice: Undefined index: country_id in /home/rhoppern/public_html/store/system/library/tax.php on line 31
2011-10-22 3:15:27 - PHP Notice: Undefined index: zone_id in /home/rhoppern/public_html/store/system/library/tax.php on line 31
help!
Reason: Title adjusted
Perhaps there is a way to default the zone and/or country unless there is a non-null zone / country on the customer record?
This is solved in the SVN, but that is an unfinished 1.5.2.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
But I think if after upgrade you go to System->Localisation->Tax Class and update the data there, it will fix this issue.
I am also having this problem. I have looked at Tax classes and made the changes but still have the same problem. Not only am I getting the error but when someone checks out they cannot go past step 2 in the check out process. The minute they check their address and set it to default then there is no problem.
Has anyone got a solution to this.
I think the problem is more bigger than that. I actually fixed in in the database. The address_id field in the customer table was just completely wrong for the users that were in groups. Luckily on this store there were only a few users so it was pretty easy to spot and fix.Qphoria wrote:Well, the upgrade script was designed more for table changes. I didn't spend time on data transplacement for relational tables in this case. But I guess with the new tax_rate_to_customer_group I need to put an entry in..
But I think if after upgrade you go to System->Localisation->Tax Class and update the data there, it will fix this issue.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Code: Select all
Notice: Undefined index: country_id in /usr/www/users/hobbyfy/e-kreopoleio.com/system/library/tax.php on line 17Notice: Undefined index: zone_id in /usr/www/users/hobbyfy/e-kreopoleio.com/system/library/tax.php on line 17Notice: Undefined index: country_id in /usr/www/users/hobbyfy/e-kreopoleio.com/system/library/tax.php on line 31Notice: Undefined index: zone_id in /usr/www/users/hobbyfy/e-kreopoleio.com/system/library/tax.php on line 31
Customer had made an order.
Is any solution?
If you delete a customer in the admin app, and you are logged as the same customer in the catalog app then those errors will happen when browsing the catalog app.
You just need to rewrite some rules in the Tax class constructor, making sure valid records are retrieved from the database.
I get this error specifically in Google Chrome.
It comes with Undefined index: zone_id in tax.php error on the same line. Also, it does not show at the start but it shows after the user tries to checkout. and the error is being displayed redundantly in the subsequent browsing in all the pages.
Did you actually read all the replies in this topic?pramathesh wrote:I have newly installed v 1.5.1.3 and I get this error.
I get this error specifically in Google Chrome.
It comes with Undefined index: zone_id in tax.php error on the same line. Also, it does not show at the start but it shows after the user tries to checkout. and the error is being displayed redundantly in the subsequent browsing in all the pages.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Sorry to say but I really could not get any perfect solution after reading the replies.i2Paq wrote:Did you actually read all the replies in this topic?pramathesh wrote:I have newly installed v 1.5.1.3 and I get this error.
I get this error specifically in Google Chrome.
It comes with Undefined index: zone_id in tax.php error on the same line. Also, it does not show at the start but it shows after the user tries to checkout. and the error is being displayed redundantly in the subsequent browsing in all the pages.
2011-11-29 11:53:41 - PHP Notice: Undefined index: country_id in /home/yoursite/public_html/home/yoursite/public_html/system/library/tax.php on line 17
2011-11-29 11:53:41 - PHP Notice: Undefined index: zone_id in /home/yoursite/public_html/home/yoursite/public_html/system/library/tax.php on line 17
2011-11-29 11:53:41 - PHP Notice: Undefined index: country_id in /home/yoursite/public_html/home/yoursite/public_html/system/library/tax.php on line 31
2011-11-29 11:53:41 - PHP Notice: Undefined index: zone_id in /home/yoursite/public_html/home/yoursite/public_html/system/library/tax.php on line 31
I even did a reinstall and got the above on a refreshed version, the cause of the problem appears to be deletion of customer file account while logged on as customer (I did a test account with myself, and I believe others do this).
To get back to normal you have to input data back into your own Zones, Geo Zones, and Taxes. Then add new account on opencart website and put in same details of yourself, if other try new. This work for me, back to normal now.
I have already slapped myself a couple of times

I think the simple solution would simply be to force even the Admin to enter the Full User info. Name, Address, City, Stat, Postal zone, Country, etc... and not just the simple form of Name, email, phone, pass, newsletter, etc... Make the Admin one just like the Register one does. All on one page with the Address. And of course add in the rest of the Admin features to it.
The Manual entry on the Admin doesn't force you to enter the address and since all of us seem to forget when Manually entering a Customer, we have to actually click the Address + under the General link.
Now really, isn't the Address part of the General information?

Cheers!
Gil
<< Removed >>Now really, isn't the Address part of the General information?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In system/library/tax.php I located:
Code: Select all
$this->setShippingAddress($address_query->row['country_id'], $address_query->row['zone_id']);
Code: Select all
$this->setShippingAddress((isset($address_query->row['country_id']) ? $address_query->row['country_id'] : 0), (isset($address_query->row['zone_id']) ? $address_query->row['zone_id'] : 0);
Users browsing this forum: No registered users and 118 guests