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

tr’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

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

redrex’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Thanks for the reply - this fixed the issue.

Thanks again.

tr’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

benitezv1ang’s picture

Hi 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

benitezv1ang’s picture

I found out
modules\ubercart\uc_store\countries
folder was empty
Thanks any way