numero2 / contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data.
https://www.numero2.de/contao/erweiterungen/storelocator.html
GNU Lesser General Public License v3.0
13 stars 8 forks source link

Exception beim CSV-Import #2

Closed Tastaturberuf closed 12 years ago

Tastaturberuf commented 12 years ago

Hallo Benny,

wenn die Extension beim Einlesen einer CSV-Datei die Koordinaten nicht ermitteln kann bricht sie mit einer Exception ab:

[26-Jun-2012 16:32:40] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Column 'longitude' cannot be null (INSERT INTO tl_storelocator_stores (pid,name,email,url,phone,fax,street,postal,city,country,longitude,latitude) VALUES ('1','HörPartner GmbH','','http://','030 / 40043685','','Greifswalder Str. 90','10409','Berlin','DE',NULL,NULL))' thrown in /mnt/webe/e0/84/52254784/htdocs/hoerpartner/htdocs/system/libraries/Database.php on line 686

Man könnte die Datenbank auf NULL setzen oder Dummy-Werte bei NULL übernehmen.

Beste Grüße, Daniel

Tastaturberuf commented 12 years ago

Ich versuche diese Datei zu importieren: https://www.dropbox.com/s/kp6ftz9nudq987q/filialen_upload.csv

bennyborn commented 12 years ago

fixed in 02d46a6e37efcf612479c3b2e69400653af74e9c