Beee4life / acf-city-selector

An ACF extension to create a new field type, where you can select a city based on country and provence/state.
37 stars 15 forks source link

Warning: strpos() expects parameter 1 to be string #94

Open bahiirwa opened 2 years ago

bahiirwa commented 2 years ago

When I try to add new data through pasting from clipboard or typing

Screenshot 2021-08-23 at 14 47 42

the data will get validated. However, when I try to click import csv data, I get this error. However, using a .csv file is alright. No errors.

( ! ) Warning: strpos() expects parameter 1 to be string, array given in public/wp-content/plugins/acf-city-selector/inc/acfcs-functions.php on line 622
Beee4life commented 2 years ago

Can u give some more context plz ?

According to the error you are feeding multiple csv files at once... You can only process 1 at a time.

bahiirwa commented 2 years ago

I fixed the description. Let me know if it is better for the testing. I tried it with one line like the placeholder above, tried with two lines, same issue. I was using a ; delimiter. I did not try the ,

Beee4life commented 2 years ago

ok, so what are you trying to import ? raw csv data ? or a file ?

Your screenshot shows raw, but your text indicates it's a file upload, so i'm not sure