dbee_stored_users at dbee.module:222 throw Drupal\Core\Entity\EntityStorageException: mimic_implicit_commit is already in use at dbee.module:238 line.
Drupal\Core\Entity\EntityStorageException: mimic_implicit_commit is already in use. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 829 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Drupal\Core\Database\Driver\pgsql\Connection->addSavepoint() (Line: 143)
Drupal\Core\Database\Driver\pgsql\Select->execute() (Line: 238)
dbee_stored_users() (Line: 789)
_dbee_where_mailfields2uid(Array, 'mail', '=', 'TRUE') (Line: 663)
_dbee_where_clause(Object, 'users_field_data', Array) (Line: 568)
dbee_query_alter(Object, NULL, NULL) (Line: 539)
Drupal\Core\Extension\ModuleHandler->alter('query', Object) (Line: 480)
Drupal\Core\Database\Query\Select->preExecute() (Line: 488)
Drupal\Core\Database\Query\Select->preExecute() (Line: 505)
Drupal\Core\Database\Query\Select->execute() (Line: 145)
Drupal\Core\Database\Driver\pgsql\Select->execute() (Line: 253)
Drupal\Core\Entity\Query\Sql\Query->result() (Line: 77)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 33)
Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldValueValidator->validate(Object, Object) (Line: 185)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateConstraints(Object, '0000000008f32cb4000000003d73bca5', Array) (Line: 140)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 147)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object, Array, 1) (Line: 99)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate(Object, Array, NULL) (Line: 90)
Drupal\Core\TypedData\Validation\RecursiveValidator->validate(Object, Array) (Line: 286)
Drupal\Core\Plugin\Context\ContextDefinition->isSatisfiedBy(Object) (Line: 46)
Drupal\Core\Plugin\Context\ContextHandler->Drupal\Core\Plugin\Context\{closure}(Object)
array_filter(Array, Object) (Line: 47)
Drupal\Core\Plugin\Context\ContextHandler->getMatchingContexts(Array, Object) (Line: 34)
Drupal\Core\Plugin\Context\ContextHandler->checkRequirements(Array, Array) (Line: 25)
Drupal\Core\Plugin\Context\ContextHandler->Drupal\Core\Plugin\Context\{closure}(Array)
array_filter(Array, Object) (Line: 26)
Drupal\Core\Plugin\Context\ContextHandler->filterPluginDefinitionsByContexts(Array, Array) (Line: 23)
Drupal\ctools\Plugin\RelationshipManager->getDefinitionsForContexts(Array) (Line: 150)
Drupal\gdpr_fields\GDPRCollector->getValueEntities(Array, 'user', Object) (Line: 174)
Drupal\gdpr_fields\Controller\GDPRController->rtaData(Object) (Line: 98)
gdpr_tasks_generate_sar_report(Object) (Line: 138)
gdpr_tasks_gdpr_task_presave(Object)
call_user_func_array('gdpr_tasks_gdpr_task_presave', Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler->invokeAll('gdpr_task_presave', Array) (Line: 167)
Drupal\Core\Entity\EntityStorageBase->invokeHook('presave', Object) (Line: 730)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('presave', Object) (Line: 435)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 587)
Drupal\Core\Entity\ContentEntityStorageBase->doPreSave(Object) (Line: 389)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 820)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 391)
Drupal\Core\Entity\Entity->save() (Line: 109)
Drupal\gdpr_tasks\Controller\GDPRController->requestPage(Object, 'gdpr_sar')
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: 666)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comments
Comment #2
volegerComment #3
volegerLooks like this issue related to https://www.drupal.org/pift-ci-job/999084 failing test.
_dbee_where_mailfields2uid(Array, 'mail', '=', 'TRUE') (Line: 663)used same'='operator from the test.Comment #4
thedut commentedHello voleger
I close this issue, because I can't reproduce it, may be it is due to the last commits.
Feel free to re open it.
Comment #5
mulukallaarun commentedWe can reproduce this, when we try to use little customizations, using entity_hierarchy+dbee module.
function hook_form_alter($form, $form_state, $form_id) {
$nid = 2; // gets dynamically
$form['field_parent_reference']['widget'][0]['target_id']['target_id']['#default_value'] = Node::load($nid);
// Please correct me the better way to set a default value for this "Entity reference hierarchy" field, using custom code.
}
Then, if we save the node, we can see this error in Recent Log Messages:
Drupal\Core\Entity\EntityStorageException: mimic_implicit_commit is already in use. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 846 of /core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).