Ich habe das Problem, dass mein Provider Hosteurope im Oktober PHP 5.6 abschaltet und es gibt dann nur noch PHP7.0
Meine Cantao Version wird automatisch über Liveupdate aktualisiert – die aktuelle Version ist 3.5.36
Auf contao.org habe ich gelesen, dass Contao ab Version 3.5.5 vollständig PHP 7 kompatibel ist. Live Update erreicht diese Version aber nicht?!
Bei Umstellung auf PHP7 funktioniert meine Contao-Site mit 3.5.36 gar nicht.
Ich habe über System -> Einstellungen -> Inaktiver Erweiterungen alle Erweiterungen deaktiviert, um diese als Ursache auszuschließen.
Es kommt aber mit PHP7 genauso: „Es ist ein Fehler aufgetreten“
In error.log habe ich folgende Fehlermeldung:
[24-Sep-2018 19:53:26 Europe/Berlin] PHP Fatal error: Uncaught exception 'Error' with message 'Call to undefined function Contao\Database\mysql_connect()' thrown in ….. /system/modules/core/library/Contao/Database/Mysql.php on line 47
#0 ...../system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysql->connect()
#1 ...../system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
#2 [internal function]: Contao\Database::getInstance()
#3 ...../system/modules/core/library/Contao/System.php(140): call_user_func(Array)
#4 ...../system/modules/core/library/Contao/User.php(158): Contao\System->import('Database')
#5 ...../system/modules/core/classes/BackendUser.php(102): Contao\User->__construct()
#6 ...../system/modules/core/library/Contao/User.php(220): Contao\BackendUser->__construct()
#7 [internal function]: Contao\User::getInstance()
#8 ...../system/modules/core/library/Contao/System.php(140): call_user_func(Array)
#9 ...../system/modules/core/controllers/BackendMain.php(45): Contao\System->import('BackendUser', 'User')
#10 ...../contao/main.php(19): Contao\BackendMain->__construct()
#11 {main}
Wer kann mir einen Tipp geben, wie ich das Problem lösen kann, bzw. wie ich die Ursache lokalisieren kann.
Danke für Anregungen und Lösungsvorschläge.
Lesezeichen