Missing a temporary folder.
-
I’m actually a fairly advanced developer and sysadmin, but this was driving me nuts, and I’m posting here to hopefully make the current top search result (which is wrong) eventually become less prevalent.
I was getting the
Missing a temporary folder.error message, and I searched for that message, and found various posts about it on these forums, which suggested (amongst other things) creating a line like this inwp-config.php:/* don't do this; it's wrong */
define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);I debugged the
get_temp_dir()function inwp-includes/functions.phpand found the'WP_TEMP_DIR'setting wasn’t being used. Tracked it all down, and the problem is the stylized unicode quote characters in the above line.The following line is correct, using normal quotes that I typed with my keyboard, and which MS word, or email, or gmail, or whatever, have not stylized with autocorrect. Hopefully it’s not wordpress.org that’s stylizing the quotes, so these quotes will come out unmodified by the time anyone reads it:
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');I tried to post responses to the other threads (google results) where people are having this problem, but they are closed for additional comments.
Of course, what directory you use for your temp dir depends on the system where you’re hosting your wordpress site. The temp directory must be writable by the apache or nginx process. In the above example, I have such a directory named
wp-content/tempHappy wordpressing to all.
The topic ‘Missing a temporary folder.’ is closed to new replies.