The website encountered an unexpected error. Try again later.
ValueError: array_rand(): Argument #1 ($array) cannot be empty in array_rand() (line 407 of core\lib\Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem.php).
Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getRandomBundle() (Line: 366) Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::generateSampleValue() (Line: 253) Drupal\Core\Field\FieldItemList->generateSampleItems() (Line: 245) Drupal\Core\Entity\ContentEntityStorageBase->createWithSampleValues() (Line: 380) Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::generateSampleValue() (Line: 253) Drupal\Core\Field\FieldItemList->generateSampleItems() (Line: 245) Drupal\Core\Entity\ContentEntityStorageBase->createWithSampleValues() (Line: 55) Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator->get() (Line: 147) Drupal\commerce_product\ContextProvider\ProductVariationContext->getRuntimeContexts() (Line: 177) Drupal\commerce_product\ContextProvider\ProductVariationContext->getAvailableContexts() (Line: 89) Drupal\Core\Plugin\Context\LazyContextRepository->getAvailableContexts() (Line: 338) Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getContextsForEntity() (Line: 306) Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildSections() (Line: 278) Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple() (Line: 339) Drupal\Core\Entity\EntityViewBuilder->buildComponents() (Line: 24) Drupal\node\NodeViewBuilder->buildComponents() (Line: 281) Drupal\Core\Entity\EntityViewBuilder->buildMultiple() (Line: 238) Drupal\Core\Entity\EntityViewBuilder->build() call_user_func_array() (Line: 111) Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 859) Drupal\Core\Render\Renderer->doCallback() (Line: 421) Drupal\Core\Render\Renderer->doRender() (Line: 240) Drupal\Core\Render\Renderer->render() (Line: 238) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 239) Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28) Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 191) Drupal\page_cache\StackMiddleware\PageCache->fetch() (Line: 128) Drupal\page_cache\StackMiddleware\PageCache->lookup() (Line: 82) Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36) Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704) Drupal\Core\DrupalKernel->handle() (Line: 19)