[Bitrix\Main\DB\SqlQueryException]
Mysql query error: (2006) MySQL server has gone away (400)
SELECT
`main_file`.`ID` AS `ID`,
`main_file`.`TIMESTAMP_X` AS `TIMESTAMP_X`,
`main_file`.`MODULE_ID` AS `MODULE_ID`,
`main_file`.`HEIGHT` AS `HEIGHT`,
`main_file`.`WIDTH` AS `WIDTH`,
`main_file`.`FILE_SIZE` AS `FILE_SIZE`,
`main_file`.`CONTENT_TYPE` AS `CONTENT_TYPE`,
`main_file`.`SUBDIR` AS `SUBDIR`,
`main_file`.`FILE_NAME` AS `FILE_NAME`,
`main_file`.`ORIGINAL_NAME` AS `ORIGINAL_NAME`,
`main_file`.`DESCRIPTION` AS `DESCRIPTION`,
`main_file`.`HANDLER_ID` AS `HANDLER_ID`,
`main_file`.`EXTERNAL_ID` AS `EXTERNAL_ID`
FROM `b_file` `main_file`
WHERE `main_file`.`ID` >= 295790
AND `main_file`.`ID` <= 295799
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:3357
#2: Bitrix\Main\ORM\Query\Query->query(string)
/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:825
#3: Bitrix\Main\ORM\Query\Query->exec()
/home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
/home/bitrix/www/bitrix/modules/main/classes/general/file.php:492
#5: CAllFile::GetFromCache(string)
/home/bitrix/www/bitrix/modules/main/classes/general/file.php:664
#6: CAllFile::GetFileArray(string)
/home/bitrix/www/bitrix/modules/main/classes/general/file.php:1615
#7: CAllFile::ResizeImageGet(string, array, integer)
/home/bitrix/www/bitrix/templates/magnet_s2/components/bitrix/catalog.element/main/normal.php:726
#8: include(string)
/home/bitrix/www/bitrix/templates/magnet_s2/components/bitrix/catalog.element/main/template.php:157
#9: include(string)
/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#10: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#11: CBitrixComponentTemplate->IncludeTemplate(array)
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#12: CBitrixComponent->showComponentTemplate()
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#13: CBitrixComponent->includeComponentTemplate()
/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4561
#14: Bitrix\Iblock\Component\Base->loadData()
/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4540
#15: Bitrix\Iblock\Component\Base->initialLoadAction()
/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:271
#16: Bitrix\Iblock\Component\Element->initialLoadAction()
#17: call_user_func(array)
/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4725
#18: Bitrix\Iblock\Component\Base->doAction()
/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4743
#19: Bitrix\Iblock\Component\Base->executeComponent()
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:656
#20: CBitrixComponent->includeComponent(string, array, object, boolean)
/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#21: CAllMain->IncludeComponent(string, string, array, object)
/home/bitrix/www/bitrix/templates/magnet_s2/components/bitrix/catalog/main/element.php:235
#22: include(string)
/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#23: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#24: CBitrixComponentTemplate->IncludeTemplate(array)
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#25: CBitrixComponent->showComponentTemplate()
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#26: CBitrixComponent->includeComponentTemplate(string)
/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:171
#27: include(string)
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#28: CBitrixComponent->__includeComponent()
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#29: CBitrixComponent->includeComponent(string, array, boolean, boolean)
/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#30: CAllMain->IncludeComponent(string, string, array, boolean)
/home/bitrix/ext_www/s2/index.php:782
#31: include_once(string)
/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#32: include_once(string)
/home/bitrix/www/bitrix/urlrewrite.php:2