FILE: /var/www/vhosts/vps-shop-117.host4g.ru/k-remont.ru/bitrix/modules/iblock/classes/mysql/iblock.php
LINE: 239
MySQL Query Error: SELECT B.* ,B.XML_ID as EXTERNAL_ID ,DATE_FORMAT(B.TIMESTAMP_X, '%d.%m.%Y %H:%i:%s') as TIMESTAMP_X ,L.DIR as LANG_DIR ,L.SERVER_NAME ,COUNT(DISTINCT BE.ID) as ELEMENT_CNT FROM b_iblock B LEFT JOIN b_iblock_site BS ON B.ID=BS.IBLOCK_ID LEFT JOIN b_lang L ON L.LID=BS.SITE_ID LEFT JOIN b_iblock_element BE ON (BE.IBLOCK_ID=B.ID AND ( (BE.WF_STATUS_ID=1 AND BE.WF_PARENT_ELEMENT_ID IS NULL ) ) ) WHERE 1 = 1 AND ( B.ID IN ( SELECT IBLOCK_ID FROM b_iblock_group IBG WHERE IBG.GROUP_ID IN (2) AND IBG.PERMISSION >= 'R' AND (IBG.PERMISSION='X' OR B.ACTIVE='Y') ) OR (B.RIGHTS_MODE = 'E' AND B.ID IN ( SELECT IBLOCK_ID FROM b_iblock_right IBR INNER JOIN b_task_operation T ON T.TASK_ID = IBR.TASK_ID INNER JOIN b_operation O ON O.ID = T.OPERATION_ID INNER JOIN b_user_access UA ON UA.ACCESS_CODE = IBR.GROUP_CODE AND UA.USER_ID = 0 WHERE IBR.ENTITY_TYPE = 'iblock' AND O.NAME in ('section_read', 'element_read', 'section_element_bind', 'section_section_bind') )) ) AND ((((B.IBLOCK_TYPE_ID LIKE 'catalog')))) AND ((((BS.SITE_ID='s1')))) AND ((((B.ACTIVE='Y')))) AND ((( B.CODE IS NULL OR NOT (B.CODE LIKE 'catalog')))) GROUP BY B.ID [[2006] MySQL server has gone away]

DB query error.
Please try later.





Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/vhosts/vps-shop-117.host4g.ru/k-remont.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/vhosts/vps-shop-117.host4g.ru/k-remont.ru/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`main_...', Array, NULL) #1 /var/www/vhosts/vps-shop-117.host4g.ru/k-remont.ru/bitrix/modules/main/lib/orm/query/query.php(3398): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /var/www/vhosts/vps-shop-117.host4g.ru/k-remont.ru/bitrix/modules/main/lib/orm/query/query.php(825): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`main_...') #3 /var/www/vhosts/vps-shop-117.host4g.ru/k-remont.ru/bitrix/modules/main/lib/orm/data/datamanager.php(500): Bitrix\Main\ORM\Query\Query->exec() #4 /var/www/vhosts/vps-shop-117.host4g.ru/k-remont.ru/bitrix/modules/main/lib/analytics/sitespeed.php(95): Bitrix\Main\ORM\Data\DataManager::getList(Arra in /var/www/vhosts/vps-shop-117.host4g.ru/k-remont.ru/bitrix/modules/main/lib/db/mysqliconnection.php on line 137