No courses found.
Error message
Warning: foreach() argument must be of type array|object, null given in Drupal\trent_course_listing\Query\CourseListQuery->processDuplicates() (line 226 of modules/custom/trent_course_listing/src/Query/CourseListQuery.php).
Drupal\trent_course_listing\Query\CourseListQuery->processDuplicates() (Line: 195) Drupal\trent_course_listing\Query\CourseListQuery->parseResults() (Line: 189) Drupal\trent_course_listing\Query\CourseListQuery->execute() (Line: 29) Drupal\trent_course_listing\Plugin\Block\CourseListingResultsBlock->build() (Line: 106) Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray->onBuildRender() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 90) Drupal\layout_builder\SectionComponent->toRenderArray() (Line: 88) Drupal\layout_builder\Section->toRenderArray() (Line: 331) Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildSections() (Line: 291) Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple() (Line: 340) Drupal\Core\Entity\EntityViewBuilder->buildComponents() (Line: 24) Drupal\node\NodeViewBuilder->buildComponents() (Line: 282) Drupal\Core\Entity\EntityViewBuilder->buildMultiple() (Line: 239) Drupal\Core\Entity\EntityViewBuilder->build() call_user_func_array() (Line: 113) Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 870) Drupal\Core\Render\Renderer->doCallback() (Line: 432) Drupal\Core\Render\Renderer->doRender() (Line: 248) Drupal\Core\Render\Renderer->render() (Line: 238) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 231) 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: 53) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28) Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32) Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 201) Drupal\page_cache\StackMiddleware\PageCache->fetch() (Line: 138) Drupal\page_cache\StackMiddleware\PageCache->lookup() (Line: 87) 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: 741) Drupal\Core\DrupalKernel->handle() (Line: 19)