[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)

					SELECT
						`CONDITION`,
						TEMPLATE,
						SITE_ID
					FROM
						b_site_template
					ORDER BY
						SITE_ID,
						CASE
							WHEN IFNULL(LENGTH(`CONDITION`), 0)=0 THEN 2
							ELSE 1
						END,
						SORT
				
/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/main.php:4512
#2: CAllSite::GetCurTemplate
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/include.php:439
#3: require_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/include/prolog_before.php:14
#4: require_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/include/prolog.php:10
#5: require_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/header.php:1
#6: require(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/catalog/index.php:1
#7: include_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/include/urlrewrite.php:159
#8: include_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/urlrewrite.php:2