Fatal error: ome mandatory parameters are missing ("view_mode") to generate a URL for route "flag.action_link_flag"

Created on 23 January 2025, 12 days ago

Problem/Motivation

The most recent release, 8.x-4.0-beta6, introduced an issue that triggers a PHP fatal error with the output:

Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("view_mode") to generate a URL for route "flag.action_link_flag". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 187 of /app/web/core/lib/Drupal/Core/Routing/UrlGenerator.php).

Steps to reproduce

This was observed on a site running on Drupal 10.4.1 and PHP 8.3. More research is needed to see what other factors could contribute to this error (i.e., site configuration or custom code that no longer works?).

Proposed resolution

TBD

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Flag core

Created by

πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

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

Comments & Activities

Production build 0.71.5 2024