Slovenia CIF

Contrib type: 
CIF
Status: 
Initial upload
Moderation: 
Awaiting moderation

Downloads

Compatibility: 
Ubercart 2.x

Modified (to work with Ubercart 2.x) file from the uploaded by sphism for Ubercart 1.x.
Necessary to have the full set of the European Union countries.

PreviewAttachmentSize
slovenia_705_1.cif2.2 KB
jibbajabba's picture
Offline
Joined: 09/20/2008
Juice: 133
Re: Slovenia CIF

I just tried installing this .cif and got the following error:

Country file slovenia_705_1_0.cif had no install function.

slovenia_install() looks fine though. Any idea why I'd get that error?

jibbajabba's picture
Offline
Joined: 09/20/2008
Juice: 133
UTF-8 not the issue

Tried to convert to UTF-8 just in case, but still getting same error.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15453
Re: UTF-8 not the issue

Hmm... what if you remove the _0 from the filename?

jibbajabba's picture
Offline
Joined: 09/20/2008
Juice: 133
Re: Re: UTF-8 not the issue

Nice. Thanks, Ryan. That did it.

I did get this error, but Slovenia shows up now.

user warning: Duplicate entry '0' for key 1 query: INSERT INTO uc_zones (zone_country_id, zone_code, zone_name) VALUES (705, '', 'Dolenjska'),(705, '', 'Gorenjska'),(705, '', 'Goriška'),(705, '', 'Koroška'),(705, '', 'Notranjsko-kraška'),(705, '', 'Obalno-kraška'),(705, '', 'Osrednjeslovenska'),(705, '', 'Podravska'),(705, '', 'Pomurska'),(705, '', 'Savinjska'),(705, '', 'Spodnjeposavska'),(705, '', 'Zasavska') in /usr/www/users/jibjab/drupal-5/includes/database.mysql.inc on line 174.

kurkuma@drupal.org's picture
Offline
Joined: 03/12/2009
Juice: 218
Files renamed

For some reason it looks like the upload module renames the some files (may be files that already exist) appending a number, strting with "0".
To make them work, simply remove the extra number from the filename.
In this case: "slovenia_705_1_0.cif" -> "slovenia_705_1.cif"

KingAndy's picture
Offline
Joined: 04/01/2009
Juice: 95
Old Gods

"user warning: Duplicate entry '0' for key 1 query: INSERT INTO uc_zones (zone_country_id, zone_code, zone_name)"

I'm going to guess you were running this on an Ubercart 1.x (Drupal 5.x) installation. This CIF is relying on the zone_id field being auto_increment ... which is fine for Drupal 6.x (Ubercart 2) but wasn't the case in 5.x (Ubercart 1).

Looks like this CIF got folded into sphism's original contrib page over here: http://www.ubercart.org/contrib/7504 - anyone who's still on 5.x-1.x can find a suitable file there.