Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults()

Comments

Coufu created an issue. See original summary.

coufu’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

Created a patch to fix this problem for me.

Status: Needs review » Needs work

The last submitted patch, 2: 2907760-2.patch, failed testing. View results

cilefen’s picture

Could you add some context to the issue summary as to how to reproduce the issue please?

agileadam’s picture

Here are the last calls in a stack trace of the same error (I work with Coufu). I will try to identify the cause.

Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults() (line 182 of /mnt/www/html/mysite/docroot/core/modules/views/src/Plugin/views/PluginBase.php)
#0 /mnt/www/html/mysite/docroot/core/includes/bootstrap.inc(566): _drupal_error_handler_real(8, 'Undefined index...', '/mnt/www/html/s...', 182, Array) 
#1 /mnt/www/html/mysite/docroot/core/modules/views/src/Plugin/views/PluginBase.php(182): _drupal_error_handler(8, 'Undefined index...', '/mnt/www/html/s...', 182, Array) 
#2 /mnt/www/html/mysite/docroot/core/modules/views/src/Plugin/views/PluginBase.php(138): Drupal\views\Plugin\views\PluginBase->setOptionDefaults(Array, Array) 
#3 /mnt/www/html/mysite/docroot/core/modules/views/src/Plugin/views/HandlerBase.php(102): Drupal\views\Plugin\views\PluginBase->init(Object(Drupal\views\ViewExecutable), Object(Drupal\views\Plugin\views\display\Page), Array) 
#4 /mnt/www/html/mysite/docroot/core/modules/views/src/Plugin/views/area/AreaPluginBase.php(42): Drupal\views\Plugin\views\HandlerBase->init(Object(Drupal\views\ViewExecutable), Object(Drupal\views\Plugin\views\display\Page), Array) 
#5 /mnt/www/html/mysite/docroot/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(888): Drupal\views\Plugin\views\area\AreaPluginBase->init(Object(Drupal\views\ViewExecutable), Object(Drupal\views\Plugin\views\display\Page), Array) 
agileadam’s picture

Status: Needs work » Closed (won't fix)

I dropped a conditional breakpoint to identify when $definition['default'] is not set.
@coufu, this is coming from the views_facet_filter_bubbles plugin (custom), therefore I'm going to close this core (non) issue; we can deal with it elsewhere.

mlzr’s picture

Issue summary: View changes

Hello, I 've got this error after installing the module "https://www.drupal.org/project/slider_pro"

I apply the patch '2907760-2.patch' as in #2 above and the error is gone!

Top! Thanks for sharing this,
Marchello

p4trizio’s picture

If anyone needs a quick fix, the patch is working. However I attach a new one relative to the core (so it can be used with cweagans/composer-patches)

vuil’s picture

Version: 8.3.1 » 10.0.x-dev
Status: Closed (won't fix) » Closed (duplicate)
Related issues: +#2882031: Undefined index: identifier in view's DisplayPluginBase->isIdentifierUnique()
voleger’s picture

StatusFileSize
new611 bytes