Parameter "filter" for route "diff.revisions_diff" must match... crash

Created on 18 September 2016, about 8 years ago
Updated 8 February 2024, 10 months ago

Clicking the 'Compare' button on the 'Revisions' page of a node gives me an HTTP 500 Internal Server Error. The Drupal Log shows me:

Type: php
Location: http://[anonymized]/node/142/revisions
Referrer: http://[anonymized]/node/142/revisions
Message: Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "filter" for route "diff.revisions_diff" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 193 of /home/[anonymized]/public_html/core/lib/Drupal/Core/Routing/UrlGenerator.php).
Severity: Error

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇳🇱Netherlands dhendriks

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.

  • 🇨🇷Costa Rica rolandoscott

    I had this issue recently.. patch and instructions above worked for me with Drupal 9.5.10 and Diff 8.x-1.1

  • 🇫🇮Finland heikkiy Oulu

    I encountered a bit similar issue with a multisite.

    I did the following steps which caused the error.

    1. Enabled Diff and configured it in site A.
    2. Exported all changed configs with drush cex.
    3. Copied the new configurations to a site B
    4. Run drush cim which enabled Diff and imported the related configs.
    5. When trying to compare revisions, I got the same error as in this issue.

    Also the settings page for Diff was broken and it was missing all the needed settings. In my case I was able to fix it by removing the configs and importing configs again which uninstalled Diff. After that I was able to install the module with Drush and all the settings appeared correctly.

    It seems like installing the module from configurations is missing possible some database update step.

Production build 0.71.5 2024