Results 1 to 4 of 4

Thread: After adding SMTP info no access to backend

  1. #1
    New user
    Join Date
    11-26-18.
    Posts
    2

    Default 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}
    Last edited by xchs; 11/26/2018 at 17:57. Reason: Code-Tags

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Open the system/config/localconfig.php file and change the database driver from "MySQL" to "MySQLi":
    PHP Code:
    $GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQLi'
    Contao Community Moderator
    → Support options

  3. #3
    New user
    Join Date
    11-26-18.
    Posts
    2

    Default Thank you so very much!!!

    Quote Originally Posted by xchs View Post
    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!

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    You're welcome.

    BTW: The reason for this error was not the SMTP configuration, but rather because you or your hoster has switched to PHP 7.x.
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •