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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bwaindwain created an issue. See original summary.

bwaindwain’s picture

Issue summary: View changes
Status: Active » Needs review

created mr8

thomas kaisuka’s picture

Kindly push this to the main release version 4.0. Still getting the WSOD on all my themes in Drupal 10

vlad.dancer’s picture

Status: Needs review » Reviewed & tested by the community

The fix works and resolve this issue.

neslee canil pinto made their first commit to this issue’s fork.

neslee canil pinto’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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