Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 301977

[warning] Trying to access array offset on value of type bool PluginBase.php:187

$
0
0

Problem/Motivation

This problem is caused by Views Plugins that do not correctly define the options array as specified in the documentation for the defineOptions() function in the Drupal\views\Plugin\views\PluginBase class.

Steps to reproduce

  1. Create a views plugin that does not implement the correct options array structure.
  2. Try to use that plugin.
  3. Observe PHP warnings.

Proposed resolution

As a result of this being caused by contrib or custom Views plugins, updates to the output of the offending Views plugin's defineOptions() functions should be made so that they follow the prescribed array structure instead of updating Drupal core.

Recommend changing issue status to Closed (won't fix).


Viewing all articles
Browse latest Browse all 301977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>