Batch mode does not allow other modules to alter query

Created on 26 September 2020, about 4 years ago
Updated 20 February 2023, almost 2 years ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Component\Plugin\Exception\PluginNotFoundException</em>: The &quot;&quot; entity type does not exist. in <em class="placeholder">Drupal\Core\Entity\EntityTypeManager-&gt;getDefinition()</em> (line <em class="placeholder">150</em> of <em class="placeholder">core/lib/Drupal/Core/Entity/EntityTypeManager.php</em>). <pre class="backtrace">group_query_entity_query_alter(Object) (Line: 259)
group_query_views_entity_query_alter(Object, NULL, NULL) (Line: 539)
Drupal\Core\Extension\ModuleHandler-&gt;alter(&#039;query&#039;, Object) (Line: 480)
Drupal\Core\Database\Query\Select-&gt;preExecute() (Line: 488)
Drupal\Core\Database\Query\Select-&gt;preExecute() (Line: 505)
Drupal\Core\Database\Query\Select-&gt;execute() (Line: 80)
Drupal\views_data_export\Plugin\views\display\DataExport::buildBatch(Object, Array) (Line: 52)
Drupal\views_data_export\Plugin\views\display\DataExport::buildResponse(&#039;user_admin_people&#039;, &#039;data_export_1&#039;, Array) (Line: 53)

Google teaches that for other people who have hit the same error, the root cause is this VBO issue: #3163912: VBO does not preserve query metadata added by other modules . I don't have VBO installed, and I don't hit the same error when using the 'standard' rathe than 'batch' export mode. Therefore we can conclude that this module's bath export mode is making the same mistake that VBO was, and failing to allow other modules to alter the query.

This may or may not be the same issue as #3155609: query_alter addWhere clause not applied to csv .

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom jonathanshaw Stroud, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024