Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Field 'registration_date' doesn't have a default value

Featured Replies

Hallo,

einer meiner Kunden hat folgendes Problem, wenn er eine Subdomain anlegen möchte:

 

A database error occurred

SQLSTATE[HY000]: General error: 1364 Field 'registration_date' doesn't have a default value

 

#0 /var/www/froxlor/lib/classes/database/class.Database.php(72): PDOStatement->execute(Array)
#1 /var/www/froxlor/customer_domains.php(419): Database::pexecute(Object(PDOStatement), Array)
#2 {main}

 

Ich glaube, dass beim letzten Update genau während apt-get am Arbeiten war, ein Zugriff auf Froxlor gemacht wurde, bei dem ebenfalls Fehlermeldungen wegen Datenbank kamen. Vermutlich sind deswegen irgendwelche Werte nicht korrekt in der DB?

 

Was kann ich tun, um den Fehler zu beheben?

 

Vielen Dank & Grüße!

Falco Kleinschmidt

 

 

 

Hast du vllt den mysql-Strictmode aktiviert?

  • Author

Anscheinend ja (MySQL 5.6 aus dotdeb auf Debian Wheezy). Ich habe STRICT_TRANS_TABLES entfernt, musste dann aber noch NO_AUTO_VALUE_ON_ZERO hinzufügen:

 

# Recommended in standard MySQL setup
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_AUTO_VALUE_ON_ZERO
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_VALUE_ON_ZERO


So läuft es ohne Fehlermeldung. Ich hoffe ohne sonstige Probleme :-)

 

Vielen Dank für den Tip!

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.