Pasar al contenido principal

Error: Unsupported operand types in Drupal\views\Entity\View->mergeDefaultDisplaysOptions() (line 436

Drupal Project
Drupal Version
9.3.0-beta2
Comment

robertoguzman@…

Vie, 10/12/2021 - 03:11

la solución a este error se encuentra aca https://www.drupal.org/project/drupal/issues/2952261

El error se corrige con el siguiente parche

diff --git a/core/modules/views/src/Entity/View.php b/core/modules/views/src/Entity/View.php
index 093f3e5260..bebe44d25d 100644
--- a/core/modules/views/src/Entity/View.php
+++ b/core/modules/views/src/Entity/View.php
@@ -486,6 +486,9 @@ public static function postDelete(EntityStorageInterface $storage, array $entiti
   public function mergeDefaultDisplaysOptions() {
     $displays = [];
     foreach ($this->get('display') as $key => $options) {
+      if (empty($options)) {
+        continue;
+      }
       $options += [
         'display_options' => [],
         'display_plugin' => NULL,