Invalid datetime format: 1292 Incorrect datetime value: '1666646235' for column
Ich habe ein Update von 3.5.40 auf 4.9 durchgeführt. War schwierig und zeitraubend und mit vielen Problemen behaftet, die ich aber soweit alle gelöst habe. Pro Forma habe ich noch einen Test des Kontaktformulars durchgeführt, und da wird mir nicht die Dankesseite angezeigt sondern Fehler! Das Formular ist angekommen, aber der Fehler muss weg.
In der Log-Datei steht: Invalid datetime format: 1292 Incorrect datetime value: '1666646235' for column...
Beim googlen fand ich Hinweise, dass es mit der Umstellung der DB auf den Strict-Mode (der beim Update gefordert wurde und den ich durchgeführt habe) zusammenhängen soll.
Muss ich an der Struktur der DB - speziell dem Datumsfeld im Formular was ändern?
Die Spalte hat folgendes Format:
tstamp int(10) UNSIGNED Nein 0
Hat jemand eine Idee? Danke im Voraus!
Liste der Anhänge anzeigen (Anzahl: 1)
Leider weiß ich nicht, was ein Stack Trace ist. Ich habe die Log-Datei hochgeladen. Ich hoffe, dass es hilft.
Ist das jetzt das Richtige?
Code:
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing 'INSERT INTO kontakte (`tstamp`, `vorname`, `name`, `email`, `telefon`, `subject`, `message`, `referrer`) VALUES (1666901903, 'Testitia', 'Testerin', 'test@test.de', '0123456789', 'allgemein', 'Test', 'a:1:{i:0;s:7:\"anderes\";}')':
SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '1666901903' for column `db49-bienenmensch`.`kontakte`.`tstamp` at row 1
at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128
at Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182)
at Doctrine\DBAL\DBALException::wrapException()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:159)
at Doctrine\DBAL\DBALException::driverExceptionDuringQuery()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:2226)
at Doctrine\DBAL\Connection->handleExceptionDuringQuery()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1313)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php:274)
at Contao\Database\Statement->query()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php:248)
at Contao\Database\Statement->execute()
(vendor/contao/core-bundle/src/Resources/contao/forms/Form.php:541)
at Contao\Form->processFormData()
(vendor/contao/core-bundle/src/Resources/contao/forms/Form.php:259)
at Contao\Form->compile()
(vendor/contao/core-bundle/src/Resources/contao/classes/Hybrid.php:232)
at Contao\Hybrid->generate()
(vendor/contao/core-bundle/src/Resources/contao/forms/Form.php:94)
at Contao\Form->generate()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:624)
at Contao\Controller::getContentElement()
(vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:218)
at Contao\ModuleArticle->compile()
(vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
at Contao\Module->generate()
(vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:71)
at Contao\ModuleArticle->generate()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:552)
at Contao\Controller::getArticle()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:393)
at Contao\Controller::getFrontendModule()
(vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:173)
at Contao\PageRegular->prepare()
(vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:53)
at Contao\PageRegular->getResponse()
(vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:343)
at Contao\FrontendIndex->renderPage()
(vendor/symfony/http-kernel/HttpKernel.php:159)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:81)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:201)
at Symfony\Component\HttpKernel\Kernel->handle()
(web/index.php:31)