---
title: "Fix for the warning about the Drupal 8.8.x deprecated temporary directory configuration"
date: "2022-02-11T17:54:23+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/92361-fix-warning-about-drupal-88x-deprecated-temporary-directory-configuration"
id: "37d8f716-cf92-4151-a885-0303b6a93dd6"
---

In your Drupal status report, you may see an warning like this for versions 8.8.0 or higher:

> TEMPORARY DIRECTORY  
> Deprecated configuration  
> You are using deprecated configuration for the temporary files path. Remove the configuration and add the following to settings.php. $settings\["file\_temp\_path"\] = "/mnt/tmp/yoursubscription"

This setting will be enforced in Drupal 9 and above. To resolve it and to avoid having to hard-code the path, use the following code instead:

    $settings['file_temp_path'] = '/mnt/tmp/' . $_ENV['AH_SITE_GROUP'] . '.' . $_ENV['AH_SITE_ENVIRONMENT'];

This will use your site's [environment variables](/node/56164) to determine the correct directory to use. This is best done inside the IF block that has [the require line](/node/56321), and put the above line just after that line.