- π©πͺGermany pp.panatom
Had the same issue.
I had a computed (views) field in my index. I could fix that problem by removing that field from index - π¦πΉAustria drunken monkey Vienna, Austria
Thanks for reporting this problem!
However, as it doesnβt seem easily possible to reproduce this problem, Iβd need help in investigating its root cause. The problem appears very likely somewhere in\Drupal\search_api\Entity\Index::getDependencyData()
. Would you be able to step through that, or add debugging lines, to see when and from where the empty module dependency is added? - Status changed to Postponed: needs info
over 1 year ago 10:02am 20 May 2023 - πͺπΈSpain dcraig91
I've the same problem creating and index to index content from https://www.drupal.org/project/recurring_events β .
In the index configuration i check: Event Instance entity, Event series entity and Registrant.
I hope it helps you, this error is quite annoying.
- π¬π§United Kingdom rattusrattus
I had ran into this when indexing a computed field with an unset provider, e.g.
$fields['computed_field'] = BaseFieldDefinition::create('string') ->setLabel(t('Example computed field')) ->setReadOnly(TRUE) ->setComputed(TRUE) ->setClass(ExampleComputedField::class) ->setDisplayConfigurable('form', FALSE) ->setDisplayConfigurable('view', TRUE) ->setProvider('example_computed_field'); // <---
I haven't stepped through the code but would make sense given the following in `\Drupal\search_api\Entity\Index::getDependencyData()`:
$type_dependencies[$type]['module'][] = $definition['provider'];
- Status changed to Needs review
12 months ago 9:06pm 1 December 2023 - last update
12 months ago 545 pass - π¦πΉAustria drunken monkey Vienna, Austria
That line doesnβt really refer to a field definition, but to a data type. Still, easy to check whether this might be the cause β please test the attached patch and see if it resolves the issue for you.