- π§πͺBelgium dieterholvoet Brussels
Weird, it seems like the base field definition exists, but the actual database column doesn't. No idea what could cause that.
I have an eck entity with several bundles containing content. If I go back to the parent eck entity and try to add new base fields, I can successfully save but when I try to go back to that edit page I get a fatal SQL error:
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Core\Database\DatabaseExceptionWrapper</em>: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uid' in 'where clause': SELECT 1 AS expression
FROM
{MY_ECK_TYPE_field_data} t
WHERE uid IS NOT NULL
LIMIT 1 OFFSET 0; Array
(
)
in <em class="placeholder">Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData()</em> (line <em class="placeholder">1800</em> of <em class="placeholder">core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php</em>). <pre class="backtrace">Drupal\Core\Database\Statement->execute(Array, Array) (Line: 631)
Drupal\Core\Database\Connection->query('SELECT 1 AS expression
FROM
{MY_ECK_TYPE_field_data} t
WHERE uid IS NOT NULL
LIMIT 1 OFFSET 0', Array, Array) (Line: 358)
Drupal\Core\Database\Driver\mysql\Connection->query('SELECT 1 AS expression
FROM
{MY_ECK_TYPE_field_data} t
WHERE uid IS NOT NULL
LIMIT 1 OFFSET 0', Array, Array) (Line: 510)
Drupal\Core\Database\Query\Select->execute() (Line: 1800)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData(Object, 1) (Line: 36)
Drupal\eck\Form\EntityType\EckEntityTypeEditForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 519)
Drupal\Core\Form\FormBuilder->retrieveForm('eck_entity_type_edit_form', Object) (Line: 276)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
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: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>
I'm using 8.x-1.0-alpha5 with Drupal 8.7.8. Has anyone else run into this? I have a foggy memory of running into it in the past and then thinking it was fixed.
Active
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Weird, it seems like the base field definition exists, but the actual database column doesn't. No idea what could cause that.