Additional uncaught exception thrown while handling exception.

Original

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base_table.revision_id AS revision_id, base_table.id AS id FROM {block_content} base_table INNER JOIN {block_content_field_data} block_content_field_data ON block_content_field_data.id = base_table.id WHERE (block_content_field_data.reusable IN (:db_condition_placeholder_0)) AND (block_content_field_data.default_langcode IN (:db_condition_placeholder_1)); Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 1 ) in Drupal\Core\Entity\EntityStorageBase->loadByProperties() (line 577 of /code/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 46)
Drupal\block_content\Plugin\Derivative\BlockContent->getDerivativeDefinitions(Array) (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 284)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 175)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 22)
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('broken') (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('broken', Array) (Line: 100)
Drupal\Component\Plugin\PluginManagerBase->handlePluginNotFound('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 93)
Drupal\Core\Block\BlockManager->handlePluginNotFound('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 79)
Drupal\Component\Plugin\PluginManagerBase->createInstance('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 62)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 57)
Drupal\block\BlockPluginCollection->initializePlugin('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 45)
Drupal\block\BlockPluginCollection->get('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 83)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array) (Line: 99)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 55)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object, 'block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 34)
Drupal\block\BlockPluginCollection->__construct(Object, 'block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array, 'stay_connected') (Line: 156)
Drupal\block\Entity\Block->getPluginCollection() (Line: 145)
Drupal\block\Entity\Block->getPlugin() (Line: 150)
tpo_ad_theme(Array, 'module', 'tpo_ad', 'modules/custom/tpo/modules/ad') (Line: 454)
Drupal\Core\Theme\Registry->processExtension(Array, 'tpo_ad', 'module', 'tpo_ad', 'modules/custom/tpo/modules/ad') (Line: 341)
Drupal\Core\Theme\Registry->build() (Line: 240)
Drupal\Core\Theme\Registry->get() (Line: 88)
Drupal\Core\Utility\ThemeRegistry->initializeRegistry() (Line: 69)
Drupal\Core\Utility\ThemeRegistry->__construct('theme_registry:runtime:seven', Object, Object, Array, 1) (Line: 260)
Drupal\Core\Theme\Registry->getRuntime() (Line: 142)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 431)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 200)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 144)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 145)
Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 66)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, Object, 'install_page', Array) (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, Object, 'install_page', Array) (Line: 1054)
install_display_output(Array, Array) (Line: 160)
install_drupal(Object) (Line: 44)

Additional

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT base_table.revision_id AS revision_id, base_table.id AS id FROM {block_content} base_table INNER JOIN {block_content_field_data} block_content_field_data ON block_content_field_data.id = base_table.id WHERE (block_content_field_data.reusable IN (:db_condition_placeholder_0)) AND (block_content_field_data.default_langcode IN (:db_condition_placeholder_1)); Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 1 ) in Drupal\Core\Entity\EntityStorageBase->loadByProperties() (line 577 of /code/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 46)
Drupal\block_content\Plugin\Derivative\BlockContent->getDerivativeDefinitions(Array) (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 284)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 175)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 22)
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase->createInstance('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 62)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 57)
Drupal\block\BlockPluginCollection->initializePlugin('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 45)
Drupal\block\BlockPluginCollection->get('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d') (Line: 83)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array) (Line: 99)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 55)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object, 'block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array) (Line: 34)
Drupal\block\BlockPluginCollection->__construct(Object, 'block_content:66d506bf-871a-449d-8ddf-a00a3e40380d', Array, 'stay_connected') (Line: 156)
Drupal\block\Entity\Block->getPluginCollection() (Line: 145)
Drupal\block\Entity\Block->getPlugin() (Line: 150)
tpo_ad_theme(Array, 'module', 'tpo_ad', 'modules/custom/tpo/modules/ad') (Line: 454)
Drupal\Core\Theme\Registry->processExtension(Array, 'tpo_ad', 'module', 'tpo_ad', 'modules/custom/tpo/modules/ad') (Line: 341)
Drupal\Core\Theme\Registry->build() (Line: 240)
Drupal\Core\Theme\Registry->get() (Line: 88)
Drupal\Core\Utility\ThemeRegistry->initializeRegistry() (Line: 69)
Drupal\Core\Utility\ThemeRegistry->__construct('theme_registry:runtime:seven', Object, Object, Array, 1) (Line: 260)
Drupal\Core\Theme\Registry->getRuntime() (Line: 142)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 431)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 200)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 144)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 145)
Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 66)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, 'Error', 'install_page', Array) (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, 'Error', 'install_page', Array) (Line: 1054)
install_display_output(Array, Array, Array) (Line: 267)
_drupal_log_error(Array, 1) (Line: 618)
_drupal_exception_handler(Object)