Tastaturberuf / anyStores

Contao-Module: Organize any locations with geolocation search.
GNU Lesser General Public License v3.0
11 stars 7 forks source link

Kann keine neuen Standorte anlegen #85

Closed wernerjoss closed 3 years ago

wernerjoss commented 3 years ago

hallo, contao 4.4.55, neue Installation incl. anystores plugin. Beim Versuch, einen neuen Standort anzulegen, escheint folgendes:

Internal Server Error Was ist das Problem? An exception occurred while executing 'INSERT INTO tl_anystores (pid, tstamp) VALUES ('1', 0)': SQLSTATE[HY000]: General error: 1364 Field 'longitude' doesn't have a default value

Dasselbe bei einer bestehenden Installation mit ca. 250 Standorten (die alle richtig angezeigt wedern und auch bearbeitet werden können). gibt es eine Abhilfe ?

stefansl commented 3 years ago

Probier mal als Quickfix: https://github.com/Tastaturberuf/anyStores/blob/48d1d7370708f629ee753d1ffbc98702ec50900c/dca/tl_anystores.php#L459
in 'sql' => "float(10,6) NOT NULL default '0.00'" ändern. Das Gleiche darunter beim Feld latitude.

Danach einmal den Anwendungscache löschen und nochmal das Installtool starten.

stefansl commented 3 years ago

Achtung! Hatte ein paar Fehler drin, hab's geändert ...

wernerjoss commented 3 years ago

Ok, super, danke, das ist die Lösung 😄 . ich habe den Fix jetzt eingefügt und einen Pull Request gestartet, mal sehen ob sich da noch einer drum kümmert...

Tastaturberuf commented 3 years ago

Danke für eure Hilfe :) Fixed in #86