[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: MySQL server has gone away (400)
SET NAMES 'cp1251'
/var/www/bitrix/modules/main/lib/db/mysqlconnection.php:116
#0: Bitrix\Main\DB\MysqlConnection->queryInternal(string, array, NULL)
	/var/www/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string, NULL)
	/var/www/bitrix/modules/main/lib/db/connection.php:378
#2: Bitrix\Main\DB\Connection->queryExecute(string)
	/var/www/bitrix/php_interface/after_connect_d7.php:3
#3: include(string)
	/var/www/bitrix/modules/main/lib/db/connection.php:920
#4: Bitrix\Main\DB\Connection->afterConnected()
	/var/www/bitrix/modules/main/lib/db/mysqlconnection.php:64
#5: Bitrix\Main\DB\MysqlConnection->connectInternal()
	/var/www/bitrix/modules/main/lib/db/mysqlconnection.php:103
#6: Bitrix\Main\DB\MysqlConnection->queryInternal(string, array, NULL)
	/var/www/bitrix/modules/main/lib/db/connection.php:329
#7: Bitrix\Main\DB\Connection->query(string, NULL)
	/var/www/bitrix/modules/main/lib/db/connection.php:378
#8: Bitrix\Main\DB\Connection->queryExecute(string)
	/var/www/bitrix/php_interface/after_connect_d7.php:3
#9: include(string)
	/var/www/bitrix/modules/main/lib/db/connection.php:920
#10: Bitrix\Main\DB\Connection->afterConnected()
	/var/www/bitrix/modules/main/lib/db/mysqlconnection.php:64
#11: Bitrix\Main\DB\MysqlConnection->connectInternal()
	/var/www/bitrix/modules/main/lib/db/mysqlconnection.php:103
#12: Bitrix\Main\DB\MysqlConnection->queryInternal(string, NULL, NULL)
	/var/www/bitrix/modules/main/lib/db/connection.php:329
#13: Bitrix\Main\DB\Connection->query(string, NULL, integer, integer)
	/var/www/bitrix/modules/main/lib/db/connection.php:357
#14: Bitrix\Main\DB\Connection->queryScalar(string)
	/var/www/bitrix/modules/security/lib/session.php:111
#15: Bitrix\Security\SessionTable::lock(string, integer)
	/var/www/bitrix/modules/security/classes/general/session_db.php:52
#16: CSecuritySessionDB::read(string)
	
#17: session_start()
	/var/www/bitrix/modules/main/include.php:301
#18: require_once(string)
	/var/www/bitrix/modules/main/include/prolog_before.php:14
#19: require_once(string)
	/var/www/bitrix/modules/main/include/prolog.php:10
#20: require_once(string)
	/var/www/bitrix/header.php:1
#21: require(string)
	/var/www/city/photogallery/index.php:2
#22: include_once(string)
	/var/www/bitrix/modules/main/include/urlrewrite.php:159
#23: include_once(string)
	/var/www/bitrix/urlrewrite.php:2
Fatal error: Exception thrown without a stack frame in Unknown on line 0