Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Routing parameter 'type' in optional, so when route doesn't have this it defined the next warning is thrown:
Undefined index: type in Drupal\relaxed\ParamConverter\DocIdConverter->applies() (line 135 of modules/contrib/relaxed/src/ParamConverter/DocIdConverter.php). Drupal\relaxed\ParamConverter\DocIdConverter->applies(Array, [notice]
'nid', Object) (Line: 61)
Undefined index: type in Drupal\relaxed\ParamConverter\DbConverter->applies() (line 61 of modules/contrib/relaxed/src/ParamConverter/DbConverter.php). Drupal\relaxed\ParamConverter\DbConverter->applies(Array, [notice]
'nid', Object) (Line: 61)
Proposed resolution
Add this case handling to condition.
Comment | File | Size | Author |
---|---|---|---|
#2 | relaxed-undefined-index-type-2926482-2.patch | 1.09 KB | l0ke |
|
Comments
Comment #2
l0keComment #4
jeqq@l0ke Thank you!