I am on Drupal 10.6.3. I just upgraded from Block Group 2.0.1 to 2.0.2. When I attempt to create or edit a block, I get the WSOD with the following error:

The website encountered an unexpected error. Try again later.

Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'collection' found for the 'block_group_content' entity type in Drupal\Core\Entity\EntityBase->toUrl() (line 211 of core/lib/Drupal/Core/Entity/EntityBase.php).
Drupal\Core\Config\Entity\ConfigEntityBase->toUrl() (Line: 64)
Drupal\blockgroup\Form\BlockGroupContentForm->save()
call_user_func_array() (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 597)
Drupal\Core\Form\FormBuilder->processForm() (Line: 326)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult() (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 637)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
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: 61)
Drupal\advban\AdvbanMiddleware->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)

I have not created or edited a block group in a very long time, so it's entirely possible this problem was introduced in a previous version. However I happened on it now.

My existing block groups seem unaffected -- they still appear to function. The new block group I created also seems to be okay. So the error doesn't seem to negatively affect the actual use of block groups but is rather just an inconvenience.

Comments

aaronpinero created an issue. See original summary.

norman.lol’s picture

Version: 2.0.2 » 2.x-dev

Ah damn, this was introduced in #3571752: Remove "collection" = "/admin/structure/visibility_group". Let me get this fixed right away.

norman.lol’s picture

norman.lol’s picture

Status: Active » Fixed

Fixed and released 2.0.3

Thank you for the quick report!! 🙇🏻‍♂️

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

aaronpinero’s picture

Thanks for the quick response. That did the trick.

Status: Fixed » Closed (fixed)

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