Answer the question
In order to leave comments, you need to log in
Database error when transferring a site to a local open server?
Database error when transferring the site to the local open server.
[Error] Call to undefined function Bitrix\Main\DB\mysql_connect() (0)
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\lib\db\mysqlconnection.php:45
#0: Bitrix\ Main\DB\MysqlConnection->connectInternal()
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\lib\db\mysqlconnection.php:103
#1: Bitrix\Main\DB\MysqlConnection->queryInternal( string, array, NULL)
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\lib\db\connection.php:329
#2: Bitrix\Main\DB\Connection->query(string)
C: \OP\OSPanel\domains\ZG1\bitrix\modules\main\lib\config\option.php:226
#3: Bitrix\Main\Config\Option::load(string, NULL)
C:\OP\OSPanel\domains \ZG1\bitrix\modules\main\lib\config\option.php:53
#4: Bitrix\Main\Config\Option::get(string, string, string)
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\lib\httprequest.php:339
#5: Bitrix\Main \HttpRequest->prepareCookie(array)
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\lib\httprequest.php:63
#6: Bitrix\Main\HttpRequest->__construct(object, array, array, array, array)
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\lib\httpapplication.php:42
#7: Bitrix\Main\HttpApplication->initializeContext(array)
C:\OP\OSPanel\domains \ZG1\bitrix\modules\main\lib\application.php:122
#8: Bitrix\Main\Application->initializeExtendedKernel(array)
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\include.php :23
#9: require_once(string)
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\include\prolog_before.php:14
#10: require_once(string)
C:\OP\OSPanel\domains\ZG1\bitrix\modules\main\include\ prolog.php:10
#11: require_once(string)
C:\OP\OSPanel\domains\ZG1\bitrix\header.php:1
#12: require(string)
C:\OP\OSPanel\domains\ZG1\index. php:3
I don't know how to solve it, because I don't have enough experience and have never encountered such a problem.
Answer the question
In order to leave comments, you need to log in
[Error] Call to undefined function Bitrix\Main\DB\mysql_connect() (0),
php version 7 is on home?
If yes, make a database connection as it is written in the docs
after some manipulations it gave another message
Fatal error: Call to a member function IsAdmin() on null in C:\OP\OSPanel\domains\ZG1\bitrix\modules\bxmaker.geoip\lib\manager.php on line 362
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question