[Drupal >=10] When Far Future is enabled and CKEditor 4 is installed: Call to Deprecated Function 'file_url_transform_relative()'

Created on 20 October 2023, about 1 year ago
Updated 5 January 2024, 10 months ago

Problem/Motivation

When trying to edit a page on a Drupal 10 website with the CDN module installed, I received the following error:

Uncaught PHP Exception Error: "Call to undefined function file_url_transform_relative()" at /code/web/modules/contrib/cdn/cdn.module line 53

The file_url_transform_relative() function was deprecated and removed from Drupal 10:

https://www.drupal.org/node/2940031

Steps to reproduce

Attempt to add or edit content page.

Proposed resolution

Use a method from the file_url_generator service, as described in the issue linked above.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇺🇸United States kfolsom

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