WSOD on edit custom font

Created on 12 March 2024, 4 months ago
Updated 11 April 2024, 3 months ago

Problem/Motivation

When used with another contrib module like responsive_preview β†’ , clicking Edit or Delete on a custom font triggers WSOD.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.local_font_config_entity.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Core/Routing/RouteProvider.php).

The local_fonts entity canonical link is defined but not a corresponding route. When another module calls something like $entity->toUrl() it fails.

Steps to reproduce

Use Drupal 10.2.4, fontyourface 4.0.0 and responsive_preview
Enable local_fonts module
Create and upload a local font
Click Edit or Delete

Proposed resolution

Remove the local_fonts entity canonical link.

πŸ› Bug report
Status

Needs review

Version

4.0

Component

Local Fonts (provider)

Created by

πŸ‡¨πŸ‡¦Canada bwaindwain

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024