Additional uncaught exception thrown while handling exception.

Original

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: UPDATE {path_alias} SET alias=:db_update_placeholder_0 WHERE (alias = :db_condition_placeholder_0) AND (path LIKE :db_condition_placeholder_1 ESCAPE '\\'); Array ( [:db_update_placeholder_0] => /mentions-legales-archives [:db_condition_placeholder_0] => /mentions-legales [:db_condition_placeholder_1] => %node% ) in acadcms_alter_config() (line 44 of /srv/www/emi.web.ac-grenoble.fr/web/modules/custom/acadcms_routes/acadcms_routes.module).

acadcms_alter_config() (Line: 12)
include_once('/srv/www/emi.web.ac-grenoble.fr/web/modules/custom/acadcms_routes/acadcms_routes.module') (Line: 147)
Drupal\Core\Extension\Extension->load() (Line: 128)
Drupal\Core\Extension\ModuleHandler->load() (Line: 141)
Drupal\Core\Extension\ModuleHandler->loadAll() (Line: 586)
Drupal\Core\DrupalKernel->preHandle() (Line: 502)
install_begin_request() (Line: 115)
install_drupal() (Line: 48)

Additional

TypeError: Argument 1 passed to Drupal\Core\Routing\CurrentRouteMatch::getRouteMatch() must be an instance of Symfony\Component\HttpFoundation\Request, null given, called in /srv/www/emi.web.ac-grenoble.fr/web/core/lib/Drupal/Core/Routing/CurrentRouteMatch.php on line 87 in Drupal\Core\Routing\CurrentRouteMatch->getRouteMatch() (line 99 of /srv/www/emi.web.ac-grenoble.fr/web/core/lib/Drupal/Core/Routing/CurrentRouteMatch.php).

Drupal\Core\Routing\CurrentRouteMatch->getRouteMatch() (Line: 87)
Drupal\Core\Routing\CurrentRouteMatch->getCurrentRouteMatch() (Line: 49)
Drupal\Core\Routing\CurrentRouteMatch->getRouteObject() (Line: 41)
Drupal\Core\Routing\AdminContext->isAdminRoute() (Line: 611)
system_page_attachments() (Line: 65)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage() (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage() (Line: 1054)
install_display_output() (Line: 267)
_drupal_log_error() (Line: 618)
_drupal_exception_handler()