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

Views Term ID has broken filters ("All of", "Is none of") and contextual filters "allow multiple"

$
0
0

Problem/Motivation

  1. Create a vocabulary with some terms.
  2. Create a view of taxonomy terms
  3. New filter of Term
  4. Select "drop-down list"
  5. Choose "Is none of" or "Is all of" and select at least one term
  6. Apply

The loading spinner "spins" but not happens. And preview is not refreshed. The error return from the ajax handler is:

A valid cache entry key is required. Use getAll() to get all table data. in <em class="placeholder">Drupal\views\ViewsData-&gt;get()</em> (line <em class="placeholder">140</em> of <em class="placeholder">core/modules/views/src/ViewsData.php</em>). <pre class="backtrace">Drupal\views\Plugin\views\HandlerBase::getTableJoin(NULL, &#039;taxonomy_term_field_data&#039;) (Line: 88)
Drupal\views\ManyToOneHelper-&gt;addTable(Object) (Line: 243)
Drupal\views\ManyToOneHelper-&gt;ensureMyTable() (Line: 123)
Drupal\views\Plugin\views\filter\ManyToOne-&gt;ensureMyTable() (Line: 260)
Drupal\views\ManyToOneHelper-&gt;addFilter() (Line: 136)
Drupal\views\Plugin\views\filter\ManyToOne-&gt;opHelper() (Line: 389)
Drupal\views\Plugin\views\filter\InOperator-&gt;query() (Line: 1373)
Drupal\views\ViewExecutable-&gt;_build(&#039;filter&#039;) (Line: 1262)
Drupal\views\ViewExecutable-&gt;build(NULL) (Line: 1391)
Drupal\views\ViewExecutable-&gt;execute(NULL) (Line: 1454)
Drupal\views\ViewExecutable-&gt;render() (Line: 2454)
Drupal\views\Plugin\views\display\DisplayPluginBase-&gt;preview() (Line: 1662)
Drupal\views\ViewExecutable-&gt;preview(&#039;block_1&#039;, Array) (Line: 602)
Drupal\views_ui\ViewUI-&gt;renderPreview(&#039;block_1&#039;, Array) (Line: 62)
Drupal\views_ui\ViewPreviewForm-&gt;form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm-&gt;buildForm(Array, Object) (Line: 41)
Drupal\views_ui\ViewFormBase-&gt;buildForm(Array, Object, &#039;block_1&#039;)
call_user_func_array(Array, Array) (Line: 532)

Watchdog errors are:

Warning: Creating default object from empty value in Drupal\views\ManyToOneHelper->ensureMyTable() (line 232 of /app/drupal-91x/core/modules/views/src/ManyToOneHelper.php)

InvalidArgumentException: A valid cache entry key is required. Use getAll() to get all table data. in Drupal\views\ViewsData->get() (line 140 of /app/drupal-91x/core/modules/views/src/ViewsData.php).

Notice: Undefined property: stdClass::$leftTable in Drupal\views\ManyToOneHelper->addTable() (line 87 of /app/drupal-91x/core/modules/views/src/ManyToOneHelper.php)

Viewing all articles
Browse latest Browse all 292080

Trending Articles



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