Views: 16183
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:

<br>
<table cellpadding="1" cellspacing="0" width="35%" bgcolor="#9C9A9C">
    <tr>
        <td>
        <table cellpadding="5" cellspacing="0" width="100%">
        <tr>
            <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>
        </tr>
        </table>
        </td>
	</tr>
</table>	
<br><br><br>

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