External URLs do not have internal route parameters

Created on 21 January 2022, almost 3 years ago
Updated 16 August 2024, 3 months ago

The next error is displayed when the user tries to open a page that does not exist:

The website encountered an unexpected error. Please try again later.

UnexpectedValueException: External URLs do not have internal route parameters. in Drupal\Core\Url->getRouteParameters() (line 581 of core/lib/Drupal/Core/Url.php).
Drupal\views_argument_token\Plugin\views\argument_default\TokenArgument->getArgument() (Line: 802)
Drupal\views\Plugin\views\argument\ArgumentPluginBase->getDefaultArgument() (Line: 1090)

This error is due to getRouteParameters() drupal function on getArgument() function of views_argument_token\src\Plugin\views\argument_default\TokenArgument.php file.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇴Colombia Gustavo Silva

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.

  • 🇮🇳India pranit84 Faridabad (India)

    Current patch is not getting applied on the module, So, I created a new patch which fixes the issue and works well with the current module (2.0.0 released 6 August 2021).

  • 🇩🇪Germany kreatIL

    Patch #4 does not apply against version 2.0.1. New patch should apply.

  • 🇷🇺Russia walkingdexter

    Patch #4 works for me (version 2.0.2)

  • I also have the same problem, But I don't know how to use the patch.

    Steps to reproduce:
    1.Choose token option from Provide a default value (in the context filter of the view).
    2.Enter a token or leave it blank.
    3.Open a non-existent page on the browser.
    4.No 404 page returned, The page encountered an error: The website encountered an unexpected error. Try again later.

Production build 0.71.5 2024