Call to deprecated function file_prepare_directory()

Created on 4 August 2022, over 2 years ago
Updated 17 April 2025, 11 days ago

Problem/Motivation

In Drupal 9
Error: Call to undefined function Drupal\search_api_synonym\Export\file_prepare_directory() in Drupal\search_api_synonym\Export\ExportPluginManager->saveSynonymsFile() (line 218 of /var/www/html/docroot/modules/contrib/search_api_synonym/src/Export/ExportPluginManager.php)

Call to deprecated function file_unmanaged_save_data()

Steps to reproduce

Proposed resolution

replace file_prepare_directory() to file_system service in Drupal 9

replace file_unmanaged_save_data() to file_system saveData()

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

1.2

Component

Code

Created by

🇵🇭Philippines mikeocana

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024