[Bitrix\Main\DB\SqlQueryException] Mysql query error: (2006) MySQL server has gone away (400) SELECT FROM_MODULE_ID, MESSAGE_ID, SORT, TO_MODULE_ID, TO_PATH, TO_CLASS, TO_METHOD, TO_METHOD_ARG, VERSION FROM b_module_to_module m2m INNER JOIN b_module m ON (m2m.TO_MODULE_ID = m.ID) ORDER BY SORT /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:146 #0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL) /home/bitrix/www/bitrix/modules/main/lib/db/connection.php:327 #1: Bitrix\Main\DB\Connection->query(string) /home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:243 #2: Bitrix\Main\EventManager->loadEventHandlers() /home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:346 #3: Bitrix\Main\EventManager->findEventHandlers(string, string) /home/bitrix/www/bitrix/modules/main/classes/general/module.php:330 #4: GetModuleEvents(string, string, boolean) /home/bitrix/www/bitrix/modules/socialservices/classes/general/authmanager.php:27 #5: CSocServAuthManager->__construct() /home/bitrix/www/bitrix/components/bitrix/system.auth.form/component.php:141 #6: include(string) /home/bitrix/www/bitrix/modules/main/classes/general/component.php:607 #7: CBitrixComponent->__includeComponent() /home/bitrix/www/bitrix/modules/main/classes/general/component.php:684 #8: CBitrixComponent->includeComponent(string, array, boolean, boolean) /home/bitrix/www/bitrix/modules/main/classes/general/main.php:1072 #9: CAllMain->IncludeComponent(string, string, array, boolean) /home/bitrix/www/bitrix/templates/dresscode/headers/header7/template.php:34 #10: require_once(string) /home/bitrix/www/bitrix/templates/dresscode/header.php:45 #11: include_once(string) /home/bitrix/www/bitrix/modules/main/include/prolog_after.php:107 #12: require(string) /home/bitrix/www/bitrix/modules/main/include/prolog.php:11 #13: require_once(string) /home/bitrix/www/bitrix/header.php:1 #14: require(string) /home/bitrix/www/404.php:5 #15: include_once(string) /home/bitrix/www/bitrix/urlrewrite.php:4 ----------