Ahh.. the thrills of open source... without some of our time, we would be putting out dollars for something that doesn't work.
MaureenT
The section of code that you show in error is looking at the file name! Do you have a space in the name, if so, replace it with a underline. maybe try a short name like test.csv
my test.csv file...
Code:
email,first_name,last_name,dob,gender,company,street_address,suburb,city,state,postcode,country,telephone,fax,newsletter,send_welcome
[email protected],road,wrongway,1910-01-01,m,,1234 deadend,,acton,CA,12345,US,111-111-1111,,0,0
[email protected],mad,baddog,2000-03-21,f,,1234 woody,,acton,CA,12345,US,111-111-1111,,0,0
The above worked without modifying the mod.
I did find a problem when converting the country into it's ID number. My site 'US' code was different then what was hard written. If you have problems, look at this section of code and change it to your country ID, mine was 241.
Code:
if ($country == 'uk') {
$country_id = 222;
} else if ($country == 'us') {
$country_id = 223;
}
See if that helps, the test.csv was tested on a Linux server, running Apache2, MySQL5 and PHP5
Bookmarks