Problem/Motivation
I installed the module in my localhost and after creating a denormalized table of one of my content types, I ran the cron job and after that, my database get dropped by error.
Error after executing cron job:
The website encountered an unexpected error. Please try again later.
User error: Drupal\Core\Database\DatabaseExceptionWrapper thrown while calling __toString on a Drupal\Core\StringTranslation\TranslatableMarkup object in C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Database\Connection.php on line 701: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected: SELECT s.*, t.language AS language, t.translation AS translation, t.customized AS customized FROM {locales_source} s LEFT OUTER JOIN {locales_target} t ON t.lid = s.lid AND t.language = :langcode WHERE (s.source IN (:db_condition_placeholder_0)) AND (s.context IN (:db_condition_placeholder_1)); Array ( [:db_condition_placeholder_0] => Dropped %target database. [:db_condition_placeholder_1] => [:langcode] => es ) in Drupal\Core\StringTranslation\TranslatableMarkup->__toString() (line 20 of core\lib\Drupal\Component\Utility\ToStringTrait.php).
Drupal\Core\StringTranslation\TranslatableMarkup->__toString() (Line: 54)
Drupal\Core\Messenger\Messenger->addMessage(Object, 'status', ) (Line: 50)
Drupal\Core\Messenger\LegacyMessenger->addMessage(Object, 'status', ) (Line: 74)
Drupal\Core\Messenger\LegacyMessenger->addStatus(Object) (Line: 402)
Drupal\denormalizer\Denormalizer->execute(1) (Line: 35)
denormalizer_cron(Object)
call_user_func('denormalizer_cron', Object) (Line: 325)
Drupal\ultimate_cron\Entity\CronJob->invokeCallback() (Line: 471)
Drupal\ultimate_cron\Entity\CronJob->run(Object) (Line: 24)
Drupal\ultimate_cron\Controller\JobController->runCronJob(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Fatal error: Uncaught PDOException: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Database\Statement.php:59 Stack trace: #0 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Database\Statement.php(59): PDOStatement->execute(Array) #1 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Database\Connection.php(640): Drupal\Core\Database\Statement->execute(Array, Array) #2 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Database\Driver\mysql\Connection.php(357): Drupal\Core\Database\Connection->query('UPDATE {ultimat...', Array, Array) #3 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Database\Query\Update.php(148): Drupal\Core\Database\Driver\mysql\Connection->query('UPDATE {ultimat...', Array, Array) #4 C:\xampp\htdocs\drupal\modules\ultimate_cron\src\Lock\Lock.php(129): Drupal\Core\Database\Query\Update->execute() #5 C:\xampp\htdocs\drupal\modules\ultimate_cron\src\Lock\Lock.php(31): Drupal\ultimate_cron\Lock\Lock->unlock(1072) #6 C:\xampp\htdocs\drupal\modules\ultimate_cron\ul in C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Database\Connection.php on line 701