Answer the question
In order to leave comments, you need to log in
What could be causing the error in the database?
Colleagues, welcome. I ask for your help!
The site has been transferred from the Bitrix backup, the database has been created and filled in, the access settings have also been checked and are correct. The site shows the error The script encountered an error and will be aborted. To view extended error messages, enable this feature in .settings.php.
Enabled debugger, error code:
[Error]
Call to undefined function Bitrix\Main\DB\mysql_connect() (0)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/db/mysqlconnection.php:45
#0: Bitrix\Main\DB\MysqlConnection->connectInternal()
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/db/mysqlconnection.php:103
#1: Bitrix\Main\DB\MysqlConnection->queryInternal(string, array, NULL)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/db/connection.php:329
#2: Bitrix\Main\DB\Connection->query(string)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/config/option.php:182
#3: Bitrix\Main\Config\Option::load(string, NULL)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/config/option.php:53
#4: Bitrix\Main\Config\Option::get(string, string, string)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/httprequest.php:337
#5: Bitrix\Main\HttpRequest->prepareCookie(array)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/httprequest.php:63
#6: Bitrix\Main\HttpRequest->__construct(object, array, array, array, array)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/httpapplication.php:42
#7: Bitrix\Main\HttpApplication->initializeContext(array)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/lib/application.php:122
#8: Bitrix\Main\Application->initializeExtendedKernel(array)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/include.php:23
#9: require_once(string)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/include/prolog_before.php:14
#10: require_once(string)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/modules/main/include/prolog.php:10
#11: require_once(string)
/var/www/www-root/data/www/stroy-teks.ru/bitrix/header.php:1
#12: require(string)
/var/www/www-root/data/www/stroy-teks.ru/index.php:2
Answer the question
In order to leave comments, you need to log in
Good afternoon,
You have a typical transfer problem - MySQLi -> MySQL.
Check that the mysql driver is connected or translate to mysqli .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question