+380 (95) 658 67-78
UA RU EN

Not sure what to choose?

Describe your task and we will help you find a solution.

+380 (95) 658 67-78
All services — 6 areas · 25 servicesNavigation ↑ ↓ · Close Esc
All articles — Development, support and security from our team's experienceNavigation ↑ ↓ · Close Esc
Development

"Call to undefined function mysqli_init" error after moving to BitrixVM

The Call to undefined function mysqli_init() error after moving a website to BitrixVM: what to change in dbconn.php and .settings.php.

RIVERIT · · 1 min read

This method works only for websites on PHP 5: the mysql extension was removed in PHP 7.0, so on PHP 7 and later you need to install the mysqli extension instead.

In the /bitrix/php_interface/dbconn.php file, set the constant:

define("BX_USE_MYSQLI", false);

In the /bitrix/.settings.php file, change the database connection class to MysqlConnection:

'connections' =>
array (
  'value' =>
  array (
    'default' =>
    array (
   'className' => '\\Bitrix\\Main\\DB\\MysqlConnection',

02

Related articles

  1. 011. Find
  2. 022. Run the…
  3. 033. Make sure…
  4. 044. Check other…
Development4 min read

How to set up Apache for 1C and publish a database

Today we will walk through, step by step, how to set up Apache correctly on Windows. It is well known that file-based databases run faster through a web server than through a shared network folder. This is much more noticeable on computers of the “my mom bought it for me in first grade” kind, where working with regular network shares and 1C is impossible. Access through a web server, however, will work perfectly well even on such outdated and low-powered computers.

03Contact

Tell us
about your task

Describe your project or a problem with your website. We will contact you during business hours, clarify the details and prepare a proposal with stages, timeline and cost.

  1. 01We contact you
  2. 02We discuss the task
  3. 03We prepare a proposal

Project request

Mon–Fri 9 AM–6 PM
What you need

By clicking the button, you agree to the privacy policy