Call to undefined function file_create_url()

Created on 3 August 2023, over 1 year ago
Updated 4 August 2023, over 1 year ago

Call to undefined function file_create_url()

Use \Drupal::service('file_url_generator')->generateAbsoluteString($uri)

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India VijaySharma_89

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

Comments & Activities

  • Issue created by @VijaySharma_89
  • @vijaysharma_89 opened merge request.
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India mukesh-kumar3 Dharmshala

    Hi i have fixed the listed issue below in the patch call to undefined function file_create_url() and also fixed the file status to permanent. Also attaching screenshot and patch below please check.

  • 🇮🇳India mukesh-kumar3 Dharmshala

    Sorry for adding patch again but issue for Undefined constant "FILE_STATUS_PERMANENT" Getting Error is opened seprately. So i only providing patch for call to undefined function file_create_url() issue please check.

  • Status changed to RTBC over 1 year ago
  • 🇧🇷Brazil elber Brazil

    Hi I revised it, I agree with your solution to update file_create_url().

    I tested using drupal 9.5 version

    Patch applied cleanly.

    Issue was resolved

    Moving to RTBC.

Production build 0.71.5 2024