Problem/Motivation
1. Install latest HEAD (8.7.x) with minimal profile.
2. Enable workspaces, toolbar modules
3. Visit admin/content
4. Change workspace from 'live' to 'stage' (user get redirected to user/1 page)
5. Try to visit admin/content again
Expected:
6. See content listing page
Actual:
6. See 'The website encountered an unexpected error.' After including settings.local.php
, would get:
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Core\Database\DatabaseExceptionWrapper</em>: SQLSTATE[42000]: Syntax error or access violation: 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause: SELECT min(node_field_data.nid) AS expression, COALESCE(workspace_association.target_entity_revision_id, base_table.vid) AS vid, base_table.nid AS nid
FROM
{node} base_table
LEFT OUTER JOIN {workspace_association} workspace_association ON workspace_association.target_entity_type_id = 'node' AND workspace_association.target_entity_id = base_table.nid AND workspace_association.workspace = 'stage'
LEFT JOIN {node_field_data} node_field_data ON node_field_data.nid = base_table.nid
ORDER BY expression ASC
LIMIT 50 OFFSET 0; Array
(
)
in <em class="placeholder">Drupal\Core\Entity\EntityListBuilder->getEntityIds()</em> (line <em class="placeholder">104</em> of <em class="placeholder">core/lib/Drupal/Core/Entity/EntityListBuilder.php</em>). <pre class="backtrace">Drupal\Core\Database\Statement->execute(Array, Array) (Line: 625)
Drupal\Core\Database\Connection->query('SELECT min(node_field_data.nid) AS expression, COALESCE(workspace_association.target_entity_revision_id, base_table.vid) AS vid, base_table.nid AS nid
FROM
{node} base_table
LEFT OUTER JOIN {workspace_association} workspace_association ON workspace_association.target_entity_type_id = 'node' AND workspace_association.target_entity_id = base_table.nid AND workspace_association.workspace = 'stage'
LEFT JOIN {node_field_data} node_field_data ON node_field_data.nid = base_table.nid
ORDER BY expression ASC
LIMIT 50 OFFSET 0', Array, Array) (Line: 87)
Drupal\Core\Database\Driver\mysql\Connection->query('SELECT min(node_field_data.nid) AS expression, COALESCE(workspace_association.target_entity_revision_id, base_table.vid) AS vid, base_table.nid AS nid
FROM
{node} base_table
LEFT OUTER JOIN {workspace_association} workspace_association ON workspace_association.target_entity_type_id = 'node' AND workspace_association.target_entity_id = base_table.nid AND workspace_association.workspace = 'stage'
LEFT JOIN {node_field_data} node_field_data ON node_field_data.nid = base_table.nid
ORDER BY expression ASC
LIMIT 50 OFFSET 0', Array, Array) (Line: 510)
Drupal\Core\Database\Query\Select->execute() (Line: 257)
Drupal\Core\Entity\Query\Sql\Query->result() (Line: 76)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 104)
Drupal\Core\Entity\EntityListBuilder->getEntityIds() (Line: 86)
Drupal\Core\Entity\EntityListBuilder->load() (Line: 234)
Drupal\Core\Entity\EntityListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('node')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 665)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>