Notices in the logs on missing routes.

Created on 2 December 2019, almost 5 years ago
Updated 3 March 2023, over 1 year ago

Problem/Motivation

I am getting the following warnings from the module.

Notice: Undefined index: entity in Drupal\decoupled_router\EventSubscriber\RouterPathTranslatorSubscriber->findEntityAndKeys() (line 280 of WEBROOT/modules/contrib/decoupled_router/src/EventSubscriber/RouterPathTranslatorSubscriber.php)

The response is resulting in this one:

{"message":"Unable to resolve path {THE_PATH}.","details":"None of the available methods were able to find a match for this path."}

Even if such a path does not exist - it should not cause PHP warnings...
I will investigate further and ping with more details when I have them.

Proposed resolution

Work-around the notice. Find a root cause for it and prevent it on either route level or router level.

Remaining tasks

TBD.

User interface changes

None expected.

API changes

None expected.

Data model changes

None expected.

Release notes snippet

None expected.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇬Bulgaria ndobromirov

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.

Production build 0.71.5 2024