Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On a windows system, the default temporary directory comes up as "c:\windows\temp" in admin/settings.
On loading the screen, I get the usual error message "The directory c:\windows\temp does not exist." - because I'm on Win2k, which uses "c:\winnt" instead. That's fine, except I can't actually make any changes to the page while that error message is still there: "The settings have not been saved because of the errors."
In other words, the screen is unusable if the path can't be found.
Comment | File | Size | Author |
---|---|---|---|
#1 | file-temp-win.patch | 712 bytes | asimmonds |
Comments
Comment #1
asimmonds CreditAttribution: asimmonds commentedCould we do something like this patch?
What I don't know is, what's the most common temp directory environment variable on a windows platform TEMP or TMP?
Comment #2
Thox CreditAttribution: Thox commentedI admit that might solve the problem in my case, but is it the wrong way around to fix things? Regardless of the value of the field, it should never prevent you from changing it simply because it can't find a folder.
FYI, my Win2k system here has TMP and TEMP both set.
Comment #3
Geary CreditAttribution: Geary commentedThe code should not contain any hard coded paths whatsoever. With the patch, the code still defaults to c:\windows\temp if the TEMP environment variable is not found. This is completely wrong. There is *no* standard default temp directory on Windows. If Drupal cannot find the correct temp directory, it should refuse to run, not take a wild guess like this.
Comment #4
Geary CreditAttribution: Geary commentedHmm... When running PHP under XAMPP on Windows, the $_ENV array is empty! This is not promising...
Comment #5
asimmonds CreditAttribution: asimmonds commentedIMO, this (http://drupal.org/node/26249) solution is better and it's not dependent on environmental variables.
Comment #6
Bèr Kessels CreditAttribution: Bèr Kessels commentedhttp://drupal.org/node/35575 is the same bug, I think.
Comment #7
dopry CreditAttribution: dopry commentedfixed by bug -> node/35575.
Comment #8
(not verified) CreditAttribution: commented