diff --git a/patches/drupal-core-11.1.2.patch b/patches/drupal-core-11.1.2.patch index 6eb02f6ad59c26f40b5adbbd658481ccb8418ed2..3bc456d48a06d2fd31169061a7300f3027e6c388 100644 --- a/patches/drupal-core-11.1.2.patch +++ b/patches/drupal-core-11.1.2.patch @@ -203,7 +203,7 @@ index 46f9fb97c0d6359da0cbd84279ba4bdd92b77523..fbc1d8dda75fbd8df70a779b60ab3103 } diff --git a/core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php b/core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php -index 00bf806c3dee1df743646160e9f5110fdb3034b4..8893c3e25981d8378c26dab25fd14292ae80feeb 100644 +index 00bf806c3dee1df743646160e9f5110fdb3034b4..9eb5b0471e67fa197ce2a0acf968c4ad688ee060 100644 --- a/core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php +++ b/core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php @@ -32,6 +32,15 @@ trait CacheTagsChecksumTrait { @@ -226,7 +226,7 @@ index 00bf806c3dee1df743646160e9f5110fdb3034b4..8893c3e25981d8378c26dab25fd14292 * Implements \Drupal\Core\Cache\CacheTagsInvalidatorInterface::invalidateTags() */ public function invalidateTags(array $tags) { -+ if (($this->connection->driver() == 'mongodb') && !$this->tableExists) { ++ if (isset($this->connection) && ($this->connection->driver() == 'mongodb') && !$this->tableExists) { + // For MongoDB the table needs to exist. Otherwise MongoDB creates one + // without the correct validation. + $this->tableExists = $this->ensureTableExists(); @@ -240,7 +240,7 @@ index 00bf806c3dee1df743646160e9f5110fdb3034b4..8893c3e25981d8378c26dab25fd14292 * Implements \Drupal\Core\Cache\CacheTagsChecksumInterface::getCurrentChecksum() */ public function getCurrentChecksum(array $tags) { -+ if (($this->connection->driver() == 'mongodb') && !$this->tableExists) { ++ if (isset($this->connection) && ($this->connection->driver() == 'mongodb') && !$this->tableExists) { + // For MongoDB the table needs to exist. Otherwise MongoDB creates one + // without the correct validation. + $this->tableExists = $this->ensureTableExists();