I am trying to update drupal core from 8.2.8 to 8.3.1 alongwith lightning from 2.0.1 to 2.1.0. I've created the sub profile for lightning and executed all the manual steps mentioned here - https://github.com/acquia/lightning/blob/2.1.0/UPDATE.md. When running travis, I'm getting the below error

Error: Call to a member function getColumns() on boolean in /docroot/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 228

After a bit of debugging I found that the error is coming from the below line and the reason for the error is that $field_storage is setting to FALSE here

$columns = $field_storage->getColumns();

System information before update:

  • Drupal Version: 8.2.8
  • Lightning Version: 2.0.1

System information after updating:

  • Drupal Version: 8.3.1
  • Lightning Version: 2.1.0
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gaurav.goyal created an issue. See original summary.

gaurav.goyal’s picture

Attached is the patch which fixes the issue. Added a check for $field_storage.

gaurav.goyal’s picture

Status: Active » Needs review

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

kylethebaker’s picture

I'm running into the same issue. I have a custom entity that doesn't contain any 'fields', just entity properties. Trying to run an Entity Query against it causes this error to be thrown. Applying the patch worked for me.

My assumption is that it has to do with my entity not having any 'fields' (not sure what the proper terminology is here: I don't have any field tables for my entity, all of my fields are columns on the entity table defined as entity_keys in the annotation).

amateescu’s picture

@kylethebaker, can you paste the code of your custom entity type and the one for the entity query?

If we want to be able to fix this bug, we need to add a test for it, so we need some simple steps to reproduce that we can put into that test :)

kylethebaker’s picture

@amateescu, here the repo for the module that contains just the custom entity: https://bitbucket.org/mygolfspy/mgs-swing-entity

I used drupal-console `generate:entity:content` and the only modification that I made is to the main entity file (src/Entity/SwingEntity.php).

The entity query is as follows:

$query = $this->entityTypeManager->getStorage('swing_entity')->getQuery()
      ->condition('bad_launch_data', false)
      ->condition('outlier', false)
      ->condition('tester_id.entity:node.field_transition', $transition)
      ->condition('club_id.entity:node.field_club_type.target_id', $field_club_type)
      ->condition('club_speed', $club_speed, 'BETWEEN')
      ->condition('angle_of_attack', $angle_of_attack, 'BETWEEN')
      ->sort('strokes_gained', 'DESC')
      ->range(0, 10);
$results = $query->execute();

I'll be able to do some debugging this weekend and see if I can figure out more, there might be an easier way to reproduce

kylethebaker’s picture

Some of my thoughts before I get too deep into debugging. Identical code to the one that is throwing the error in question also appears on line 151. See them both here:

Line 151 (identical code)

Line 227 (code that throws)

These identical code blocks appear in complementary if/else blocks. We have something like this:

if ($field_storage && $table_mapping->requiresDedicatedTableStorage($field_storage)) {
  // ...
  // line 151 - this is okay because the conditional guarantees that 
  // $field_storage is set
  $columns = $field_storage->getColumns();
  // ...
} else {
  // ...
  // line 228 (where error is thrown) - in order for this code to be
  // reached, either $field_storage has to be falsey or the field
  // doesn't require dedicated table storage. in other words, we're
  // trying to access $field_storage properties inside of a block
  // where one of the preconditions is that $field_storage isn't
  // even set.
  $columns = $field_storage->getColumns();
  // ...
}

Inside of this same `else` conditional there are other blocks where `$field_storage` is used, but in those cases it is wrapped in a check, similar to what the patch here applies. See the following lines where this happens:

Line 241

Line 251

So I think that in this case the check was just overlooked. Since the else block is handling cases where `$field_storage` may or may not be set, every call needs to be wrapped in a check.

amateescu’s picture

Thanks @kylethebaker for the test module and for the actual query that you ran. The test module was unfortunately not very useful because the entity query didn't fail for me, but I was able to figure out the problem after trying out different scenarios.

The actual problem is that in a complex field name condition like user_id.entity:user.name.value, if the user_id field doesn't exist on the main entity type or the name field doesn't exist on the referenced entity type, the fatal error described in the issue summary is thrown.

In your case, I suspect that the field_club_type field didn't exist on the Node entity type.

Anyway, here's a test-only patch that shows this fatal error and a better fix than #2, because that patch would simply result in an entity query that would never match what it was intended to.

The last submitted patch, 9: 2893747-9-test-only.patch, failed testing. View results

kylethebaker’s picture

@amateescu,

I have double checked and all of the entity fields used in the conditions exist on my end. Using your patch I'm able to run the query (successfully) without triggering the new exception, but if I change one of the field names to a non-existent one then I can see it trigger. If my fields didn't exist on Node entities then I should have seen the exception trigger the first time, right?

I can try starting from a clean install and recreating the bare minimum of my setup and see if I still encounter this, and if so share the config sync yaml with you so we can have identical environments. You said that the query didn't fail for you, so it's possible that there is something specific about my environment triggering this that is not reflected in what I've shared (the entity or the query).

amateescu’s picture

@kylethebaker,

If my fields didn't exist on Node entities then I should have seen the exception trigger the first time, right?

Not necessarily :) I encountered a very interesting situation while writing the test for this bug, the fatal error only occurred when the problematic entity query was run *before* any other entity query, even one that was totally unrelated on a different entity type.

I can try starting from a clean install and recreating the bare minimum of my setup and see if I still encounter this, and if so share the config sync yaml with you so we can have identical environments. You said that the query didn't fail for you, so it's possible that there is something specific about my environment triggering this that is not reflected in what I've shared (the entity or the query).

If you have the time to do that, yes, a minimal testing environment with just Drupal core, the module with your custom entity type, some fields on the Node entity type and some place to run that query that would fail consistently would help a lot with figuring out what the problem was in your specific case.

But if you can confirm that the patch from #9 fixes the fatal error (which you already did), and that the entity query returns the expected result, that's also helpful for getting this patch to RTBC :)

SocialNicheGuru’s picture

Status: Needs review » Reviewed & tested by the community

This works for me on Drupal 8.4.2

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

We should just throw the exception first.

This is the current logic of that method.

// Check whether this field is stored in a dedicated table.
if ($field_storage && $table_mapping->requiresDedicatedTableStorage($field_storage)) {...}
// The field is stored in a shared table.
elseif ($field_storage) {...}
// If there are more specifiers to come, it's a relationship.
if ($field_storage && $key < $count) {...}
// If the specifier is neither a valid field name nor a relationship,
// throw an exception.
if (!$field_storage) {
  throw new QueryException("Invalid specifier '$specifier'");
}

If we throw it right at the top, all the if statements are greatly simplified.

SocialNicheGuru’s picture

While I did not get the error that this patch solved after applying this patch, I got the following problem for smsframework:
https://www.drupal.org/node/2922029:

Drupal\Core\Entity\Query\QueryException: Invalid specifier 'entity__target_type' in Drupal\Core\Entity\Query\Sql\Tables->addField() (line 289 of core/lib/Drupal/Core/Entity/Query/Sql/Tables.php).

and this one for scheduled_messages
https://www.drupal.org/project/scheduled_message/issues/2922310

Drupal\Core\Entity\Query\QueryException: Invalid specifier 'field_send_state' in Drupal\Core\Entity\Query\Sql\Tables->addField() (line 289 of core/lib/Drupal/Core/Entity/Query/Sql/Tables.php).

Without the patch in this issue queue, the other errors go away the above error for scheduled_message and smsframework go away

jcmartinez’s picture

After applying the patch #9, I get the following error message when I run cron using drush:

Drupal\Core\Entity\Query\QueryException: Invalid specifier 'billing_period' in Drupal\Core\Entity\Query\Sql\Tables->addField() (line 300 of        [error]
/home/drupalpro/websites/mysite.dev/web/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php).
Cron run successful.

I'm on Drupal 8.4.3 and I'm using the Commerce module, Commerce License and Commerce Recurring.

heyyo’s picture

Same issue than in #10 when uninstalling Webform Demo.

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Core\Entity\Query\QueryException</em>: Invalid specifier &#039;webform&#039; in <em class="placeholder">Drupal\Core\Entity\Query\Sql\Tables-&gt;addField()</em> (line <em class="placeholder">300</em> of <em class="placeholder">core\lib\Drupal\Core\Entity\Query\Sql\Tables.php</em>). <pre class="backtrace">Drupal\Core\Entity\Query\Sql\Condition-&gt;compile(Object) (Line: 163)
Drupal\Core\Entity\Query\Sql\Query-&gt;compile() (Line: 74)
Drupal\Core\Entity\Query\Sql\Query-&gt;execute() (Line: 70)
webform_demo_application_evaluation_uninstall()
call_user_func_array(&#039;webform_demo_application_evaluation_uninstall&#039;, Array) (Line: 391)
Drupal\Core\Extension\ModuleHandler-&gt;invoke(&#039;webform_demo_application_evaluation&#039;, &#039;uninstall&#039;) (Line: 399)
Drupal\Core\Extension\ModuleInstaller-&gt;uninstall(Array, 1) (Line: 91)
Drupal\Core\ProxyClass\Extension\ModuleInstaller-&gt;uninstall(Array) (Line: 160)
Drupal\system\Form\ModulesUninstallConfirmForm-&gt;submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter-&gt;executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter-&gt;doSubmitForm(Array, Object) (Line: 585)
Drupal\Core\Form\FormBuilder-&gt;processForm(&#039;system_modules_uninstall_confirm_form&#039;, Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder-&gt;buildForm(&#039;system_modules_uninstall_confirm_form&#039;, Object) (Line: 74)
Drupal\Core\Controller\FormController-&gt;getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 153)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 657)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>
d.novikov’s picture

Faced the same issue with the simplenews module when running cron:

Drupal\Core\Entity\Query\QueryException: Invalid specifier 'simplenews_issue' in Drupal\Core\Entity\Query\Sql\Tables->addField() (line 300 of .../core/lib/Drupal/Core/Entity/Query/Sql/Tables.php).

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

SocialNicheGuru’s picture

Here is how I am getting this error:
1. goto uninstall
2. uninstall a module like flag or linkback which has settings that are automatically added to fields or content types and also has it's own admin settings
3. select uninstall
4. I get a WSOD on the confirm page and the getColumn error in my logs
5. Go back to uninstall and uninstall the module again
You will notice that the field or node based settings have been uninstalled
When uninstall is run again it uninstalls the remaining admin settings

I find something similar if there are optional settings that need to be installed.

It's as if there is a three step process:
1) remove the module for fields or entities that it might have attached to
2) remove any optional settings
3) remove all other settings

also drush pm-uninstall does not perform as the uninstall page does and thus masks the steps above by leaving the configuration even though it has uninstalled the module

scottsawyer’s picture

can anyone confirm the following:

  1. Does this bug still exist in 8.5?
  2. If yes, does this patch Still apply to 8.5.x?

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

cbovard’s picture

Subscribing.

Kingdutch’s picture

The bug still exists. The patch no longer applies. The feedback from #14 still needs to be incorporated.

Also please use the "Subscribe" flag on the right to subscribe to an issue instead of commenting "Subscribe" :D Thanks!

jucedogi’s picture

I'm using Drupal 8.7.2 and this is still a thing. Can't uninstall some modules after getting this error.

sandiaras’s picture

Patch #9 works for me on Drupal 8.4.0

hans.p.’s picture

Hi,

just update my core site (to 8.7.6), this issue in still present.
Uninstalling modules does work, so that is fixed!
But now i got this error after trying to import feeds.

Error: Call to a member function getColumns() on boolean in Drupal\Core\Entity\Query\Sql\Tables->addField() (regel 252 van /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php) #0 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php(52): Drupal\Core\Entity\Query\Sql\Tables->addField('feeds_item.targ...', 'INNER', NULL) #1 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(172): Drupal\Core\Entity\Query\Sql\Condition->compile(Object(Drupal\Core\Database\Driver\mysql\Select)) #2 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(80): Drupal\Core\Entity\Query\Sql\Query->compile() #3 /data/sites/web/mydrupalsite/www/modules/feeds/src/Feeds/Processor/EntityProcessorBase.php(674): Drupal\Core\Entity\Query\Sql\Query->execute() #4 /data/sites/web/mydrupalsite/www/modules/feeds/src/Entity/Feed.php(508): Drupal\feeds\Feeds\Processor\EntityProcessorBase->getItemCount(Object(Drupal\feeds\Entity\Feed)) #5 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/EntityStorageBase.php(491): Drupal\feeds\Entity\Feed->preSave(Object(Drupal\feeds\FeedStorage)) #6 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(692): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\feeds\Entity\Feed)) #7 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/EntityStorageBase.php(446): Drupal\Core\Entity\ContentEntityStorageBase->doPreSave(Object(Drupal\feeds\Entity\Feed)) #8 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(838): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\feeds\Entity\Feed)) #9 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Entity/EntityBase.php(394): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\feeds\Entity\Feed)) #10 /data/sites/web/mydrupalsite/www/modules/feeds/src/FeedForm.php(215): Drupal\Core\Entity\EntityBase->save() #11 [internal function]: Drupal\feeds\FeedForm->save(Array, Object(Drupal\Core\Form\FormState)) #12 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #13 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #14 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Form/FormBuilder.php(590): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #15 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Form/FormBuilder.php(319): Drupal\Core\Form\FormBuilder->processForm('feeds_feed_occa...', Array, Object(Drupal\Core\Form\FormState)) #16 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Controller/FormController.php(93): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\feeds\FeedForm), Object(Drupal\Core\Form\FormState)) #17 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #18 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #19 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #20 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #21 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #22 /data/sites/web/mydrupalsite/www/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #23 /data/sites/web/mydrupalsite/www/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #24 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /data/sites/web/mydrupalsite/www/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /data/sites/web/mydrupalsite/www/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /data/sites/web/mydrupalsite/www/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 /data/sites/web/mydrupalsite/www/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /data/sites/web/mydrupalsite/www/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #33 {main}.

any thoughts?

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

caspervoogt’s picture

#9 solves this for me, on Drupal 8.9.2. I was unable to run cron before using this patch; it was failing with Error: Call to a member function getColumns() on boolean in /docroot/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 228.

raman.b’s picture

Version: 8.9.x-dev » 9.2.x-dev
Status: Needs work » Needs review
FileSize
2.62 KB
1.46 KB
4.11 KB
3.16 KB

Re-rolling for the latest dev branch and addressing #14

Status: Needs review » Needs work

The last submitted patch, 31: 2893747-31.patch, failed testing. View results

Tomefa’s picture

Michael Zetterberg fd. Lopez’s picture

Thanks Tomefa, the patch in #33 helped me. It didn't solve my problem but it did give me a better error message stating what the real issue was. For us it was having renamed a field locally (see https://drupal.stackexchange.com/questions/250927/how-do-i-rename-a-fiel...) and not on staging and production servers.

Greenhorn’s picture

I have the same mistake. Drupal 8.9.9 and applied the patch from @Tomefa (patch # 33) and it worked. I hope there are no other problems.
Thanks @Tomefa.

niles38’s picture

We're running Drupal 8.9.11 and the patch in #33 worked for us. Thanks! Please put this in core. We had been getting this error a lot.

dgaspara’s picture

#33 works for me. Thanks!

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Renrhaf’s picture

#33 works for me also. Thank you very much.
Running Drupal 9.2.2

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

johnfallen’s picture

#33 works for me also. Thanks!
Running Drupal 9.2.9

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

adimushi’s picture

#33 worked for me as well. Thanks a lot!
Drupal core 9.4.5

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gauravjeet’s picture

#33 applies to Drupal 9.4.8

robcarr’s picture

Patch #33 seemed to work initially, but then caused WSOD on 9.5.1 during login. Not sure why

Drupal\Core\Entity\Query\QueryException: Invalid specifier 'entity__target_type' in Drupal\Core\Entity\Query\Sql\Tables->addField() (line 314 of core/lib/Drupal/Core/Entity/Query/Sql/Tables.php).

JasonSafro’s picture

Please check https://www.drupal.org/project/drupal/issues/3352880. I think it's related but different.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Ghost of Drupal Past’s picture

Two different errors are being mixed in this issue. One is in the title and at least one cause is field storage definitions might be missing in the last installed schema repository due to #3363732: entity.last_installed_schema.repository has a race condition.

The invalid specifier is a completely different one as far as I am able to tell.

Ajeet Tiwari’s picture

Status: Needs work » Needs review
FileSize
1 KB

Please review.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

Removing credit for #50 as there was no interdiff but from the pervious file size something was lost.
There was no explanation for what was changed or why. If just a reroll that doesn't receive credit anymore either.
Also CC failure, expected to check patch before uploading.
#49 mentions things are getting mixed so maybe the issue summary should be updated too.

andileco’s picture

I experienced this issue when I (config sync) imported a Feed type from one site to another and then tried to add a Feed of that type in my new site. By going to the Feed type, editing and saving it, I was then able to add the new Feed without the error. Would definitely be great to have this bug fixed, but this is a helpful workaround if you are stuck and don't want to apply a patch.

_utsavsharma’s picture