Ergebnis 1 bis 3 von 3

Thema: Contao Kopie erzeugt 500 Error

  1. #1
    Contao-Nutzer
    Registriert seit
    16.11.2017.
    Beiträge
    41

    Standard Contao Kopie erzeugt 500 Error

    Hallo,

    bei einem derzeitigen Projekt sollte ich aufgrund einer Seitenüberarbeitung eine Kopie der Seite erstellen (Contao 3.5.28). Diese habe ich auf einen Testserver bei 1und1 gezogen und sobald ich die Seite aufrufe, lädt entweder nichts oder ich erhalte einen 500 Error.
    Meine .htaccess habe ich bereits bereinigt und auch durch "http://www.htaccesscheck.com/" durchlaufen lassen, selbst wenn ich die Datei komplett lösche lädt die Seite auch nicht.
    Ebenfalls habe ich schon versucht Contao im coreOnlyMode laufen zu lassen, dann lädt zumindest die Errorseite von Contao.

    Installierte Plugins sind im Screenshot anbei zu sehen.

    Hat jemand eine Idee?

    Anbei die Fehlermeldungen bei jeweils aktivieretem coreOnlyMode und ohne diesen:

    Ohne coreOnlyMode:
    Code:
    [17-Oct-2018 10:25:58 Europe/Berlin] 
    PHP Warning: mysqli::real_connect(): (HY000/2002): Connection refused in /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database/Mysqli.php on line 46
    #0 [internal function]: __error(2, 'mysqli::real_co...', '/homepages/44/d...', 46, Array)
    
    #2 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysqli->connect()
    #3 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
    #4 [internal function]: Contao\Database::getInstance()
    #5 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #6 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/User.php(158): Contao\System->import('Database')
    #7 /homepages/44/d141589236/htdocs/*/system/modules/core/classes/FrontendUser.php(62): Contao\User->__construct()
    #8 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/User.php(220): Contao\FrontendUser->__construct()
    #9 [internal function]: Contao\User::getInstance()
    #10 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #11 /homepages/44/d141589236/htdocs/*/system/modules/core/controllers/FrontendIndex.php(31): Contao\System->import('FrontendUser', 'User')
    #12 /homepages/44/d141589236/htdocs/*/index.php(19): Contao\FrontendIndex->__construct()
    #13 {main}
    
    [17-Oct-2018 10:25:58 Europe/Berlin] PHP Fatal error: Uncaught exception 'Exception' with message 'Connection refused' thrown in /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database/Mysqli.php on line 50
    #0 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysqli->connect()
    #1 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
    #2 [internal function]: Contao\Database::getInstance()
    #3 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #4 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/User.php(158): Contao\System->import('Database')
    #5 /homepages/44/d141589236/htdocs/*/system/modules/core/classes/FrontendUser.php(62): Contao\User->__construct()
    #6 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/User.php(220): Contao\FrontendUser->__construct()
    #7 [internal function]: Contao\User::getInstance()
    #8 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #9 /homepages/44/d141589236/htdocs/*/system/modules/core/controllers/FrontendIndex.php(31): Contao\System->import('FrontendUser', 'User')
    #10 /homepages/44/d141589236/htdocs/*/index.php(19): Contao\FrontendIndex->__construct()
    #11 {main}
    Mit coreOnlyMode:
    Code:
    [17-Oct-2018 10:27:39 Europe/Berlin] 
    PHP Warning: mysqli::real_connect(): (HY000/2002): Connection refused in /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database/Mysqli.php on line 46
    #0 [internal function]: __error(2, 'mysqli::real_co...', '/homepages/44/d...', 46, Array)
    
    #2 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysqli->connect()
    #3 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
    #4 [internal function]: Contao\Database::getInstance()
    #5 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #6 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/User.php(158): Contao\System->import('Database')
    #7 /homepages/44/d141589236/htdocs/*/system/modules/core/classes/FrontendUser.php(62): Contao\User->__construct()
    #8 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/User.php(220): Contao\FrontendUser->__construct()
    #9 [internal function]: Contao\User::getInstance()
    #10 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #11 /homepages/44/d141589236/htdocs/*/system/modules/core/controllers/FrontendIndex.php(31): Contao\System->import('FrontendUser', 'User')
    #12 /homepages/44/d141589236/htdocs/*/index.php(19): Contao\FrontendIndex->__construct()
    #13 {main}
    
    [17-Oct-2018 10:27:39 Europe/Berlin] PHP Fatal error: Uncaught exception 'Exception' with message 'Connection refused' thrown in /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database/Mysqli.php on line 50
    #0 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysqli->connect()
    #1 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
    #2 [internal function]: Contao\Database::getInstance()
    #3 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #4 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/User.php(158): Contao\System->import('Database')
    #5 /homepages/44/d141589236/htdocs/*/system/modules/core/classes/FrontendUser.php(62): Contao\User->__construct()
    #6 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/User.php(220): Contao\FrontendUser->__construct()
    #7 [internal function]: Contao\User::getInstance()
    #8 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #9 /homepages/44/d141589236/htdocs/*/system/modules/core/controllers/FrontendIndex.php(31): Contao\System->import('FrontendUser', 'User')
    #10 /homepages/44/d141589236/htdocs/*/index.php(19): Contao\FrontendIndex->__construct()
    #11 {main}
    [17-Oct-2018 10:27:40 Europe/Berlin] 
    PHP Warning: mysqli::real_connect(): (HY000/2002): Connection refused in /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database/Mysqli.php on line 46
    #0 [internal function]: __error(2, 'mysqli::real_co...', '/homepages/44/d...', 46, Array)
    
    #2 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysqli->connect()
    #3 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
    #4 [internal function]: Contao\Database::getInstance()
    #5 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
    #6 /homepages/44/d141589236/htdocs/*/system/modules/core/classes/Frontend.php(49): Contao\System->import('Database')
    #7 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(160): Contao\Frontend->__construct()
    #8 /homepages/44/d141589236/htdocs/*/system/modules/core/library/Contao/System.php(340): Contao\System::importStatic('DMAElementGener...')
    #9 /homepages/44/d141589236/htdocs/*/system/modules/core/templates/backend/be_error.html5(5): Contao\System::loadLanguageFile('exception')
    #10 /homepages/44/d141589236/htdocs/*/system/helper/functions.php(151): include('/homepages/44/d...')
    #11 /homepages/44/d141589236/htdocs/*/system/helper/functions.php(131): die_nicely('be_error', 'An error occurr...')
    #12 /homepages/44/d141589236/htdocs/*/system/helper/functions.php(115): show_help_message()
    #13 [internal function]: __exception(Object(Exception))
    #14 {main}
    Danke schonmal im vorraus!
    Angehängte Grafiken Angehängte Grafiken
    Geändert von Filotronik (17.10.2018 um 11:52 Uhr)

  2. #2
    Contao-Urgestein Avatar von fiedsch
    Registriert seit
    09.07.2009.
    Ort
    München
    Beiträge
    2.949

    Standard

    Dei Datenbankszugangsdaten sind wohl falsch, denn sonst würde es kein Verbindungsproblem geben:

    Code:
    Uncaught exception 'Exception' with message 'Connection refused' thrown in /homepages/44/d141589236/htdocs/_greenmech/system/modules/core/library/Contao/Database/Mysqli.php
    (Du solltest Deinen Post oben noch bearbeiten und die Zugangsdaten entfernen).
    Contao-Community-Treff Bayern: http://www.contao-bayern.de

  3. #3
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.087
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Läuft die Kopie auf dem selben Server wie das Original? Die Fehlermeldungen deuten jedenfalls darauf hin, dass die Verbindung zur Datenbank fehlschlägt, also dass die Verbindungsdaten nicht passen.

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
  •