[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: MySQL server has gone away (400)
SELECT 
	`bp_template_settings`.`ID` AS `ID`,
	`bp_template_settings`.`TIMESTAMP_X` AS `TIMESTAMP_X`,
	`bp_template_settings`.`CODE` AS `CODE`,
	`bp_template_settings`.`VALUE` AS `VALUE`
FROM `bp_custom_settings` `bp_template_settings` 

/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/lib/db/mysqlconnection.php:116
#0: Bitrix\Main\DB\MysqlConnection->queryInternal(string, array, NULL)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/lib/orm/query/query.php:3193
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/lib/orm/query/query.php:806
#3: Bitrix\Main\ORM\Query\Query->exec()
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/lib/orm/data/datamanager.php:467
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/var/www/vamelectro/data/www/vamelectro.ru/local/modules/bp.template/lib/cmain.php:55
#5: Bp\Template\CMain->__construct()
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/php_interface/init.php:25
#6: include_once(string)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/include.php:234
#7: require_once(string)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/include/prolog_before.php:14
#8: require_once(string)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/include/prolog.php:10
#9: require_once(string)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/header.php:1
#10: require(string)
	/var/www/vamelectro/data/www/vamelectro.ru/catalog/index.php:12
#11: include_once(string)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/modules/main/include/urlrewrite.php:159
#12: include_once(string)
	/var/www/vamelectro/data/www/vamelectro.ru/bitrix/urlrewrite.php:2