Egal, ob ich ein Contao-Update, ein Modul-Update vornehmen möchte, funktioniert die Datenbankaktualisierung nicht. Ich erhalte immer folgenden Fehler:
bild_1.png
Das Error-File zeigt folgendes:
[01-Feb-2014 12:53:06 Europe/Berlin] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Duplicate entry '0-Bild1.jpg' for key 2 (ALTER TABLE `tl_files` CHANGE `pid` `pid` int(10) unsigned NOT NULL default '0'' thrown in /pages/64/14/d0008560/home/htdocs/domain.de/system/modules/core/library/Contao/Database/Statement.php on line 282
#0 /pages/64/14/d0008560/home/htdocs/domain.de/system/modules/core/library/Contao/Database.php(202): Contao\Database\Statement->query('ALTER TABLE `tl...')
#1 /pages/64/14/d0008560/home/htdocs/domain.de/system/modules/repository/classes/RepositoryManager.php(466): Contao\Database->query('ALTER TABLE `tl...')
#2 /pages/64/14/d0008560/home/htdocs/domain.de/system/modules/repository/classes/RepositoryBackendModule.php(150): RepositoryManager->update('database')
#3 /pages/64/14/d0008560/home/htdocs/domain.de/system/modules/core/classes/BackendModule.php(100): RepositoryBackendModule->compile()
#4 /pages/64/14/d0008560/home/htdocs/domain.de/system/modules/repository/classes/RepositoryBackendModule.php(72): Contao\BackendModule->generate()
#5 /pages/64/14/d0008560/home/htdocs/domain.de/system/modules/repository/classes/RepositoryManager.php(50): RepositoryBackendModule->generate()
#6 /pages/64/14/d0008560/home/htdocs/domain.de/system/modules/core/classes/Backend.php(266): RepositoryManager->generate()
#7 /pages/64/14/d0008560/home/htdocs/domain.de/contao/main.php(129): Contao\Backend->getBackendModule('repository_mana...')
#8 /pages/64/14/d0008560/home/htdocs/domain.de/contao/main.php(276): Main->run()
#9 {main}
Ich komme da einfach nicht weiter und bitte um Unterstützung.
//Edit: Ich habe die Datenbank immer nur schrittweise aktualisiert, dann hat es funktioniert.
Lesezeichen