Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.If upgrading your sites to 8.8, you'll see this on the Status page:
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"] = "sites/site1.example.com/private/temp"
See the change record and also a Drupal Answers page.










Comments
Comment #2
jptillman CreditAttribution: jptillman commentedThe site I'm working with does not specify anything in the settings.php regarding /tmp and I was getting this error message. (I installed the site using a custom template's custom db installation)
So, the "change record" has no relevant information for me.
Following the accepted answer on the Drupal Answers page and using Drush to update this value just results in a *different* error report:
You are using deprecated configuration for the temporary files path. Your temporary directory configuration matches the OS default and can be safely removed.Not a very helpful solution. This is currently broken and uncorrectable for anyone who doesn't know what "deprecated configuration" this error message is talking about. If it found something, it should say what it found and how to fix it, not just some vague reference to "deprecated configuration". In my case, for example, there is no visible "configuration" to remove.
Comment #3
jptillman CreditAttribution: jptillman commentedAlso, what's going on with the Version selection on this issue screen? It doesn't allow specifying anything above version 7.
Comment #4
colanThere is no stable version of Aegir past 7 (yet).
Comment #5
garryh CreditAttribution: garryh as a volunteer commentedNote that the closing SEMICOLON is missing in the suggested text which shows up in the Status Report after you upgrade to 8.8.1
$settings['file_temp_path'] = '../temp-stuff';
Once you have upgraded to 8.8.x you cannot "remove" the previous configuration (?), so I don't understand why that is suggested.
I strongly recommend you add this to settings.php BEFORE you attempt to upgrade from 8.7.x to 8.8.1
Comment #6
jshimota01 CreditAttribution: jshimota01 commentedfrustrating that D8.8 breaks things. you'd think temp folder would be fleshed out by now.
THe message is incorrect - I think suggesting double quotes vs singles quotes and not ending the string with a semicolon... (for those that copy/paste)
Then for the fools who follow instructions like me - it fails. It shows in my files settings as still set to /tmp. A previous comment suggests after upgrading from 8.7 to 8.8 you're not able to make this change for some reason. I can't get it to work anyways with no amount of tweaks to string, folder or rights. Seems even editing your sites settings files doesn't allow change to the /tmp path after the fact.... this in turn breaks CSS Aggregate cache to name something obvious. I know it's not nice to bash but ... really?
Comment #7
alex_may CreditAttribution: alex_may as a volunteer commentedI solved this way (CentOS 8, D8)
selinux is disabled :(
do not disable selinux, turn this on after config and test
in my settings.php
Important:
1. File path is absolute to host filesystem
2. this dirs are *outside drupal root and apache www docroot*
Permissions is
rwx r-x r-x apache:apache for private /var/www/drupal_priv_files dir
rwx rwx rwx root:wheel for /tmp dir
Comment #8
colanWe need to update Provision to do this automatically, but the good news is that we don't need remove the old configuration. With some newer Drupal versions, it's simply ignored.
Comment #9
doka CreditAttribution: doka commentedI think a recent patch will solve it by changing the D8 settings template.
see: https://git.drupalcode.org/project/provision/-/commit/aa1275b577970f6ff7...
Comment #10
colan@memtkmcc just confirmed this in the Matrix.org room; thanks for pointing it out.