WebSite X5Help Center

 
Manuel H.
Manuel H.
User

Generic Error  de

Author: Manuel H.
Visited 1483, Followers 1, Shared 0  

Hallo ich bekomme beim Abschicken einer Bestellung (wenn ich die Daten in eine Datenbank schreiben möchte) im Webshop ein Popup mit: "Generic Error". Die Daten landen in der Datenbank und die Mails sowohl an den Kunden als auch an den Empfänger der Bestellung kommen an.

Die installierte PHP Version ist die 5.4.21

Hat hier jemand eine Idee dazu?

Danke

Posted on the
6 ANSWERS - 1 CORRECT
Manuel H.
Manuel H.
User
Author

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/test/admin/orders.php on line 91

Hilft das vielleicht weiter!?

Read more
Posted on the from Manuel H.
Manuel H.
Manuel H.
User
Author

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/test/res/x5engine.php on line 1946


oder das hier...

Read more
Posted on the from Manuel H.
Andreas S.
Andreas S.
Moderator

Das dürfte ein Zeitzonenproblem sein ! Ob das von der Datenbank oder vom Skript ein Fehler ist muss sich INCO direkt anschauen.  Ein Link zum PRoblem wäre nicht schlecht.

Read more
Posted on the from Andreas S.
Manuel H.
Manuel H.
User
Author

Hi Andreas,

danke für die Antwort. Ich habe das Zeitproblem mit "date_default_timezone_set('Europe/Berlin');" in den betroffenen Dateien erst einmal Temporär behoben.

Der "Generic Error" kommt jedoch weiterhin.http://www.fahrzeug-codierung.de/test/shop.html ist der "Shop"

Read more
Posted on the from Manuel H.
Manuel H.
Manuel H.
User
Author

Debuging hat aktuell folgendes ergeben:

- Eintraege aus dem Shop in der Datenbank sind Zeitversetzt um -1h.

- Setze ich manuell die Zeile "date_default_timezone_set('Europe/Berlin');" in der xSettings.php ist der Fehler behoben. Hier wäre eine Möglichkeit in INCO selbst eine Zeitzone wählen, die den Eintrag übernimmt praktisch

Read more
Posted on the from Manuel H.
Manuel H.
Manuel H.
User
Author

So die Lösung des Problems:

In der PHP.ini ab Version 5.3 ist "date.timezone =" auskomentiert. Abhilfe schafft hier die Zeile "date.timezone = Europe/Berlin" ein zu kommentieren. Danach ist auch die date.timezone Master Value gesetzt. Diese wird (Warum auch immer) benötigt. Die Local Value der date.timezone welche über .htaccess etc. konfiguriert werden kann reicht für den Shop nicht aus.

Read more
Posted on the from Manuel H.