Zitat von
Spooky
Du könntest den path Index von tl_files manuell löschen. Bzw. jeden Index, wo dieses Problem auftritt.
Ich habe jetzt mal den Stacktrace kopiert, den ich bekomme wenn ich versuche ein Element zu erstellen.
Ich bin leider vollkommen überfragt, gerne probiere ich auch nochmal alles aus was die mögliche Ursache sein könnte. Die Seite ist von einem Kunden und ich muss da nächste Woche den Kunden dazu schulen…
Code:
Doctrine\DBAL\Exception\UniqueConstraintViolationException:
An exception occurred while executing 'INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES ('auto', 'text', 'above', 'ascending', 4, 0, 0, 0, 'fade', 'fadeout', '100', '14', 0, '100', 0, 'ascending', 'com_default', 12624, 16, 'tl_article', 0)':
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY'
at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:55
at Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception occurred while executing \'INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)\':SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry \'0\' for key \'PRIMARY\'', object(PDOException))
(vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:166)
at Doctrine\DBAL\DBALException::wrapException(object(Driver), object(PDOException), 'An exception occurred while executing \'INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)\':SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry \'0\' for key \'PRIMARY\'')
(vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:146)
at Doctrine\DBAL\DBALException::driverExceptionDuringQuery(object(Driver), object(PDOException), 'INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)', array())
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:912)
at Doctrine\DBAL\Connection->executeQuery('INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php:277)
at Contao\Database\Statement->query()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php:251)
at Contao\Database\Statement->execute()
(vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:682)
at Contao\DC_Table->create()
(vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:620)
at Contao\Backend->getBackendModule('article', null)
(vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:131)
at Contao\BackendMain->run()
(vendor/contao/core-bundle/src/Controller/BackendController.php:55)
at Contao\CoreBundle\Controller\BackendController->mainAction()
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/app_dev.php:69)
Code:
Doctrine\DBAL\Driver\PDOException:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY'
at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:80
at Doctrine\DBAL\Driver\PDOConnection->query('INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)')
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:909)
at Doctrine\DBAL\Connection->executeQuery('INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php:277)
at Contao\Database\Statement->query()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php:251)
at Contao\Database\Statement->execute()
(vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:682)
at Contao\DC_Table->create()
(vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:620)
at Contao\Backend->getBackendModule('article', null)
(vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:131)
at Contao\BackendMain->run()
(vendor/contao/core-bundle/src/Controller/BackendController.php:55)
at Contao\CoreBundle\Controller\BackendController->mainAction()
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/app_dev.php:69)
Code:
PDOException:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY'
at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:75
at PDO->query('INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)')
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:75)
at Doctrine\DBAL\Driver\PDOConnection->query('INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)')
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:909)
at Doctrine\DBAL\Connection->executeQuery('INSERT INTO tl_content (`autogrid_mode`, `type`, `floating`, `sortOrder`, `perRow`, `sliderStartSlide`, `revolutionslider_data_start`, `revolutionslider_data_delay`, `revolutionslider_data_animation_start`, `revolutionslider_data_animation_end`, `revolutionslider_data_opacity`, `revolutionslider_text_fontsize`, `revolutionslider_data_start_OUT`, `revolutionslider_data_opacity_OUT`, `revolutionslider_data_delay_OUT`, `com_order`, `com_template`, `pid`, `sorting`, `ptable`, `tstamp`) VALUES (\'auto\', \'text\', \'above\', \'ascending\', 4, 0, 0, 0, \'fade\', \'fadeout\', \'100\', \'14\', 0, \'100\', 0, \'ascending\', \'com_default\', 12624, 16, \'tl_article\', 0)')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php:277)
at Contao\Database\Statement->query()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php:251)
at Contao\Database\Statement->execute()
(vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:682)
at Contao\DC_Table->create()
(vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:620)
at Contao\Backend->getBackendModule('article', null)
(vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:131)
at Contao\BackendMain->run()
(vendor/contao/core-bundle/src/Controller/BackendController.php:55)
at Contao\CoreBundle\Controller\BackendController->mainAction()
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/app_dev.php:69)