Drupal 10 support currently broken

Created on 21 March 2023, over 1 year ago
Updated 11 August 2023, over 1 year ago

Use of drupal_get_path

Drupal 10 support is currently broken because of use a removed function drupal_get_path in UIkit class.

Just enable the theme and look at the page/source code.
Every function/action from "inc" files are not executed (alter.inc, preprocess.inc, process.inc, theme.inc) because this files are loaded with the loadIncludeFile() method defined in UIkit Class which use the removed function drupal_get_path at line 98.

    if (function_exists('drupal_get_path')) {
      $file = DRUPAL_ROOT . '/' . \Drupal::service('extension.path.resolver')->getPath($project_type, $project) . "$sub_directory/$name.$type";
      if (is_file($file)) {
        require_once $file;
        $files[$key] = $file;
        return $file;
      } else {
        $files[$key] = FALSE;
      }
    }

Just remove the if statement and everything become good.

    $file = DRUPAL_ROOT . '/' . \Drupal::service('extension.path.resolver')->getPath($project_type, $project) . "$sub_directory/$name.$type";
    if (is_file($file)) {
      require_once $file;
      $files[$key] = $file;
      return $file;
    } else {
      $files[$key] = FALSE;
    }

Listing jquery_ui and jquery_ui_dialog as dependencies

As documented in ๐Ÿ› Is Jquery needed as a dependency? Closed: works as designed

Using stable as base theme

As documented in ๐Ÿ› Drupal 10 requires Stable theme Closed: duplicate

๐Ÿ› Bug report
Status

Fixed

Version

3.16

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance mitsuko

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

Comments & Activities

Production build 0.71.5 2024