Closed (fixed)
Project:
Ubercart
Version:
7.x-3.1
Component:
Other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 May 2012 at 22:23 UTC
Updated:
6 Jun 2012 at 02:22 UTC
When I updated to the latest version I now get the following error...
Undefined offset: 0 in uc_store_process_address_field() (line 334 of /sites/all/modules/ubercart/uc_store/uc_store.module).
This is displayed on the store Configuration page and invoice pages. I didnt have an address in the store config page before the update. If I add my address details in the "Store Address" tab the error repeats itself twice. If I leave it blank it just displays once.
I only sell download products - and dont use any address fields for me or customers.
Would be nice if I could get rid of this error - I think customers can see it. Site seems to be working fine.
Comments
Comment #1
tr commentedThe only way I can see that this could happen is if you don't have your store country installed/enabled at admin/store/settings/countries. I can't reproduce this otherwise.
Comment #2
redrex commentedThanks for the reply - this fixed the issue.
Thanks again.
Comment #3
tr commentedComment #5
benitezv1ang commentedHi TR
Please help me out with this
how do I install/enable a country on admin/store/settings/countries
if Coutries tab is empty
I have 3 tabs
1. Coutries tab wich is empty
2. Address Field tab
First name enable REQUIRED
Last name enable REQUIRED
Company enable
Street address 1 enable REQUIRED
Street address 2 enable
City enable REQUIRED
State/Province enable REQUIRED
Country enable REQUIRED
Postal code enable REQUIRED
Phone numbe enable REQUIRED
3. Address Formats Tab
ADDRESS FORMAT VARIABLES
!first_name Customer's first name
!last_name Customer's last name
!company Company name
!street1 First street address field
!street2 Second street address field
!city City name
!zone_name Full name of the zone
!zone_code Abbreviation of the zone
!postal_code Postal code
!country_name Name of the country
!country_code2 2 digit country abbreviation
!country_code3 3 digit country abbreviation
Comment #6
benitezv1ang commentedI found out
modules\ubercart\uc_store\countries
folder was empty
Thanks any way