After adding SMTP info no access to backend
Hello,
WE are using Contao 3.5 hosted by godaddy. Tried SMTP configurations from Godaddy because the email would not work. Now we cannot access our backend anymore and got the following error message:
Code:
PHP Fatal error: Uncaught exception 'Error' with message 'Call to undefined function Contao\Database\mysql_connect()' thrown in /home/yomdikriokf2/public_html/system/modules/core/library/Contao/Database/Mysql.php on line 47
#0 /home/yomdikriokf2/public_html/system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysql->connect()
#1 /home/yomdikriokf2/public_html/system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
#2 [internal function]: Contao\Database::getInstance()
#3 /home/yomdikriokf2/public_html/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
#4 /home/yomdikriokf2/public_html/system/modules/core/library/Contao/User.php(158): Contao\System->import('Database')
#5 /home/yomdikriokf2/public_html/system/modules/core/classes/BackendUser.php(102): Contao\User->__construct()
#6 /home/yomdikriokf2/public_html/system/modules/core/library/Contao/User.php(220): Contao\BackendUser->__construct()
#7 [internal function]: Contao\User::getInstance()
#8 /home/yomdikriokf2/public_html/system/modules/core/library/Contao/System.php(140): call_user_func(Array)
#9 /home/yomdikriokf2/public_html/system/modules/core/controllers/BackendIndex.php(33): Contao\System->import('BackendUser', 'User')
#10 /home/yomdikriokf2/public_html/contao/index.php(19): Contao\BackendIndex->__construct()
#11 {main}
Thank you so very much!!!
Quote:
Originally Posted by
xchs
Open the
system/config/localconfig.php file and change the database driver from "
MySQL" to "
MySQLi":
PHP Code:
$GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQLi';
Thank you very much!