Error: Call to undefined method Drupal\search_api\Processor\ProcessorProperty::getFieldDefinition() in ../modules/contrib/facets_range_datepicker_widget/src/Plugin/facets/processor/DatepickerProcessor.php on line 84 #0 ../modules/contrib/facets/src/Form/FacetForm.php(232): Drupal\facets_range_datepicker_widget\Plugin\facets\processor\DatepickerProcessor->supportsFacet(Object(Drupal\facets\Entity\Facet))

line 84 should check that: $field instanceof FieldItemDataDefinition. && in_array..

CommentFileSizeAuthor
#2 3262520#2-check-for-instanceof.patch2.47 KBskaught

Comments

SKAUGHT created an issue. See original summary.

skaught’s picture

Status: Active » Needs review
StatusFileSize
new2.47 KB

  • SKAUGHT committed 7fb9da5 on 1.0.x
    Issue #3262520 by SKAUGHT: Solr with empty index throws error
    
skaught’s picture

have merged to dev 1.0.x

sershevchyk’s picture

Status: Needs review » Reviewed & tested by the community

I had an error:
Error: Call to undefined method Drupal\search_api_solr\TypedData\SolrFieldDefinition::getFieldDefinition() in Drupal\facets_range_datepicker_widget\Plugin\facets\processor\DatepickerProcessor->supportsFacet() (line 84 of /app/web/modules/contrib/facets_range_datepicker_widget/src/Plugin/facets/processor/DatepickerProcessor.php)

and the patch helps me.

skaught’s picture

Status: Reviewed & tested by the community » Fixed

thanks. closing.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.