Notice: Trying to access array offset on value of type null in Drupal\views\Plugin\views\display\EntityReference->query() (Zeile 195 in ... EntityReference.php)

Das Problem (Logs überfüllt mit):

Notice: Trying to access array offset on value of type null in Drupal\views\Plugin\views\display\EntityReference->query() (Zeile 195 in /var/www/web/core/modules/views/src/Plugin/views/display/EntityReference.php)

 

 

core\modules\views\src\Plugin\views\display\EntityReference.php (Line 156):



    // $options = $this->getOption('entity_reference_options');
      $options = $this->getOption('entity_reference_options') ?? [];

 

Comments

Notice: Undefined index: limit in Drupal\views\Plugin\views\display\EntityReference->query() (Zeile 196 in /var/www/web/core/modules/views/src/Plugin/views/display/EntityReference.php)

Lösung (Line 196);

    if( !empty( $options['limit'] ) ) { $this->view->setItemsPerPage($options['limit']); }

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare