Parameter "webform" for route "entity.webform.canonical" must match "[^/]++" ("" given) to generate a corresponding URL

Created on 11 March 2020, over 4 years ago
Updated 3 November 2023, 8 months ago

Hi,

I have just updated Drupal core from 8.8.2 to 8.8.3.

After that, I tried to go in my webforms page "admin/structure/webform" and I got this error :

Symfony\Component\Routing\Exception\InvalidParameterException : Parameter "webform" for route "entity.webform.canonical" must match "[^/]++" ("" given) to generate a corresponding URL. dans Drupal\Core\Routing\UrlGenerator->doGenerate() (ligne 204 de /var/www/html/siuq/drupal/core/lib/Drupal/Core/Routing/UrlGenerator.php).

I tried to click the button "Repair configuration", but no changes...

I have multiple webforms and I'm able to see couple of them by entering the url "/admin/structure/webform/manage/mywebform".

But for others, I got a 404 error.

Anyone have an idea?

πŸ’¬ Support request
Status

Closed: cannot reproduce

Version

5.8

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada dsim01

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands gopisathya

    We had the same issue after upgrading to webform-6.2.0 together with Drupal 10. We did the following

    1. Find out which config files have empty/null uuid. In our case, we wanted to search in config/excluded directory where webforms were config excluded.
    grep -Rnw 'config/excluded' -e 'uuid: null'

    Assume, we have null uuid in the form webform.webform.cancel_form

    2. On those file(s) from step1, generate a uuid and update it.
    Change
    uuid: null
    to
    uuid: 0a3ba68e-3a84-459b-89c2-fd13d78b92d2

    3. Execute 'drush cim'

    4. If you see below error from step3
    "Error: Call to a member function label() on null in /drupalpath/html/core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php on line 67 #0 [internal function]: Drupal\Core\Entity\Event\BundleConfigImportValidate->onConfigImporterValidate()"
    then do the following

    drush cdel webform.webform.cancel_form

    5. Then retry 'drush cim' and admin/structure/webform show all the forms.

Production build 0.69.0 2024