Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fehlermeldung nach Umzug des Provider-Servers #1438

Closed
ghost opened this issue Feb 28, 2020 · 2 comments
Closed

Fehlermeldung nach Umzug des Provider-Servers #1438

ghost opened this issue Feb 28, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 28, 2020

BITTE kann mir jemand helfen? Nachdem mein Provider vor ein paar Tagen einen Serverumzug vollzogen hat, sieht meine Webseite, die ich mit Contao eingerichtet hatte, nun wie folgt aus:

Contao_Screenshot

Die letzte Fehlermeldung aus besagtem error.log sieht so aus:
[28-Feb-2020 13:08:00 GMT] PHP Fatal error: Uncaught exception 'Error' with message 'Call to undefined function Contao\Database\mysql_connect()' thrown in /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/Database/Mysql.php on line 64
#0 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/Database.php(77): Contao\Database\Mysql->connect()
#1 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/Database.php(160): Contao\Database->__construct()
#2 [internal function]: Contao\Database::getInstance()
#3 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/System.php(110): call_user_func()
#4 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/User.php(89): Contao\System->import()
#5 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/classes/FrontendUser.php(79): Contao\User->__construct()
#6 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/User.php(151): Contao\FrontendUser->__construct()
#7 [internal function]: Contao\User::getInstance()
#8 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/System.php(110): call_user_func()
#9 /var/www/vhosts/infoandgrafic.de/httpdocs/index.php(41): Contao\System->import()
#10 /var/www/vhosts/infoandgrafic.de/httpdocs/index.php(414): Index->__construct()
#11 {main}
[28-Feb-2020 13:39:15 UTC]
PHP Deprecated notice: Function get_magic_quotes_gpc() is deprecated in /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/Input.php on line 73
#0 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/Input.php(73): __error()
#1 /var/www/vhosts/infoandgrafic.de/httpdocs/system/initialize.php(128): Contao\Input::initialize()
#2 /var/www/vhosts/infoandgrafic.de/httpdocs/index.php(18): require('/var/www/vhosts...')
#3 {main}

[28-Feb-2020 13:39:15 GMT] PHP Fatal error: Uncaught exception 'Error' with message 'Call to undefined function Contao\Database\mysql_connect()' thrown in /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/Database/Mysql.php on line 64
#0 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/Database.php(77): Contao\Database\Mysql->connect()
#1 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/Database.php(160): Contao\Database->__construct()
#2 [internal function]: Contao\Database::getInstance()
#3 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/System.php(110): call_user_func()
#4 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/User.php(89): Contao\System->import()
#5 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/classes/FrontendUser.php(79): Contao\User->__construct()
#6 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/User.php(151): Contao\FrontendUser->__construct()
#7 [internal function]: Contao\User::getInstance()
#8 /var/www/vhosts/infoandgrafic.de/httpdocs/system/modules/core/library/Contao/System.php(110): call_user_func()
#9 /var/www/vhosts/infoandgrafic.de/httpdocs/index.php(41): Contao\System->import()
#10 /var/www/vhosts/infoandgrafic.de/httpdocs/index.php(414): Index->__construct()
#11 {main}

@bytehead
Copy link
Member

In system/config/localconfig.php folgendes anpassen:

$GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQL';

wird zu

$GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQLi';`

Betrifft Contao 3.5. Bei solchen Fragen bitte im Forum unter https://community.contao.org/ nachfragen.

@ghost
Copy link
Author

ghost commented Feb 28, 2020

Danke!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant