Views: 15525
Last Modified: 01.04.2014

When a database connection error occurs, the following error message is displayed:

The visual aspect of the message is defined by the contents of the file /bitrix/php_interface/dbconn_error.php:

<table cellpadding="1" cellspacing="0" width="35%" bgcolor="#9C9A9C">
        <table cellpadding="5" cellspacing="0" width="100%">
            <td bgcolor="#FFFFFF" align="center">
            <FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">
            <font color="#FF0000"><b><?echo "Error connecting to database."?></b></font><br>
            Please try again.</font></td>

To resolve the problem, do the following:

  • check the database connection parameters (in /bitrix/php_interface/dbconn.php);
  • check whether the database is accessible.

Courses developed by Bitrix24