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 #3535052: Deprecated function: ctype_digit() does not work with empty routes.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

plopesc created an issue. See original summary.

heddn made their first commit to this issue’s fork.

  • heddn committed 9023df13 on 8.x-1.x authored by plopesc
    Issue #3536870 by plopesc, heddn: Fatal error when invoking...
plopesc’s picture

Status: Active » Needs review
heddn’s picture

Status: Needs review » Fixed

Thanks for the fix.

Status: Fixed » Closed (fixed)

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