Error: Call to undefined method Drupal\Core\GeneratedUrl::toString() in Drupal\linkit\Plugin\Filter\LinkitFilter->process() (line 134 of modules/contrib/linkit/src/Plugin/Filter/LinkitFilter.php).

Created on 4 October 2023, about 1 year ago
Updated 20 October 2023, about 1 year ago

Problem/Motivation

The fix commited in issue 3354873 🐛 Direct URL to media file entity does not work because relative URL does not pass URL path validation Fixed introduced a new php error when viewing the content.

Error: Call to undefined method Drupal\Core\GeneratedUrl::toString() in Drupal\linkit\Plugin\Filter\LinkitFilter->process() (line 134 of modules/contrib/linkit/src/Plugin/Filter/LinkitFilter.php).

Steps to reproduce

Drupal 10 website + linkit 6.1.1 + media matcher with substitution type : Direct download URL for media item (Forcing a Save as... browser dialog)

Proposed resolution

Change the method call line 134 for something existing.

Remaining tasks

Propose a patch

🐛 Bug report
Status

Closed: duplicate

Version

6.1

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024