Error message

  • Notice: Undefined offset: 0 in Drupal\home\Plugin\Block\ProjectListByCateBlock->build() (line 58 of modules/home/src/Plugin/Block/ProjectListByCateBlock.php).
    Drupal\home\Plugin\Block\ProjectListByCateBlock->build() (Line: 171)
    Drupal\block\BlockViewBuilder::preRender(Array)
    call_user_func_array(Array, Array) (Line: 101)
    Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 781)
    Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 372)
    Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 200)
    Drupal\Core\Render\Renderer->render(Array, 1) (Line: 156)
    Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 573)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 157)
    Drupal\Core\Render\Renderer->renderPlain(Array) (Line: 171)
    Drupal\Core\Render\Renderer->renderPlaceholder('', Array) (Line: 658)
    Drupal\Core\Render\Renderer->replacePlaceholders(Array) (Line: 543)
    Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 200)
    Drupal\Core\Render\Renderer->render(Array, 1) (Line: 144)
    Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 573)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 145)
    Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 282)
    Drupal\Core\Render\HtmlResponseAttachmentsProcessor->renderPlaceholders(Object) (Line: 71)
    Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object) (Line: 45)
    Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object)
    call_user_func(Array, Object, 'kernel.response', Object) (Line: 142)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.response') (Line: 191)
    Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 137)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
    Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
    Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
    Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
    Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 49)
    Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
    Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
    
  • Notice: Trying to access array offset on value of type null in Drupal\home\Plugin\Block\ProjectListByCateBlock->build() (line 58 of modules/home/src/Plugin/Block/ProjectListByCateBlock.php).
    Drupal\home\Plugin\Block\ProjectListByCateBlock->build() (Line: 171)
    Drupal\block\BlockViewBuilder::preRender(Array)
    call_user_func_array(Array, Array) (Line: 101)
    Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 781)
    Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 372)
    Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 200)
    Drupal\Core\Render\Renderer->render(Array, 1) (Line: 156)
    Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 573)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 157)
    Drupal\Core\Render\Renderer->renderPlain(Array) (Line: 171)
    Drupal\Core\Render\Renderer->renderPlaceholder('', Array) (Line: 658)
    Drupal\Core\Render\Renderer->replacePlaceholders(Array) (Line: 543)
    Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 200)
    Drupal\Core\Render\Renderer->render(Array, 1) (Line: 144)
    Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 573)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 145)
    Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 282)
    Drupal\Core\Render\HtmlResponseAttachmentsProcessor->renderPlaceholders(Object) (Line: 71)
    Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object) (Line: 45)
    Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object)
    call_user_func(Array, Object, 'kernel.response', Object) (Line: 142)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.response') (Line: 191)
    Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 137)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
    Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
    Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
    Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
    Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 49)
    Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
    Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
    
View more
View more
View more