Ergebnis 1 bis 5 von 5

Thema: Query error: Duplicate entry

  1. #1
    Contao-Nutzer
    Registriert seit
    19.06.2009.
    Beiträge
    80

    Standard Query error: Duplicate entry

    Contao 3.4:

    Wenn man versucht, sich anzumelden, bekommt man folgenden Fehler. Das sagt mir nicht viel, und ein falsches Password dürfte es nicht sein. Was kann ich tun? Ich habe nach '491266' in phpMyAdmin gesucht, aber ohne Erfolg.

    Vielen Dank für jegliche Hilfe!

    Code:
    [20-Apr-2015 15:26:24 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Duplicate entry '491266' for key 'PRIMARY' (INSERT INTO tl_log (tstamp, source, action, username, text, func, ip, browser) VALUES(1429543584, 'BE', 'ACCESS', '', 'Invalid password submitted for username "true"', 'Contao\\User::login', '86.177.166.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36'))' thrown in /home/fightforsight/public_html/system/modules/core/library/Contao/Database/Statement.php on line 297
    #0 /home/fightforsight/public_html/system/modules/core/library/Contao/Database/Statement.php(266): Contao\Database\Statement->query()
    #1 /home/fightforsight/public_html/system/modules/core/library/Contao/System.php(177): Contao\Database\Statement->execute(1429543584, 'BE', 'ACCESS', '', 'Invalid passwor...', 'Contao\User::lo...', '86.177.166.0', 'Mozilla/5.0 (Ma...')
    #2 /home/fightforsight/public_html/system/modules/core/library/Contao/User.php(343): Contao\System::log('Invalid passwor...', 'Contao\User::lo...', 'ACCESS')
    #3 /home/fightforsight/public_html/system/modules/core/controllers/BackendIndex.php(46): Contao\User->login()
    #4 /home/fightforsight/public_html/contao/index.php(21): Contao\BackendIndex->__construct()
    #5 {main}
    Der Fehler scheint nicht nur zu kommen, wenn man sich anmelden will. Hier noch ein paar mehr Fälle aus dem Log:

    Code:
    [20-Apr-2015 02:36:47 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Duplicate entry '491266' for key 'PRIMARY' (INSERT INTO tl_log (tstamp, source, action, username, text, func, ip, browser) VALUES(1429497407, 'FE', 'CRON', '', 'Purged the temp folder', 'Contao\\Automator::purgeTempFolder', '123.125.71.0', 'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)'))' thrown in /home/fightforsight/public_html/system/modules/core/library/Contao/Database/Statement.php on line 297
    #0 /home/fightforsight/public_html/system/modules/core/library/Contao/Database/Statement.php(266): Contao\Database\Statement->query()
    #1 /home/fightforsight/public_html/system/modules/core/library/Contao/System.php(177): Contao\Database\Statement->execute(1429497407, 'FE', 'CRON', '', 'Purged the temp...', 'Contao\Automato...', '123.125.71.0', 'Mozilla/5.0 (co...')
    #2 /home/fightforsight/public_html/system/modules/core/library/Contao/Automator.php(249): Contao\System::log('Purged the temp...', 'Contao\Automato...', 'CRON')
    #3 /home/fightforsight/public_html/system/modules/core/controllers/FrontendCron.php(109): Contao\Automator->purgeTempFolder()
    #4 /home/fightforsight/public_html/system/cron/cron.php(22): Contao\FrontendCron->run()
    #5 {main}
    Code:
    [20-Apr-2015 02:37:09 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Duplicate entry '491266' for key 'PRIMARY' (INSERT INTO tl_log (tstamp, source, action, username, text, func, ip, browser) VALUES(1429497429, 'FE', 'ERROR', '', 'No active page for page ID "job-opportunities", host "fightforsight.org.uk" and languages "ru, uk, be, en" (http://fightforsight.org.uk/job-opportunities)', 'Contao\\PageError404::generate', '37.140.141.0', 'Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)'))' thrown in /home/fightforsight/public_html/system/modules/core/library/Contao/Database/Statement.php on line 297
    #0 /home/fightforsight/public_html/system/modules/core/library/Contao/Database/Statement.php(266): Contao\Database\Statement->query()
    #1 /home/fightforsight/public_html/system/modules/core/library/Contao/System.php(177): Contao\Database\Statement->execute(1429497429, 'FE', 'ERROR', '', 'No active page ...', 'Contao\PageErro...', '37.140.141.0', 'Mozilla/5.0 (co...')
    #2 /home/fightforsight/public_html/system/modules/core/pages/PageError404.php(51): Contao\System::log('No active page ...', 'Contao\PageErro...', 'ERROR')
    #3 /home/fightforsight/public_html/system/modules/core/controllers/FrontendIndex.php(154): Contao\PageError404->generate('job-opportuniti...')
    #4 /home/fightforsight/public_html/index.php(22): Contao\FrontendIndex->run()
    #5 {main}
    Geändert von spirelli (20.04.2015 um 16:58 Uhr)

  2. #2
    Contao-Urgestein Avatar von Kahmoon
    Registriert seit
    22.06.2009.
    Ort
    München
    Beiträge
    5.280

    Standard

    Leere mal deine Tabelle tl_log. Die Fehlermeldung besagt das es bereits einen Eintrag mit der ID "491266" gibt und er die Anmeldung mit falschem Passwort dort nicht reinschreiben kann.

    Wurde die Installation umgezogen oder was an der DB gewurschtelt?

  3. #3
    Contao-Fan Avatar von WilhelmTell
    Registriert seit
    12.12.2014.
    Beiträge
    316

    Standard

    Zitat Zitat von Kahmoon Beitrag anzeigen
    Leere mal deine Tabelle tl_log.
    Kann man doch auch im Backend unter Systemwartung machen, wenn ich mich nicht ganz täusche.

  4. #4
    Contao-Nutzer
    Registriert seit
    19.06.2009.
    Beiträge
    80

    Standard

    Vielen Dank. Umgezogen oder verändert wurde eigentlich nichts.

    I habe DELETE FROM `tl_log` ausgeführt, und die Sache funktioniert wieder!

    Danke nochmal!

  5. #5
    Contao-Urgestein Avatar von Kahmoon
    Registriert seit
    22.06.2009.
    Ort
    München
    Beiträge
    5.280

    Standard

    Ja, entweder über PHPMyAdmin oder bei Systemwartung. Wenn er das DB Tool schon offen hat dann da

    Edit:
    Hat sichs chon erledigt

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •