Problem/Motivation

When opening the 'Name list formats' (admin/config/regional/flexdate/list) in a test site with module devel installed I get this error:
Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("name_format") to generate a URL for route "entity.name_list_format.devel_load". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 181 of /xxx/drupal/web/core/lib/Drupal/Core/Routing/UrlGenerator.php).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

PROMES created an issue. See original summary.

jasloe’s picture

Reporting same issue here. On a brand new site with only devel and name contribs installed, when opening 'name list formats' at /admin/config/regional/name/list, page returns "The website encountered an unexpected error. Please try again later." and the following log:

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

jaydub’s picture

/admin/config/regional/name/list is the admin path in question, not /admin/config/regional/flexdate/list in the ticket description above.

danherrero’s picture

StatusFileSize
new645 bytes

I ran into this issue as well. I found that the issue stems from a difference in the name_list_format links defined in the Name List Format configuration entity class and the name.routing.yml.

The attached patch resolves this.

danherrero’s picture

Status: Active » Needs review
nivethasubramaniyan’s picture

I was able to reproduce this issue after installing devel module with field name module in drupal 10.1.
After applying the above patch, the issue was resolved. I have attached the screenshot for reference.

keshavv’s picture

Status: Needs review » Reviewed & tested by the community

+1 for RTBC

promes’s picture

Thanks. This patch works for me as well.

  • heddn committed bf8742af on 8.x-1.x authored by danherrero
    Issue #3369866 by danherrero, PROMES, heddn: Symfony\Component\Routing\...
heddn’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contributions.

Status: Fixed » Closed (fixed)

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