Call to undefined function drupal_get_path() with D10

Created on 26 June 2023, about 1 year ago
Updated 7 August 2023, 11 months ago

Problem/Motivation

drupal_get_path() no longer exists with D10. We need to use the extension path resolver which was introduced in Drupal core 9.3 instead which means we should drop Drupal 8 compatibility to be able to support D10.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India Prachi6824

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

Comments & Activities

  • Issue created by @Prachi6824
  • Status changed to Needs review about 1 year ago
  • 🇮🇳India Prachi6824

    Hello,

    I have created a patch to solve all the error.
    Please review and apply it .

  • Status changed to RTBC 11 months ago
  • 🇮🇳India Abh1shek

    Hi @prachi6824, I applied your patch.

    Here are the steps I followed:
    1. Installed Drupal 10.1.2 version.
    2. Took clone from git version 1.0.1
    3. Installed theme and set it as default.
    4. Applied Patch #2
    5. Patch applied cleanly

    The error is now fixed. Moving it to RTBC.

  • 🇮🇳India Prachi6824

    Hello @Abh1shek Chauhan,

    Thank you for testing my patch .

Production build 0.69.0 2024