Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've moved my live website drupal to windows localhost(xammp), but I'm getting lots of "The file could not be created" errors. If I log in to the site as an administrator, it fails to return any more pages at all. I can view it with errors if I don't log in.

Is there a way to change the temporary file location without logging in through the interface, or using any administrative page?

share|improve this question
1  
From the problem description, it doesn't really sound like the temporary file path is the problem, but I answered that question below, since that's the title. Please re-phrase the question text so that it goes more in line with the title. – Letharion Nov 18 '12 at 14:08
up vote 16 down vote accepted

The temporary path is stored in the variable file_temporary_path, so you can either update the entry in the variables table directory with a SQL-query, or you can use drush to drush vset file_temporary_path [some_new_path].

share|improve this answer

Variables can be overwritten within settings.php. An entry like the following will do it:

$conf['file_temporary_path'] = '/tmp';

Replace '/tmp' with your specific path. You might also need to set the variable file_private_path.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.