Fatal error when invoking views_url_path default argument with empty argument in 1.5

Created on 18 July 2025, 6 days ago

Problem/Motivation

When trying to execute a view that use the views_url_path default argument and the URL is empty, like in a drush command, the system returns a fatal error after upgrading to 1.5.

In 1.3, when the URL is empty , it returns an empty string, however in 1.5, we get the following error:

TypeError: Symfony\Component\HttpFoundation\InputBag::get(): Argument #1 ($key) must be of type string, null given, called in /var/www/html/web/modules/contrib/views_url_path_arguments/src/Plugin/views/argument_default/UrlPath.php

Refactor introduced in 🐛 Deprecated function: ctype_digit() Active does not work with empty routes.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain plopesc Valladolid

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024