Hilfe! localconfig.php geändert und Webseite weg
Heute wollte ich auf mein BAckend zugreifen und bekam die Fehlermeldung
An error occurred while executing this script!
If you are a Contao user, contact the administrator of your website.
Open file system/logs/error.log and search for a corresponding entry.
Open file system/config/localconfig.php and add the following line:
$GLOBALS['TL_CONFIG']['displayErrors'] = true;
Read the Contao FAQs or visit the Contao support page.
Bis dahin konnte ich zumindest die Webseite selber öffnen.
Hab dann in meinem Dreamweaver die lokale "localconfig.php" um den Satz
$GLOBALS['TL_CONFIG']['displayErrors'] = true;
ergänzt und hochgeladen, woraufhin nicht mal mehr die Webseite angezeigt wurde,
sondern eine andere Fehlermeldung:
Fatal error: Uncaught exception Exception with message Could not connect to database (Access denied for user 'www-data'@'localhost' (using password: NO)) thrown in /var/www/vhosts/***.de/httpdocs/system/libraries/Database.php on line 78
#0 /var/www/vhosts/***.de/httpdocs/system/libraries/Database.php(136): Database->__construct()
#1 [internal function]: Database::getInstance()
#2 /var/www/vhosts/***.de/httpdocs/system/libraries/System.php(147): call_user_func(Array)
#3 /var/www/vhosts/***.de/httpdocs/system/libraries/Model.php(86): System->import('Database')
#4 /var/www/vhosts/***.de/httpdocs/system/modules/frontend/FrontendUser.php(91): Model->__construct()
#5 /var/www/vhosts/***.de/httpdocs/system/modules/frontend/FrontendUser.php(173): FrontendUser->__construct()
#6 [internal function]: FrontendUser::getInstance()
#7 /var/www/vhosts/***.de/httpdocs/system/libraries/System.php(147): call_user_func(Array)
#8 /var/www/vhosts/***.de/httpdocs/index.php(59): System->import('FrontendUser', 'User')
#9 /var/www/vhosts/***.de/httpdocs/index.php(318): Index->__construct()
#10 {main}
Ich hab die Änderung rückgängig gemacht und wie ursprüngliche localconfig.php wieder hochgeladen und nun erscheint
unter meiner URL die Fehlermeldung:
An error occurred while executing this script!
If you are a Contao user, contact the administrator of your website.
Open file system/logs/error.log and search for a corresponding entry.
Open file system/config/localconfig.php and add the following line:
$GLOBALS['TL_CONFIG']['displayErrors'] = true;
Read the Contao FAQs or visit the Contao support page.
Was mach ich denn jetzt?! Kann mir jemand helfen?
lg,
Susanne
Danke für eure Unterstützung
Das klingt gut, weil in meiner remote - localconfig.php gar nichts drin stand außer
Zitat:
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');>
und zwar bei beiden Webseiten mit denen ich nicht mehr ins backend komme.
Jetzt steht drin:
Zitat:
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
$GLOBALS['TL_CONFIG']['useFTP'] = true;
$GLOBALS['TL_CONFIG']['ftpHost'] = '*
www.meine-domain.de*';
$GLOBALS['TL_CONFIG']['ftpPath'] = '/httpdocs/';
$GLOBALS['TL_CONFIG']['ftpUser'] = '*ftp-benutzername lt. site definition*';
$GLOBALS['TL_CONFIG']['ftpPass'] = '*ftp passwort lt. site definition*';
$GLOBALS['TL_CONFIG']['displayErrors'] = true;
?>
geht trotzdem nicht. :/
Ich habe diese Änderungen nun direkt in der remote datei localconfig.php gemacht.
Sollte ich es lieber mit der lokalen Datei machen und sie dann hochladen? oder ist das egal?
*denkdenk