[intec\core\db\Exception] 
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
The SQL being executed was: SELECT
    kcu.constraint_name,
    kcu.column_name,
    kcu.referenced_table_name,
    kcu.referenced_column_name
FROM information_schema.referential_constraints AS rc
JOIN information_schema.key_column_usage AS kcu ON
    (
        kcu.constraint_catalog = rc.constraint_catalog OR
        (kcu.constraint_catalog IS NULL AND rc.constraint_catalog IS NULL)
    ) AND
    kcu.constraint_schema = rc.constraint_schema AND
    kcu.constraint_name = rc.constraint_name
WHERE rc.constraint_schema = database() AND kcu.table_schema = database()
AND rc.table_name = 'regionality_regions_sites' AND kcu.table_name = 'regionality_regions_sites' (0)
/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/Schema.php:560
#0: intec\core\db\Schema->convertException(object, string)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/Command.php:735
#1: intec\core\db\Command->queryInternal(string, NULL)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/Command.php:280
#2: intec\core\db\Command->queryAll()
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/mysql/Schema.php:264
#3: intec\core\db\mysql\Schema->findConstraints(object)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/mysql/Schema.php:93
#4: intec\core\db\mysql\Schema->loadTableSchema(string)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/Schema.php:134
#5: intec\core\db\Schema->getTableSchema(string)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/ActiveRecord.php:208
#6: intec\core\db\ActiveRecord::getTableSchema()
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/ActiveRecord.php:250
#7: intec\core\db\ActiveRecord::populateRecord(object, array)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/ActiveQueryTrait.php:99
#8: intec\core\db\ActiveQuery->createModels(array)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/ActiveQuery.php:174
#9: intec\core\db\ActiveQuery->populate(array)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/Query.php:135
#10: intec\core\db\Query->all(NULL)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/ActiveQuery.php:89
#11: intec\core\db\ActiveQuery->all(NULL, boolean)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.core/classes/db/ActiveRecord.php:644
#12: intec\core\db\ActiveRecord->relation(string, object, boolean, boolean)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.regionality/classes/models/Region.php:976
#13: intec\regionality\models\Region->getSites(boolean)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.regionality/classes/models/Region.php:825
#14: intec\regionality\models\Region->isForSites(array)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.regionality/classes/models/Region.php:333
#15: intec\regionality\models\Region::getDefault()
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/intec.regionality/classes/Callbacks.php:182
#16: intec\regionality\Callbacks::mainOnProlog()
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/classes/general/module.php:490
#17: ExecuteModuleEventEx(array)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/classes/general/main.php:3481
#18: CAllMain::PrologActions()
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/include/prolog_before.php:16
#19: require_once(string)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/include/prolog.php:10
#20: require_once(string)
	/var/www/www-root/data/www/akvamatika.com/bitrix/header.php:1
#21: require(string)
	/var/www/www-root/data/www/akvamatika.com/catalog/index.php:2
#22: include_once(string)
	/var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/include/urlrewrite.php:159
#23: include_once(string)
	/var/www/www-root/data/www/akvamatika.com/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT 'x' FROM...', Array, NULL) #1 /var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/lib/eventmanager.php(186): Bitrix\Main\DB\Connection->query('SELECT 'x' FROM...') #2 /var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/lib/eventmanager.php(152): Bitrix\Main\EventManager->registerEventHandlerInternal('sale', 'OnSaleOrderPaid', 'dw.deluxe', 'DwBonus', 'addBonus', 100, '', '', 2) #3 /var/www/www-root/data/www/akvamatika.com/bitrix/modules/dw.deluxe/include.php(21): Bitrix\Main\EventManager->registerEventHandler('sale', 'OnSaleOrderPaid', 'dw.deluxe', 'DwBonus', 'addBonus') #4 /var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/lib/load in /var/www/www-root/data/www/akvamatika.com/bitrix/modules/main/lib/db/mysqliconnection.php on line 137